summaryrefslogtreecommitdiff
path: root/package/cairo
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:17:52 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-13 22:17:52 +0100
commit0dd1969c3517fec51550e43799ad8dc801d573e0 (patch)
treeec12d21e67d2cf77e4085bc6b05a305c2623e512 /package/cairo
parent845e6343c2626a05cdc9f7aec0e1e1fd7174437e (diff)
parent5b1ef5ec98175c6b50fe43bc651702821fc8e8df (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/cairo')
-rw-r--r--package/cairo/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/cairo/Makefile b/package/cairo/Makefile
index 5c2a6f96c..a3d957acd 100644
--- a/package/cairo/Makefile
+++ b/package/cairo/Makefile
@@ -14,19 +14,30 @@ PKG_BUILDDEP:= libpng pixman freetype fontconfig libX11
PKG_URL:= http://cairographics.org/
PKG_SITES:= http://cairographics.org/releases/
+PKG_SUBPKGS:= CAIRO CAIRO_DEV
+PKGSC_CAIRO_DEV:= devel
+PKGSD_CAIRO_DEV:= cairo headers
+
ifeq ($(ADK_STATIC),y)
PKG_OPTS:= libonly
endif
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,CAIRO,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,CAIRO,cairo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,CAIRO_DEV,cairo-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_CAIRO_DEV},${PKGSC_CAIRO_DEV},${PKG_OPTS}))
CONFIGURE_ARGS+= --enable-ft=yes \
--enable-xlib=yes
-post-install:
+cairo-install:
${INSTALL_DIR} ${IDIR_CAIRO}/usr/lib
${CP} ${WRKINST}/usr/lib/libcairo.so* ${IDIR_CAIRO}/usr/lib
+cairo-dev-install:
+ ${INSTALL_DIR} ${IDIR_CAIRO_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_CAIRO_DEV}/usr/include
+ ${INSTALL_DIR} ${IDIR_CAIRO_DEV}/usr/lib/pkgconfig
+ ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc ${IDIR_CAIRO_DEV}/usr/lib/pkgconfig
+
include ${TOPDIR}/mk/pkg-bottom.mk