[packages] Use default templates instead of custom reimplementations where applicable

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19705 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars
2010-02-18 13:10:21 +00:00
parent 63a6ab878d
commit 1e28de24b4
166 changed files with 499 additions and 1065 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2009 OpenWrt.org
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -18,9 +18,12 @@ PKG_MD5SUM:=838dbac20b56d2c4292e98848505a05b
PKG_BUILD_DIR:=$(BUILD_DIR)/sqlite-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=libncurses libreadline
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += $(FPIC)
define Package/sqlite2/Default
SUBMENU:=database
TITLE:=SQLite (v2.x) database engine
@ -35,7 +38,6 @@ define Package/libsqlite2
endef
define Package/libsqlite2/description
=
SQLite is a small C library that implements a self-contained, embeddable,
zero-configuration SQL database engine.
This package contains the SQLite (v2.x) shared library, used by other programs.
@ -51,7 +53,6 @@ define Package/sqlite2-cli
endef
define Package/sqlite2-cli/description
=
SQLite is a small C library that implements a self-contained, embeddable,
zero-configuration SQL database engine.
This package contains a terminal-based front-end to the SQLite (v2.x) library
@ -74,14 +75,6 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite.h $(1)/usr/include/