Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= openct
  5. PKG_VERSION:= 0.6.20
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= a1da3358ab798f1cb9232f1dbababc21
  8. PKG_DESCR:= drivers for smart card readers
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libopenct
  11. PKG_URL:= http://www.opensc-project.org/openct/
  12. PKG_SITES:= http://www.opensc-project.org/files/openct/
  13. PKG_SUBPKGS:= OPENCT LIBOPENCT LIBOPENCT_DEV
  14. PKGSD_LIBOPENCT:= crypto token library
  15. PKGSC_LIBOPENCT:= libs
  16. PKGSS_LIBOPENCT:= libltdl libusb
  17. PKGSB_LIBOPENCT:= libtool libusb
  18. PKGSD_LIBOPENCT_DEV:= development files for openct
  19. PKGSC_LIBOPENCT_DEV:= devel
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,OPENCT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBOPENCT,libopenct,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENCT},${PKGSD_LIBOPENCT},${PKGSC_LIBOPENCT}))
  23. $(eval $(call PKG_template,LIBOPENCT_DEV,libopenct-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBOPENCT_DEV},${PKGSC_LIBOPENCT_DEV}))
  24. post-install:
  25. ${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/{sbin,bin}
  26. ${INSTALL_BIN} ${WRKINST}/usr/sbin/openct-control \
  27. ${IDIR_OPENCT}/usr/sbin
  28. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ifd* \
  29. ${IDIR_OPENCT}/usr/sbin
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/openct-tool \
  31. ${IDIR_OPENCT}/usr/bin
  32. ${INSTALL_DATA} ${WRKBUILD}/etc/openct.conf \
  33. ${IDIR_OPENCT}/etc
  34. libopenct-install:
  35. ${INSTALL_DIR} ${IDIR_LIBOPENCT}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libopenct.so* \
  37. ${IDIR_LIBOPENCT}/usr/lib
  38. libopenct-dev-install:
  39. ${INSTALL_DIR} ${IDIR_LIBOPENCT_DEV}/usr/include/openct
  40. ${CP} ${WRKINST}/usr/include/openct/*.h \
  41. ${IDIR_LIBOPENCT_DEV}/usr/include/openct
  42. ${INSTALL_DIR} ${IDIR_LIBOPENCT_DEV}/usr/lib/pkgconfig
  43. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  44. ${IDIR_LIBOPENCT_DEV}/usr/lib/pkgconfig
  45. include ${TOPDIR}/mk/pkg-bottom.mk