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/opensc/Makefile | |
parent | 76b0f0b76d8f8ff93efc1678eb1a329dbfe90667 (diff) |
add dev/lib subpackages, enable tools build for opensc, enable openct and pcsc support
Diffstat (limited to 'package/opensc/Makefile')
-rw-r--r-- | package/opensc/Makefile | 47 |
1 files changed, 40 insertions, 7 deletions
diff --git a/package/opensc/Makefile b/package/opensc/Makefile index 9218a8c5e..24d89aa2a 100644 --- a/package/opensc/Makefile +++ b/package/opensc/Makefile @@ -9,23 +9,56 @@ PKG_RELEASE:= 1 PKG_MD5SUM:= 98fa151e947941f9c3f27420fdf47c11 PKG_DESCR:= utilities to access smart cards PKG_SECTION:= crypto -PKG_BUILDDEP:= libtool +PKG_DEPENDS:= libopensc PKG_URL:= http://www.opensc-project.org/opensc/ PKG_SITES:= http://www.opensc-project.org/files/opensc/ +PKG_SUBPKGS:= OPENSC LIBOPENSC LIBOPENSC_DEV +PKGSD_LIBOPENSC:= opensc library +PKGSC_LIBOPENSC:= libs +PKGSS_LIBOPENSC:= libltdl +PKGSB_LIBOPENSC:= libtool +PKGSD_LIBOPENSC_DEV:= development files for opensc +PKGSC_LIBOPENSC_DEV:= devel + include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC})) +$(eval $(call PKG_template,LIBOPENSC_DEV,libopensc-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENSC_DEV},${PKGSC_LIBOPENSC_DEV})) + +CONFIGURE_ARGS+= --disable-man \ + --disable-iconv \ + --enable-pcsc \ + --enable-openct -post-install: - ${INSTALL_DIR} ${IDIR_OPENSC}/usr/lib +SUB_INSTALLS-y:= +SUB_INSTALLS-m:= +SUB_INSTALLS-${ADK_PACKAGE_LIBOPENSC_DEV}+= libopensc-dev-install + +post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y} + ${INSTALL_DIR} ${IDIR_OPENSC}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-explorer \ + ${IDIR_OPENSC}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-tool \ + ${IDIR_OPENSC}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-init \ + ${IDIR_OPENSC}/usr/bin + ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-tool \ + ${IDIR_OPENSC}/usr/bin + ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/libopensc.so* \ - ${IDIR_OPENSC}/usr/lib + ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \ - ${IDIR_OPENSC}/usr/lib + ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/libscconf.so* \ - ${IDIR_OPENSC}/usr/lib + ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \ - ${IDIR_OPENSC}/usr/lib + ${IDIR_LIBOPENSC}/usr/lib + +libopensc-dev-install: + ${INSTALL_DIR} ${IDIR_LIBOPENSC_DEV}/usr/include/opensc + ${CP} ${WRKINST}/usr/include/opensc/*.h \ + ${IDIR_LIBOPENSC_DEV}/usr/include/opensc include ${TOPDIR}/mk/pkg-bottom.mk |