summaryrefslogtreecommitdiff
path: root/package/freetype/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/freetype/Makefile')
-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