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/libpciaccess/Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'package/libpciaccess') diff --git a/package/libpciaccess/Makefile b/package/libpciaccess/Makefile index e603ac6ab..8b598d792 100644 --- a/package/libpciaccess/Makefile +++ b/package/libpciaccess/Makefile @@ -5,32 +5,20 @@ include $(TOPDIR)/rules.mk PKG_NAME:= libpciaccess PKG_VERSION:= 0.13.1 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 3a95b70913621840bf8af616ea01d7d9 PKG_DESCR:= X.org PCI access library PKG_SECTION:= x11/libs PKG_SITES:= ${MASTER_SITE_XORG} - -PKG_SUBPKGS:= LIBPCIACCESS LIBPCIACCESS_DEV -PKGSD_LIBPCIACCESS_DEV:=X.org PCI access headers -PKGSC_LIBPCIACCESS_DEV:=devel +PKG_OPTS:= dev include $(TOPDIR)/mk/package.mk -$(eval $(call PKG_template,LIBPCIACCESS,libpciaccess,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -$(eval $(call PKG_template,LIBPCIACCESS_DEV,libpciaccess-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCIACCESS_DEV},${PKGSC_LIBPCIACCESS_DEV})) +$(eval $(call PKG_template,LIBPCIACCESS,libpciaccess,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) libpciaccess-install: ${INSTALL_DIR} ${IDIR_LIBPCIACCESS}/usr/lib ${CP} ${WRKINST}/usr/lib/libpciaccess.so* \ ${IDIR_LIBPCIACCESS}/usr/lib -libpciaccess-dev-install: - ${INSTALL_DIR} ${IDIR_LIBPCIACCESS_DEV}/usr/include - ${CP} ${WRKINST}/usr/include/pciaccess.h \ - ${IDIR_LIBPCIACCESS_DEV}/usr/include - ${INSTALL_DIR} ${IDIR_LIBPCIACCESS_DEV}/usr/lib/pkgconfig - ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/pciaccess.pc \ - ${IDIR_LIBPCIACCESS_DEV}/usr/lib/pkgconfig - include ${TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3