Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_ARCH_DEPENDS:= !avr32
  17. PKG_SUBPKGS:= OPENSC LIBOPENSC
  18. PKGSD_LIBOPENSC:= opensc library
  19. PKGSC_LIBOPENSC:= libs
  20. PKGSS_LIBOPENSC:= libltdl
  21. PKGSB_LIBOPENSC:= libtool
  22. ifeq ($(ADK_STATIC),y)
  23. PKG_OPTS+= libmix
  24. endif
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,OPENSC,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENSC},${PKGSD_LIBOPENSC},${PKGSC_LIBOPENSC},${PKG_OPTS}))
  28. AUTOTOOL_STYLE:= autoreconf
  29. CONFIGURE_ARGS+= --disable-man \
  30. --disable-iconv \
  31. --enable-pcsc \
  32. --enable-openct
  33. opensc-install:
  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_BIN} ${WRKINST}/usr/bin/pkcs15-crypt \
  47. ${IDIR_OPENSC}/usr/bin
  48. libopensc-install:
  49. ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libopensc.so* \
  51. ${IDIR_LIBOPENSC}/usr/lib
  52. ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \
  53. ${IDIR_LIBOPENSC}/usr/lib
  54. ${CP} ${WRKINST}/usr/lib/libscconf.so* \
  55. ${IDIR_LIBOPENSC}/usr/lib
  56. ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \
  57. ${IDIR_LIBOPENSC}/usr/lib
  58. include ${TOPDIR}/mk/pkg-bottom.mk