summaryrefslogtreecommitdiff
path: root/package/freetype
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
commit90d5c8b73e8d538e121275b12e714332ca785cff (patch)
treeb70121e4732d658097d1db00c8af381629ec82eb /package/freetype
parent33dd541790614765228a71477e1f8b2b6aa21ce1 (diff)
automatically create development subpackages, without user interaction, depend on gcc for the target, simplifies a lot of library packages
Diffstat (limited to 'package/freetype')
-rw-r--r--package/freetype/Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/package/freetype/Makefile b/package/freetype/Makefile
index fa0488195..7db8a879e 100644
--- a/package/freetype/Makefile
+++ b/package/freetype/Makefile
@@ -13,32 +13,19 @@ PKG_DEPENDS:= zlib
PKG_BUILDDEP:= zlib
PKG_URL:= http://www.freetype.org/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=freetype/}
-
-PKG_SUBPKGS:= LIBFREETYPE LIBFREETYPE_DEV
-PKGSD_LIBFREETYPE_DEV:= FreeType headers
-PKGSC_LIBFREETYPE_DEV:= devel
+PKG_LIBNAME:= libfreetype
+PKG_OPTS:= dev
ifeq ($(ADK_STATIC),y)
-PKG_OPTS:= libonly
+PKG_OPTS+= libonly
endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBFREETYPE,libfreetype,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-$(eval $(call PKG_template,LIBFREETYPE_DEV,libfreetype-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBFREETYPE_DEV},${PKGSC_LIBFREETYPE_DEV},${PKG_OPTS}))
libfreetype-install:
${INSTALL_DIR} ${IDIR_LIBFREETYPE}/usr/lib
${CP} ${WRKINST}/usr/lib/libfreetype.so* ${IDIR_LIBFREETYPE}/usr/lib
-libfreetype-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBFREETYPE_DEV}/usr/include
- ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/lib/pkgconfig
- ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/freetype2.pc \
- ${IDIR_LIBFREETYPE_DEV}/usr/lib/pkgconfig
- ${INSTALL_DIR} ${IDIR_LIBFREETYPE_DEV}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/freetype-config \
- ${IDIR_LIBFREETYPE_DEV}/usr/bin
-
include ${TOPDIR}/mk/pkg-bottom.mk