summaryrefslogtreecommitdiff
path: root/package/gtk+
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:07:11 +0100
commit56e554d65183edf7bcbab7ff04f0d13fa5a4a403 (patch)
tree11bdc0ebfe37397d17f7f81404b5fdbd80d516cc /package/gtk+
parentc222009ae2041c53e2fce319c12b1c1b08dfe4fa (diff)
add a lot of new devel subpackages and fix native builds of packages
Diffstat (limited to 'package/gtk+')
-rw-r--r--package/gtk+/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/package/gtk+/Makefile b/package/gtk+/Makefile
index 267962b73..47fad3fa0 100644
--- a/package/gtk+/Makefile
+++ b/package/gtk+/Makefile
@@ -17,7 +17,9 @@ PKG_URL:= http://www.gtk.org/
PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/gtk+/$(PKG_EXTRAVER)/
PKG_NEED_CXX:= 1
-PKG_SUBPKGS:= LIBGTK
+PKG_SUBPKGS:= LIBGTK LIBGTK_DEV
+PKGSC_LIBGTK_DEV:= devel
+PKGSD_LIBGTK_DEV:= GTK+ headers
ifeq ($(ADK_STATIC),y)
PKG_OPTS:= libonly
@@ -26,6 +28,7 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBGTK,libgtk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBGTK_DEV,libgtk-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGTK_DEV},${PKGSC_LIBGTK_DEV},${PKG_OPTS}))
CONFIGURE_ARGS+= --disable-gtk-doc-html \
--disable-modules \
@@ -38,10 +41,19 @@ CONFIGURE_ARGS+= --disable-gtk-doc-html \
CONFIGURE_ENV+= gio_can_sniff=no \
ac_cv_path_GTK_UPDATE_ICON_CACHE=""
-post-install:
+libgtk-install:
${INSTALL_DIR} ${IDIR_LIBGTK}/usr/lib
${CP} ${WRKINST}/usr/lib/libgdk-x11*so* ${IDIR_LIBGTK}/usr/lib
${CP} ${WRKINST}/usr/lib/libgtk-x11*so* ${IDIR_LIBGTK}/usr/lib
${CP} ${WRKINST}/usr/lib/libgailutil*so* ${IDIR_LIBGTK}/usr/lib
+libgtk-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBGTK_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include
+ ${CP} ${WRKINST}/usr/lib/gtk-2.0/include/* \
+ ${IDIR_LIBGTK_DEV}/usr/lib/gtk-2.0/include
+ ${INSTALL_DIR} ${IDIR_LIBGTK_DEV}/usr/lib/pkgconfig
+ ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc ${IDIR_LIBGTK_DEV}/usr/lib/pkgconfig
+
include ${TOPDIR}/mk/pkg-bottom.mk