summaryrefslogtreecommitdiff
path: root/package/libdrm
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/libdrm
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/libdrm')
-rw-r--r--package/libdrm/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/package/libdrm/Makefile b/package/libdrm/Makefile
index 28742c67c..4b81c7baf 100644
--- a/package/libdrm/Makefile
+++ b/package/libdrm/Makefile
@@ -5,34 +5,22 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libdrm
PKG_VERSION:= 2.4.44
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 205fbaedfab827a874265420d38547f0
PKG_DESCR:= DRM library
PKG_SECTION:= libs
PKG_BUILDDEP:= libpthread-stubs cairo
PKG_URL:= http://dri.freedesktop.org/wiki/
PKG_SITES:= http://dri.freedesktop.org/libdrm/
-
-PKG_SUBPKGS:= LIBDRM LIBDRM_DEV
-PKGSD_LIBDRM_DEV:= DRM headers
-PKGSC_LIBDRM_DEV:= devel
+PKG_OPTS:= dev
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBDRM,libdrm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBDRM_DEV,libdrm-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDRM_DEV},${PKGSC_LIBDRM_DEV}))
+$(eval $(call PKG_template,LIBDRM,libdrm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
libdrm-install:
$(INSTALL_DIR) $(IDIR_LIBDRM)/usr/lib
$(CP) $(WRKINST)/usr/lib/libdrm*.so* \
$(IDIR_LIBDRM)/usr/lib
-libdrm-dev-install:
- $(INSTALL_DIR) $(IDIR_LIBDRM_DEV)/usr/lib/pkgconfig
- $(INSTALL_DATA) ${WRKINST}/usr/lib/pkgconfig/*.pc \
- $(IDIR_LIBDRM_DEV)/usr/lib/pkgconfig
- $(INSTALL_DIR) $(IDIR_LIBDRM_DEV)/usr/include
- ${CP} ${WRKINST}/usr/include/* \
- $(IDIR_LIBDRM_DEV)/usr/include
-
include ${TOPDIR}/mk/pkg-bottom.mk