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/DirectFB/Makefile | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'package/DirectFB') diff --git a/package/DirectFB/Makefile b/package/DirectFB/Makefile index 3b4654eff..14eef4e6e 100644 --- a/package/DirectFB/Makefile +++ b/package/DirectFB/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= DirectFB PKG_VERSION:= 1.6.3 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_EXTRAVER:= 1.6-0 PKG_MD5SUM:= 641e8e999c017770da647f9b5b890906 PKG_DESCR:= Thin graphic library for the Linux framebuffer devices @@ -14,15 +14,12 @@ PKG_DEPENDS:= libpng libjpeg libfreetype PKG_BUILDDEP:= libpng jpeg freetype PKG_URL:= http://www.directfb.org/ PKG_SITES:= http://directfb.org/downloads/Core/DirectFB-1.6/ - -PKG_SUBPKGS:= DIRECTFB DIRECTFB_DEV -PKGSD_DIRECTFB_DEV:= development files for DirectFB -PKGSC_DIRECTFB_DEV:= devel +PKG_LIBNAME:= directfb +PKG_OPTS:= dev include $(TOPDIR)/mk/package.mk -$(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -$(eval $(call PKG_template,DIRECTFB_DEV,directfb-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DIRECTFB_DEV},${PKGSC_DIRECTFB_DEV})) +$(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) TARGET_LDFLAGS+= -L$(STAGING_DIR)/usr/lib64 -L$(STAGING_DIR)/usr/lib32 CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \ @@ -47,7 +44,7 @@ ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y) XAKE_FLAGS+= LDFLAGS=$(ADK_TARGET_ABI_CFLAGS) endif -post-install: +directfb-install: ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/{inputdrivers,systems,wm} @@ -67,11 +64,4 @@ post-install: ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/*.so \ ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider -directfb-dev-install: - ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/include - ${CP} ${WRKINST}/usr/include/directfb ${IDIR_DIRECTFB_DEV}/usr/include - ${INSTALL_DIR} ${IDIR_DIRECTFB_DEV}/usr/bin - ${INSTALL_BIN} ${WRKINST}/usr/bin/directfb-config \ - ${IDIR_DIRECTFB_DEV}/usr/bin - include ${TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3