diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-15 22:46:18 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-15 22:46:18 +0100 |
commit | 38af8185ea05a1c5d1abb32a68a025e3b4afa4d6 (patch) | |
tree | 7d01524e63fb74a69ec40891058b95dff9f74bd1 /package/openct | |
parent | 76b0f0b76d8f8ff93efc1678eb1a329dbfe90667 (diff) |
add dev/lib subpackages, enable tools build for opensc, enable openct and pcsc support
Diffstat (limited to 'package/openct')
-rw-r--r-- | package/openct/Makefile | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/package/openct/Makefile b/package/openct/Makefile index fb5cf15b5..635f95d74 100644 --- a/package/openct/Makefile +++ b/package/openct/Makefile @@ -4,25 +4,35 @@ include ${TOPDIR}/rules.mk PKG_NAME:= openct -PKG_VERSION:= 0.6.16 +PKG_VERSION:= 0.6.20 PKG_RELEASE:= 1 -PKG_MD5SUM:= d8d8c63269985303a303a218c4b953d7 +PKG_MD5SUM:= a1da3358ab798f1cb9232f1dbababc21 PKG_DESCR:= drivers for smart card readers PKG_SECTION:= crypto -PKG_DEPENDS:= libltdl libusb -PKG_BUILDDEP:= libtool libusb +PKG_DEPENDS:= libopenct PKG_URL:= http://www.opensc-project.org/openct/ PKG_SITES:= http://www.opensc-project.org/files/openct/ +PKG_SUBPKGS:= OPENCT LIBOPENCT LIBOPENCT_DEV +PKGSD_LIBOPENCT:= crypto token library +PKGSC_LIBOPENCT:= libs +PKGSS_LIBOPENCT:= libltdl libusb +PKGSB_LIBOPENCT:= libtool libusb +PKGSD_LIBOPENCT_DEV:= development files for openct +PKGSC_LIBOPENCT_DEV:= devel + include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,OPENCT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBOPENCT,libopenct,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENCT},${PKGSD_LIBOPENCT},${PKGSC_LIBOPENCT})) +$(eval $(call PKG_template,LIBOPENCT_DEV,libopenct-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENCT_DEV},${PKGSC_LIBOPENCT_DEV})) -post-install: - ${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/bin - ${INSTALL_DIR} ${IDIR_OPENCT}/usr/sbin ${IDIR_OPENCT}/usr/lib - ${CP} ${WRKINST}/usr/lib/libopenct.so.* \ - ${IDIR_OPENCT}/usr/lib +SUB_INSTALLS-y:= +SUB_INSTALLS-m:= +SUB_INSTALLS-${ADK_PACKAGE_LIBOPENCT_DEV}+= libopenct-dev-install + +post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y} + ${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/{sbin,bin} ${INSTALL_BIN} ${WRKINST}/usr/sbin/openct-control \ ${IDIR_OPENCT}/usr/sbin ${INSTALL_BIN} ${WRKINST}/usr/sbin/ifd* \ @@ -31,5 +41,13 @@ post-install: ${IDIR_OPENCT}/usr/bin ${INSTALL_DATA} ${WRKBUILD}/etc/openct.conf \ ${IDIR_OPENCT}/etc + ${INSTALL_DIR} ${IDIR_LIBOPENCT}/usr/lib + ${CP} ${WRKINST}/usr/lib/libopenct.so.* \ + ${IDIR_LIBOPENCT}/usr/lib + +libopenct-dev-install: + ${INSTALL_DIR} ${IDIR_LIBOPENCT_DEV}/usr/include/openct + ${CP} ${WRKINST}/usr/include/openct/*.h \ + ${IDIR_LIBOPENCT_DEV}/usr/include/openct include ${TOPDIR}/mk/pkg-bottom.mk |