[packages] fix radlib VARIANT usage

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33155 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
blogic 2012-08-13 09:52:11 +00:00
parent ece79eeb82
commit 4862987d0c

View File

@ -25,6 +25,7 @@ define Package/radlib
DEPENDS:=+libpthread
TITLE:=Rapid Application Development Library
URL:=http://www.radlib.teel.ws/
VARIANT:=nosql
endef
define Package/radlib/description
@ -43,12 +44,17 @@ define Package/radlib-sqlite/description
This package comes with sqlite support
endef
CONFIGURE_ARGS += \
--prefix="$(TOOLCHAIN_DIR)/usr"
ifeq ($(BUILD_VARIANT),sqlite)
EXTRA_LDFLAGS=-lsqlite3
CONFIGURE_ARGS += \
--enable-sqlite
else
CONFIGURE_ARGS += \
--disable-sqlite
endif
define Build/InstallDev