summaryrefslogtreecommitdiff
path: root/package/expat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/expat/Makefile')
-rw-r--r--package/expat/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/expat/Makefile b/package/expat/Makefile
index 49aae5e2d..28fde3a50 100644
--- a/package/expat/Makefile
+++ b/package/expat/Makefile
@@ -12,7 +12,9 @@ PKG_SECTION:= libs
PKG_URL:= http://expat.sourceforge.net
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=expat/}
-PKG_SUBPKGS:= LIBEXPAT
+PKG_SUBPKGS:= LIBEXPAT LIBEXPAT_DEV
+PKGSD_LIBEXPAT_DEV:= development files for expat
+PKGSC_LIBEXPAT_DEV:= devel
ifeq ($(ADK_STATIC),y)
PKG_OPTS:= libonly
@@ -21,9 +23,18 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBEXPAT_DEV,libexpat-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBEXPAT_DEV},${PKGSC_LIBEXPAT_DEV}))
-post-install:
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBEXPAT_DEV}+= libexpat-dev-install
+
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DIR} ${IDIR_LIBEXPAT}/usr/lib
${CP} ${WRKINST}/usr/lib/libexpat.so* ${IDIR_LIBEXPAT}/usr/lib/
+libexpat-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBEXPAT_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBEXPAT_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk