Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= libgcrypt
  5. PKG_VERSION:= 1.4.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 325294c12e7b99d82dee3a8bf8c2c28e
  8. PKG_DESCR:= GNU crypto library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libgpg-error
  11. PKG_BUILDDEP:= libgpg-error
  12. PKG_URL:= http://directory.fsf.org/project/libgcrypt
  13. PKG_SITES:= ftp://ftp.gnupg.org/gcrypt/libgcrypt/
  14. PKG_SUBPKGS:= LIBGCRYPT LIBGCRYPT_DEV
  15. PKGSD_LIBGCRYPT_DEV:= GNU crypto headers
  16. PKGSC_LIBGCRYPT_DEV:= devel
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBGCRYPT,libgcrypt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBGCRYPT_DEV,libgcrypt-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBGCRYPT_DEV},${PKGSC_LIBGCRYPT_DEV}))
  20. CONFIGURE_ARGS+= --disable-asm \
  21. --with-gpg-error-prefix="${STAGING_TARGET_DIR}/usr"
  22. libgcrypt-install:
  23. ${INSTALL_DIR} ${IDIR_LIBGCRYPT}/usr/lib
  24. ${CP} ${WRKINST}/usr/lib/libgcrypt.so* \
  25. ${IDIR_LIBGCRYPT}/usr/lib
  26. libgcrypt-dev-install:
  27. ${INSTALL_DIR} ${IDIR_LIBGCRYPT_DEV}/usr/include
  28. ${CP} ${WRKINST}/usr/include/* \
  29. ${IDIR_LIBGCRYPT_DEV}/usr/include
  30. ${INSTALL_DIR} ${IDIR_LIBGCRYPT_DEV}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/libgcrypt-config \
  32. ${IDIR_LIBGCRYPT_DEV}/usr/bin
  33. include ${TOPDIR}/mk/pkg-bottom.mk