summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-16 16:40:44 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-16 16:40:44 +0100
commitd96c0b112460f4940a8a26617019fbef762ec49e (patch)
treee70daa5dafaa18399d99437dc605c917bee36af2
parent3ea82668f719898904b8fc337934c64f8715b2c8 (diff)
use xproto-host
-rw-r--r--package/libX11/Makefile3
-rw-r--r--package/libxml2/Makefile1
-rw-r--r--package/xproto/Makefile6
-rw-r--r--scripts/scan-pkgs.sh13
4 files changed, 9 insertions, 14 deletions
diff --git a/package/libX11/Makefile b/package/libX11/Makefile
index 6b5594045..78078cf83 100644
--- a/package/libX11/Makefile
+++ b/package/libX11/Makefile
@@ -9,7 +9,8 @@ PKG_RELEASE:= 3
PKG_MD5SUM:= 395455e4d3a51459374fe5ca8420aae8
PKG_DESCR:= X11 client-side library
PKG_SECTION:= x11/libs
-PKG_BUILDDEP:= xproto xextproto xtrans libXdmcp libXau xcb-proto
+PKG_BUILDDEP:= xproto-host
+PKG_BUILDDEP+= xproto xextproto xtrans libXdmcp libXau xcb-proto
PKG_BUILDDEP+= xcmiscproto bigreqsproto kbproto inputproto libxcb
PKG_DEPENDS:= libxdmcp libxcb libxau
PKG_SITES:= ${MASTER_SITE_XORG}
diff --git a/package/libxml2/Makefile b/package/libxml2/Makefile
index 2bac9ea1b..dbcfcef86 100644
--- a/package/libxml2/Makefile
+++ b/package/libxml2/Makefile
@@ -35,6 +35,7 @@ include $(TOPDIR)/mk/python.mk
HOST_STYLE:= auto
HOST_CONFIGURE_ARGS+= --without-python
+HOST_MAKE_FLAGS+= LDFLAGS=-lpthread
AUTOTOOL_STYLE:= autoreconf
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
diff --git a/package/xproto/Makefile b/package/xproto/Makefile
index 3113dede3..5c123c089 100644
--- a/package/xproto/Makefile
+++ b/package/xproto/Makefile
@@ -9,11 +9,17 @@ PKG_RELEASE:= 1
PKG_DESCR:= X Window System Core Protocol headers
PKG_SECTION:= devel
PKG_MD5SUM:= 7ab1239930563a352cb3552fd2db4140
+PKG_BUILDDEP:= xproto-host
PKG_SITES:= ${MASTER_SITE_XORG}
PKG_OPTS:= dev devonly
+include $(TOPDIR)/mk/host.mk
include $(TOPDIR)/mk/package.mk
+$(eval $(call HOST_template,XPROTO,xproto,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,XPROTO,xproto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+HOST_STYLE:= auto
+
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh
index cebff9846..5d4a80abc 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -61,10 +61,6 @@ if [[ -n $ADK_NATIVE ]];then
fi
fi
-if [[ -n $ADK_PACKAGE_LIBX11 ]]; then
- NEED_X11="$NEED_X11 libx11"
-fi
-
if [[ -n $ADK_COMPILE_OPENJDK ]]; then
NEED_GXX="$NEED_GXX openjdk"
NEED_XSLTPROC="$NEED_XSLTPROC openjdk"
@@ -209,15 +205,6 @@ if [[ -n $NEED_X11DEV ]];then
fi
fi
-if [[ -n $NEED_X11 ]];then
- if ! test -f /usr/include/X11/X.h >/dev/null; then
- if ! test -f /usr/local/include/X11/X.h >/dev/null; then
- echo >&2 You need X11 headers to build $NEED_X11
- out=1
- fi
- fi
-fi
-
if [[ -n $NEED_XEXTDEV ]];then
if ! test -f /usr/include/X11/extensions/XShm.h >/dev/null; then
echo >&2 You need X11 extensions headers to build $NEED_XEXTDEV