summaryrefslogtreecommitdiff
path: root/package/glib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/glib/Makefile')
-rw-r--r--package/glib/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 3c8045392..807303ca1 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= glib
PKG_VERSION:= 2.27.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= ad9c80adb624a1ffe3d9753bab8a578a
PKG_DESCR:= low-level core library that forms the basis of GTK+
PKG_SECTION:= libs
@@ -14,13 +14,18 @@ PKG_BUILDDEP:= gettext libiconv
PKG_URL:= http://www.gtk.org/
PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/2.27/
+PKG_SUBPKGS:= GLIB GLIB_DEV
+PKGSC_GLIB_DEV:= devel
+PKGSD_GLIB_DEV:= glib headers
+
ifeq ($(ADK_STATIC),y)
PKG_OPTS:= libonly
endif
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,GLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,GLIB,glib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,GLIB_DEV,glib-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_GLIB_DEV},${PKGSC_GLIB_DEV},${PKG_OPTS}))
CONFIGURE_ARGS+= --enable-debug=no \
--disable-mem-pools \
@@ -52,7 +57,7 @@ ifneq ($(OStype),Darwin)
${MAKE} -C ${WRKBUILD} clean
endif
-post-install:
+glib-install:
${INSTALL_DIR} ${IDIR_GLIB}/usr/lib
${CP} ${WRKINST}/usr/lib/libgio*.so* ${IDIR_GLIB}/usr/lib
${CP} ${WRKINST}/usr/lib/libglib*.so* ${IDIR_GLIB}/usr/lib
@@ -60,4 +65,15 @@ post-install:
${CP} ${WRKINST}/usr/lib/libgmodule*.so* ${IDIR_GLIB}/usr/lib
${CP} ${WRKINST}/usr/lib/libgthread*.so* ${IDIR_GLIB}/usr/lib
+glib-dev-install:
+ ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
+ ${CP} ${WRKINST}/usr/lib/glib-2.0/include/glibconfig.h \
+ ${IDIR_GLIB_DEV}/usr/lib/glib-2.0/include
+ ${CP} ${WRKINST}/usr/include/* \
+ ${IDIR_GLIB_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_GLIB_DEV}/usr/lib/pkgconfig
+ ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
+ ${IDIR_GLIB_DEV}/usr/lib/pkgconfig
+
include ${TOPDIR}/mk/pkg-bottom.mk