qt4: do not compile parts which require nptl support when no nptl support is available (as uClibc < 0.9.32)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@22300 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mirko 2010-07-20 00:27:39 +00:00
parent ceef2c6056
commit db2027dd5e

@ -23,6 +23,17 @@ PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-opensource-src-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
# this should be moved to a more generic place later, as other packages are configured different as well depending on available nptl support
ifeq ($(CONFIG_USE_GLIBC),y)
NPTL:=y
endif
ifeq ($(CONFIG_USE_EGLIBC),y)
NPTL:=y
endif
ifeq ($(CONFIG_UCLIBC_VERSION_0_9_32),y)
NPTL:=y
endif
define Package/qt4/Default define Package/qt4/Default
SECTION:=xorg-framework SECTION:=xorg-framework
CATEGORY:=Xorg CATEGORY:=Xorg
@ -230,8 +241,8 @@ define Build/Configure
-no-rpath \ -no-rpath \
-force-pkg-config \ -force-pkg-config \
-nomake tools \ -nomake tools \
-$(if $(CONFIG_PACKAGE_qt4-demos),make demos,nomake demos) \ -make demos \
-$(if $(CONFIG_PACKAGE_qt4-examples),make examples,nomake examples) \ -make examples \
-nomake docs \ -nomake docs \
-nomake translations \ -nomake translations \
-embedded openwrt \ -embedded openwrt \
@ -259,12 +270,12 @@ define Build/Configure
-phonon \ -phonon \
-no-phonon-backend \ -no-phonon-backend \
-svg \ -svg \
-webkit \ -$(if $(NPTL),webkit,-no-webkit) \
-no-javascript-jit \ -no-javascript-jit \
-script \ -$(if $(NPTL),script,-no-script) \
-scripttools \ -$(if $(NPTL),scripttools,-no-scripttools) \
-no-accessibility \ -no-accessibility \
-declarative \ -$(if $(NPTL),declarative,-no-declarative) \
-no-openssl \ -no-openssl \
-no-nis \ -no-nis \
-no-cups \ -no-cups \
@ -298,7 +309,7 @@ define Build/Compile
# just passing <make install> results in not building 3rdparty/webkit/JavaScriptCore # just passing <make install> results in not building 3rdparty/webkit/JavaScriptCore
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE) -C $(PKG_BUILD_DIR)
INSTALL_ROOT=$(PKG_INSTALL_DIR) \ INSTALL_ROOT=$(PKG_INSTALL_DIR) \
$(MAKE) -j5 -C $(PKG_BUILD_DIR) install $(MAKE) -C $(PKG_BUILD_DIR) install
endef endef
define Build/InstallDev define Build/InstallDev