Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:= 4
  7. PKG_MD5SUM:= 98fa151e947941f9c3f27420fdf47c11
  8. PKG_DESCR:= utilities to access smart cards
  9. PKG_SECTION:= crypto
  10. PKG_BUILDDEP:= openct pcsc-lite openssl readline
  11. PKG_DEPENDS:= libopensc libopenct pcsc-lite libopenssl libreadline
  12. PKG_URL:= http://www.opensc-project.org/opensc/
  13. PKG_SITES:= http://www.opensc-project.org/files/opensc/
  14. PKG_SUBPKGS:= OPENSC LIBOPENSC LIBOPENSC_DEV
  15. PKGSD_LIBOPENSC:= opensc library
  16. PKGSC_LIBOPENSC:= libs
  17. PKGSS_LIBOPENSC:= libltdl
  18. PKGSB_LIBOPENSC:= libtool
  19. PKGSD_LIBOPENSC_DEV:= development files for opensc
  20. PKGSC_LIBOPENSC_DEV:= devel
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC}))
  24. $(eval $(call PKG_template,LIBOPENSC_DEV,libopensc-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENSC_DEV},${PKGSC_LIBOPENSC_DEV}))
  25. CONFIGURE_ARGS+= --disable-man \
  26. --disable-iconv \
  27. --enable-pcsc \
  28. --enable-openct
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/bin
  31. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/share/opensc
  32. ${INSTALL_DATA} ${WRKINST}/usr/share/opensc/* \
  33. ${IDIR_OPENSC}/usr/share/opensc
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-explorer \
  35. ${IDIR_OPENSC}/usr/bin
  36. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-tool \
  37. ${IDIR_OPENSC}/usr/bin
  38. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-init \
  39. ${IDIR_OPENSC}/usr/bin
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-tool \
  41. ${IDIR_OPENSC}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-crypt \
  43. ${IDIR_OPENSC}/usr/bin
  44. libopensc-install:
  45. ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib
  46. ${CP} ${WRKINST}/usr/lib/libopensc.so* \
  47. ${IDIR_LIBOPENSC}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \
  49. ${IDIR_LIBOPENSC}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libscconf.so* \
  51. ${IDIR_LIBOPENSC}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \
  53. ${IDIR_LIBOPENSC}/usr/lib
  54. libopensc-dev-install:
  55. ${INSTALL_DIR} ${IDIR_LIBOPENSC_DEV}/usr/include/opensc
  56. ${CP} ${WRKINST}/usr/include/opensc/*.h \
  57. ${IDIR_LIBOPENSC_DEV}/usr/include/opensc
  58. include ${TOPDIR}/mk/pkg-bottom.mk