Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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:= cyrus-sasl
  5. PKG_VERSION:= 2.1.23
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 2eb0e48106f0e9cd8001e654f267ecbc
  8. PKG_DESCR:= a general purpose authentication library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= openssl
  11. PKG_DEPENDS:= libopenssl
  12. PKG_URL:= http://asg.web.cmu.edu/sasl/
  13. PKG_SITES:= http://ftp.andrew.cmu.edu/pub/cyrus-mail/
  14. PKG_NOPARALLEL:= 1
  15. PKG_SUBPKGS:= LIBSASL2 LIBSASL2_DEV
  16. PKGSD_LIBSASL2_DEV:= sasl2 headers
  17. PKGSC_LIBSASL2_DEV:= devel
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBSASL2,libsasl2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBSASL2_DEV,libsasl2-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBSASL2_DEV},${PKGSC_LIBSASL2_DEV}))
  21. CONFIGURE_ARGS+= --enable-staticdlopen \
  22. --enable-cram \
  23. --enable-plain \
  24. --enable-anon \
  25. --enable-digest \
  26. --with-ipctype=unix \
  27. --with-devrandom="/dev/urandom" \
  28. --with-openssl="${STAGING_TARGET_DIR}/usr" \
  29. --disable-sample \
  30. --disable-java \
  31. --disable-alwaystrue \
  32. --disable-checkapop \
  33. --disable-otp \
  34. --disable-srp \
  35. --disable-srp-setpass \
  36. --disable-krb4 \
  37. --disable-gssapi \
  38. --disable-gss_mutexes \
  39. --disable-login \
  40. --disable-ntlm \
  41. --disable-sql \
  42. --disable-static \
  43. --without-dblib \
  44. --without-gdbm \
  45. --without-pam \
  46. --without-saslauthd \
  47. --without-authdaemond \
  48. --without-pwcheck \
  49. --without-des \
  50. --without-opie \
  51. --without-ldap \
  52. --without-mysql \
  53. --without-pgsql \
  54. --without-sqlite \
  55. --without-rc4 \
  56. --without-dmalloc \
  57. --without-sfio
  58. pre-build:
  59. ${MAKE} -C ${WRKBUILD}/include \
  60. CC="${CC_FOR_BUILD}" \
  61. LINK="${CC_FOR_BUILD} -o makemd5 -lc" \
  62. LIBS="" \
  63. CFLAGS="${CFLAGS_FOR_BUILD}" \
  64. LDFLAGS="" \
  65. CPPFLAGS="" \
  66. makemd5
  67. libsasl2-install:
  68. ${INSTALL_DIR} ${IDIR_LIBSASL2}/usr/lib/sasl2
  69. ${CP} ${WRKINST}/usr/lib/libsasl2.so* ${IDIR_LIBSASL2}/usr/lib
  70. ${CP} ${WRKINST}/usr/lib/sasl2/lib*.so* \
  71. ${IDIR_LIBSASL2}/usr/lib/sasl2
  72. libsasl2-dev-install:
  73. ${INSTALL_DIR} ${IDIR_LIBSASL2_DEV}/usr/include
  74. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBSASL2_DEV}/usr/include
  75. include ${TOPDIR}/mk/pkg-bottom.mk