Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= openct
  5. PKG_VERSION:= 0.6.20
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 6cd3e2933d29eb1f875c838ee58b8071fd61f0ec8ed5922a86c01c805d181a68
  8. PKG_DESCR:= drivers for smart card readers
  9. PKG_SECTION:= app/crypto
  10. PKG_DEPENDS:= libopenct
  11. PKG_BUILDDEP:= libtool
  12. PKG_URL:= http://www.opensc-project.org/openct/
  13. PKG_SITES:= http://www.opensc-project.org/files/openct/
  14. PKG_LIBNAME:= libopenct
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. PKG_SUBPKGS:= OPENCT LIBOPENCT
  18. PKGSD_LIBOPENCT:= crypto token library
  19. PKGSC_LIBOPENCT:= libs/crypto
  20. PKGSS_LIBOPENCT:= libltdl libusb
  21. PKGSB_LIBOPENCT:= libtool libusb
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,OPENCT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBOPENCT,libopenct,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENCT},${PKGSD_LIBOPENCT},${PKGSC_LIBOPENCT},${PKG_OPTS}))
  25. openct-install:
  26. ${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/{sbin,bin}
  27. ${INSTALL_BIN} ${WRKINST}/usr/sbin/openct-control \
  28. ${IDIR_OPENCT}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ifd* \
  30. ${IDIR_OPENCT}/usr/sbin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/openct-tool \
  32. ${IDIR_OPENCT}/usr/bin
  33. ${INSTALL_DATA} ${WRKBUILD}/etc/openct.conf \
  34. ${IDIR_OPENCT}/etc
  35. libopenct-install:
  36. ${INSTALL_DIR} ${IDIR_LIBOPENCT}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libopenct.so* \
  38. ${IDIR_LIBOPENCT}/usr/lib
  39. include ${ADK_TOPDIR}/mk/pkg-bottom.mk