Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= libp11
  5. PKG_VERSION:= 0.2.8
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= a4121015503ade98074b5e2a2517fc8a139f8b28aed10021db2bb77283f40691
  8. PKG_DESCR:= library implementing a small layer on top of pkcs11 api
  9. PKG_SECTION:= libs/crypto
  10. PKG_DEPENDS:= libltdl
  11. PKG_BUILDDEP:= libtool
  12. PKG_URL:= https://github.com/OpenSC/libp11/wiki
  13. PKG_SITES:= http://sourceforge.net/projects/opensc/files/libp11/
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_CHOICES_LIBP11:= WITH_LIBRESSL WITH_OPENSSL
  17. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  18. PKGCB_WITH_LIBRESSL:= libressl
  19. PKGCS_WITH_LIBRESSL:= libressl
  20. PKGCD_WITH_OPENSSL:= use openssl for crypto
  21. PKGCB_WITH_OPENSSL:= openssl
  22. PKGCS_WITH_OPENSSL:= libopenssl
  23. include ${ADK_TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,LIBP11,libp11,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  25. libp11-install:
  26. ${INSTALL_DIR} ${IDIR_LIBP11}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libp11.so* ${IDIR_LIBP11}/usr/lib
  28. include ${ADK_TOPDIR}/mk/pkg-bottom.mk