summaryrefslogtreecommitdiff
path: root/package/libxslt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libxslt/Makefile')
-rw-r--r--package/libxslt/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/package/libxslt/Makefile b/package/libxslt/Makefile
index d5c3fcb84..130e98685 100644
--- a/package/libxslt/Makefile
+++ b/package/libxslt/Makefile
@@ -14,13 +14,16 @@ PKG_BUILDDEP:= libxml2
PKG_URL:= http://xmlsoft.org/XSLT
PKG_SITES:= http://xmlsoft.org/sources/
-PKG_SUBPKGS:= LIBXSLT XSLTPROC
-PKGSD_XSLTPROC:= xslt processor utility
+PKG_SUBPKGS:= LIBXSLT LIBXSLT_DEV XSLTPROC
+PKGSD_LIBXSLT_DEV:= XSLT headers
+PKGSC_LIBXSLT_DEV:= devel
+PKGSD_XSLTPROC:= XSLT processor utility
PKGSC_XSLTPROC:= misc
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBXSLT_DEV,libxslt-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXSLT_DEV},${PKGSC_LIBXSLT_DEV}))
$(eval $(call PKG_template,XSLTPROC,xsltproc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XSLTPROC},${PKGSC_XSLTPROC}))
CONFIGURE_ARGS+= --with-libxml-prefix="${STAGING_TARGET_DIR}/usr" \
@@ -38,6 +41,13 @@ xsltproc-install:
libxslt-install:
${INSTALL_DIR} ${IDIR_LIBXSLT}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libxslt.so* ${IDIR_LIBXSLT}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libxslt.so* ${IDIR_LIBXSLT}/usr/lib
+
+libxslt-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBXSLT_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBXSLT_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBXSLT_DEV}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/xslt-config \
+ ${IDIR_LIBXSLT_DEV}/usr/bin
include ${TOPDIR}/mk/pkg-bottom.mk