summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/gettext/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/gettext/Makefile b/package/gettext/Makefile
index 8cafe4ebc..1c0f931b5 100644
--- a/package/gettext/Makefile
+++ b/package/gettext/Makefile
@@ -14,7 +14,9 @@ PKG_DEPENDS:= libiconv libpthread
PKG_URL:= http://www.gnu.org/software/gettext/
PKG_SITES:= ${MASTER_SITE_GNU:=gettext/}
-PKG_SUBPKGS:= LIBINTL GETTEXT MSGFMT
+PKG_SUBPKGS:= LIBINTL LIBINTL_DEV GETTEXT MSGFMT
+PKGSD_LIBINTL_DEV:= libintl headers
+PKGSC_LIBINTL_DEV:= devel
PKGSD_GETTEXT:= gettext utility
PKGSC_GETTEXT:= misc
PKGSS_GETTEXT:= libintl
@@ -29,6 +31,7 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBINTL,libintl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBINTL_DEV,libintl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBINTL_DEV:},${PKGSC_LIBINTL_DEV},${PKG_OPTS}))
$(eval $(call PKG_template,GETTEXT,gettext,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GETTEXT},${PKGSD_GETTEXT},${PKGSC_GETTEXT}))
$(eval $(call PKG_template,MSGFMT,msgfmt,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MSGFMT},${PKGSD_MSGFMT},${PKGSC_MSGFMT}))
@@ -54,6 +57,11 @@ libintl-install:
${CP} ${WRKBUILD}/gettext-runtime/intl/.libs/libintl.so* \
${IDIR_LIBINTL}/usr/lib
+libintl-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBINTL_DEV}/usr/include
+ ${INSTALL_DATA} ${WRKBUILD}/gettext-runtime/intl/libintl.h \
+ ${IDIR_LIBINTL_DEV}/usr/include
+
gettext-install:
${INSTALL_DIR} ${IDIR_GETTEXT}/usr/bin
$(INSTALL_BIN) $(WRKBUILD)/gettext-runtime/src/.libs/gettext \