Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:= 5
  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_LIBNAME:= libopensc
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= OPENSC LIBOPENSC
  17. PKGSD_LIBOPENSC:= opensc library
  18. PKGSC_LIBOPENSC:= libs
  19. PKGSS_LIBOPENSC:= libltdl
  20. PKGSB_LIBOPENSC:= libtool
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC},${PKG_OPTS}))
  27. AUTOTOOL_STYLE:= autoreconf
  28. CONFIGURE_ARGS+= --disable-man \
  29. --disable-iconv \
  30. --enable-pcsc \
  31. --enable-openct
  32. opensc-install:
  33. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/bin
  34. ${INSTALL_DIR} ${IDIR_OPENSC}/usr/share/opensc
  35. ${INSTALL_DATA} ${WRKINST}/usr/share/opensc/* \
  36. ${IDIR_OPENSC}/usr/share/opensc
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-explorer \
  38. ${IDIR_OPENSC}/usr/bin
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/opensc-tool \
  40. ${IDIR_OPENSC}/usr/bin
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-init \
  42. ${IDIR_OPENSC}/usr/bin
  43. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-tool \
  44. ${IDIR_OPENSC}/usr/bin
  45. ${INSTALL_BIN} ${WRKINST}/usr/bin/pkcs15-crypt \
  46. ${IDIR_OPENSC}/usr/bin
  47. libopensc-install:
  48. ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libopensc.so* \
  50. ${IDIR_LIBOPENSC}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \
  52. ${IDIR_LIBOPENSC}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libscconf.so* \
  54. ${IDIR_LIBOPENSC}/usr/lib
  55. ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \
  56. ${IDIR_LIBOPENSC}/usr/lib
  57. include ${TOPDIR}/mk/pkg-bottom.mk