Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= opensc
  5. PKG_VERSION:= 0.11.13
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 98fa151e947941f9c3f27420fdf47c11
  8. PKG_DESCR:= utilities to access smart cards
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libopensc
  11. PKG_URL:= http://www.opensc-project.org/opensc/
  12. PKG_SITES:= http://www.opensc-project.org/files/opensc/
  13. PKG_SUBPKGS:= OPENSC LIBOPENSC LIBOPENSC_DEV
  14. PKGSD_LIBOPENSC:= opensc library
  15. PKGSC_LIBOPENSC:= libs
  16. PKGSS_LIBOPENSC:= libltdl
  17. PKGSB_LIBOPENSC:= libtool
  18. PKGSD_LIBOPENSC_DEV:= development files for opensc
  19. PKGSC_LIBOPENSC_DEV:= devel
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC}))
  23. $(eval $(call PKG_template,LIBOPENSC_DEV,libopensc-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENSC_DEV},${PKGSC_LIBOPENSC_DEV}))
  24. CONFIGURE_ARGS+= --disable-man \
  25. --disable-iconv \
  26. --enable-pcsc \
  27. --enable-openct
  28. SUB_INSTALLS-y:=
  29. SUB_INSTALLS-m:=
  30. SUB_INSTALLS-${ADK_PACKAGE_LIBOPENSC_DEV}+= libopensc-dev-install
  31. post-extract:
  32. cd ${WRKBUILD} && autoreconf -vif
  33. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  34. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/bin
  35. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/share/opensc
  36. ${INSTALL_DATA} ${WRKINST}/usr/share/opensc/* \
  37. ${IDIR_OPENSC}/usr/share/opensc
  38. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-explorer \
  39. ${IDIR_OPENSC}/usr/bin
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-tool \
  41. ${IDIR_OPENSC}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-init \
  43. ${IDIR_OPENSC}/usr/bin
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-tool \
  45. ${IDIR_OPENSC}/usr/bin
  46. ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libopensc.so* \
  48. ${IDIR_LIBOPENSC}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \
  50. ${IDIR_LIBOPENSC}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/libscconf.so* \
  52. ${IDIR_LIBOPENSC}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \
  54. ${IDIR_LIBOPENSC}/usr/lib
  55. libopensc-dev-install:
  56. ${INSTALL_DIR} ${IDIR_LIBOPENSC_DEV}/usr/include/opensc
  57. ${CP} ${WRKINST}/usr/include/opensc/*.h \
  58. ${IDIR_LIBOPENSC_DEV}/usr/include/opensc
  59. include ${TOPDIR}/mk/pkg-bottom.mk