summaryrefslogtreecommitdiff
path: root/package/gettext/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-18 19:35:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-18 19:35:54 +0100
commit82cc35f96290da01f9522755e76a66d067917c64 (patch)
treefe044e3c82f3d8fbb2bd85da55e99d4b438f7636 /package/gettext/Makefile
parent88ed13f10adc6f4115a0bc1c2f6db5e6a3eea05e (diff)
add libintl development subpackage
Diffstat (limited to 'package/gettext/Makefile')
-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 \