[packages] remove variants from radlib

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33176 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2012-08-13 20:04:08 +00:00
parent aacb8d82f0
commit 40ff33b65f

View File

@ -22,40 +22,24 @@ include $(INCLUDE_DIR)/package.mk
define Package/radlib
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libpthread
DEPENDS:=+libpthread +libsqlite3
TITLE:=Rapid Application Development Library
URL:=http://www.radlib.teel.ws/
VARIANT:=nosql
endef
define Package/radlib/description
radlib is a rapid application development library for unix multi-process applications
endef
define Package/radlib-sqlite
$(call Package/radlib)
VARIANT:=sqlite
DEPENDS+=+libsqlite3
TITLE+= (sqlite)
endef
define Package/radlib-sqlite/description
$(call Package/radlib/description)
This package comes with sqlite support
endef
CONFIGURE_ARGS += \
--prefix="$(TOOLCHAIN_DIR)/usr"
ifeq ($(BUILD_VARIANT),sqlite)
EXTRA_LDFLAGS=-lsqlite3
CONFIGURE_ARGS += \
--prefix="$(TOOLCHAIN_DIR)/usr" \
--enable-sqlite
else
CONFIGURE_ARGS += \
--disable-sqlite
endif
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
@ -76,4 +60,3 @@ define Package/radlib-sqlite/install
endef
$(eval $(call BuildPackage,radlib))
$(eval $(call BuildPackage,radlib-sqlite))