Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= 3
  7. PKG_MD5SUM:= a1da3358ab798f1cb9232f1dbababc21
  8. PKG_DESCR:= drivers for smart card readers
  9. PKG_SECTION:= 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. PKG_SUBPKGS:= OPENCT LIBOPENCT
  17. PKGSD_LIBOPENCT:= crypto token library
  18. PKGSC_LIBOPENCT:= libs
  19. PKGSS_LIBOPENCT:= libltdl libusb
  20. PKGSB_LIBOPENCT:= libtool libusb
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,OPENCT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBOPENCT,libopenct,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBOPENCT},${PKGSD_LIBOPENCT},${PKGSC_LIBOPENCT},${PKG_OPTS}))
  27. openct-install:
  28. ${INSTALL_DIR} ${IDIR_OPENCT}/etc ${IDIR_OPENCT}/usr/{sbin,bin}
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/openct-control \
  30. ${IDIR_OPENCT}/usr/sbin
  31. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ifd* \
  32. ${IDIR_OPENCT}/usr/sbin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/openct-tool \
  34. ${IDIR_OPENCT}/usr/bin
  35. ${INSTALL_DATA} ${WRKBUILD}/etc/openct.conf \
  36. ${IDIR_OPENCT}/etc
  37. libopenct-install:
  38. ${INSTALL_DIR} ${IDIR_LIBOPENCT}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libopenct.so* \
  40. ${IDIR_LIBOPENCT}/usr/lib
  41. include ${TOPDIR}/mk/pkg-bottom.mk