From 90d5c8b73e8d538e121275b12e714332ca785cff Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 21 Oct 2013 17:20:24 +0200 Subject: automatically create development subpackages, without user interaction, depend on gcc for the target, simplifies a lot of library packages --- package/freetype/Makefile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'package/freetype') 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 -- cgit v1.2.3