summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-02 00:26:29 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-02 00:26:29 +0100
commitc286dff08c55f0855913053447bc8e5fbeabdba1 (patch)
treec4dbdbf8b2393ebca6d6dc4f56b7f7967740b6fe
parent73bea31429b94f8e07444f8595eb836f4296f7fc (diff)
add more header packages needed for pcsc-lite
-rw-r--r--package/libusb-compat/Makefile15
-rw-r--r--package/libusb/Makefile15
2 files changed, 28 insertions, 2 deletions
diff --git a/package/libusb-compat/Makefile b/package/libusb-compat/Makefile
index fd651a5b9..d7f46c858 100644
--- a/package/libusb-compat/Makefile
+++ b/package/libusb-compat/Makefile
@@ -13,6 +13,10 @@ PKG_BUILDDEP:= libusb
PKG_URL:= http://libusb.wiki.sourceforge.net
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libusb/}
+PKG_SUBPKGS:= LIBUSB_COMPAT LIBUSB_COMPAT_DEV
+PKGSD_LIBUSB_COMPAT_DEV:= header files for libusb library
+PKGSC_LIBUSB_COMPAT_DEV:= devel
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
ifeq ($(ADK_STATIC),y)
@@ -22,9 +26,18 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBUSB_COMPAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBUSB_COMPAT_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUSB_COMPAT_DEV},${PKGSC_LIBUSB_COMPAT_DEV},${PKG_OPTS}))
+
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBUSB_COMPAT_DEV}+= libusb-compat-dev-install
-post-install:
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DIR} ${IDIR_LIBUSB_COMPAT}/usr/lib
${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB_COMPAT}/usr/lib/
+libusb-compat-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBUSB_COMPAT_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUSB_COMPAT_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libusb/Makefile b/package/libusb/Makefile
index 795d2ee1a..4358bc720 100644
--- a/package/libusb/Makefile
+++ b/package/libusb/Makefile
@@ -12,6 +12,10 @@ PKG_SECTION:= libs
PKG_URL:= http://libusb.wiki.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libusb/}
+PKG_SUBPKGS:= LIBUSB LIBUSB_DEV
+PKGSD_LIBUSB_DEV:= header files for libusb library
+PKGSC_LIBUSB_DEV:= devel
+
ifeq ($(ADK_STATIC),y)
PKG_OPTS:= libonly
endif
@@ -21,9 +25,18 @@ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBUSB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBUSB_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUSB_DEV},${PKGSC_LIBUSB_DEV},${PKG_OPTS}))
+
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBUSB_DEV}+= libusb-dev-install
-post-install:
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DIR} ${IDIR_LIBUSB}/usr/lib
${CP} ${WRKINST}/usr/lib/libusb*.so* ${IDIR_LIBUSB}/usr/lib/
+libusb-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBUSB_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUSB_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk