summaryrefslogtreecommitdiff
path: root/package/libxml2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-17 09:58:21 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-17 09:58:21 +0100
commit2dfe345717ea5f2bfbd997508f294183fd170f7d (patch)
tree83617b6201edf071af3a9e5bcfad500d9c0a94d8 /package/libxml2
parent59e96ea14898e040ad21bd4a761f76812bace2c5 (diff)
parentd96c0b112460f4940a8a26617019fbef762ec49e (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/libxml2')
-rw-r--r--package/libxml2/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/libxml2/Makefile b/package/libxml2/Makefile
index d033af17d..dbcfcef86 100644
--- a/package/libxml2/Makefile
+++ b/package/libxml2/Makefile
@@ -10,7 +10,7 @@ PKG_MD5SUM:= 9c0cfef285d5c4a5c80d00904ddab380
PKG_DESCR:= XML C parser and toolkit
PKG_SECTION:= libs
PKG_DEPENDS:= zlib
-PKG_BUILDDEP:= zlib autotool
+PKG_BUILDDEP:= autotool libxml2-host zlib
PKG_URL:= http://www.xmlsoft.org/
PKG_SITES:= http://xmlsoft.org/sources/
PKG_OPTS:= dev
@@ -24,13 +24,19 @@ ifeq ($(ADK_STATIC),y)
PKG_OPTS+= libmix
endif
+include ${TOPDIR}/mk/host.mk
include ${TOPDIR}/mk/package.mk
+$(eval $(call HOST_template,LIBXML2,libxml2,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBXML2,libxml2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,LIBXML2_PYTHON,libxml2-python,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXML2_PYTHON},${PKGSC_LIBXML2_PYTHON}))
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))
TARGET_LDFLAGS+= -lpthread
@@ -75,4 +81,5 @@ libxml2-python-install:
$(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/*.{so,py} \
$(IDIR_LIBXML2_PYTHON)/usr/lib/python$(PYTHON_VERSION)/site-packages
+include ${TOPDIR}/mk/host-bottom.mk
include ${TOPDIR}/mk/pkg-bottom.mk