You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cyrus-sasl
  9. PKG_VERSION:=2.1.26
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=ftp://ftp.cyrusimap.org/cyrus-sasl/
  14. PKG_HASH:=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
  15. PKG_LICENSE:=BSD-4c BSD
  16. PKG_LICENSE_FILES:=COPYING cmulocal/COPYING saslauthd/COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_MACRO_PATHS:=cmulocal config ../cmulocal ../config
  19. PKG_AUTOMAKE_PATHS:=. saslauthd sasldb
  20. PKG_REMOVE_FILES:=aclocal.m4 saslauthd/aclocal.m4 config/libtool.m4
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libsasl2
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=A general purpose authentication library
  26. URL:=http://asg.web.cmu.edu/sasl/
  27. DEPENDS:=+libopenssl
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --enable-shared \
  32. --enable-static \
  33. --disable-sample \
  34. --enable-staticdlopen \
  35. --disable-java \
  36. --disable-alwaystrue \
  37. --disable-checkapop \
  38. --enable-cram \
  39. --enable-digest \
  40. --without-auth-sasldb \
  41. --disable-otp \
  42. --disable-srp \
  43. --disable-srp-setpass \
  44. --disable-krb4 \
  45. --disable-gssapi \
  46. --disable-gss_mutexes \
  47. --enable-plain \
  48. --enable-anon \
  49. --disable-login \
  50. --disable-ntlm \
  51. --disable-sql \
  52. --disable-ldapdb \
  53. --without-dblib \
  54. --without-gdbm \
  55. --with-devrandom="/dev/urandom" \
  56. --without-pam \
  57. --without-saslauthd \
  58. --without-authdaemond \
  59. --without-pwcheck \
  60. --with-ipctype=unix \
  61. --with-openssl="$(STAGING_DIR)/usr" \
  62. --without-des \
  63. --without-opie \
  64. --without-ldap \
  65. --without-mysql \
  66. --without-pgsql \
  67. --without-sqlite \
  68. --without-rc4 \
  69. --without-dmalloc \
  70. --without-sfio \
  71. --disable-sample
  72. define Build/Compile
  73. $(MAKE) -C $(PKG_BUILD_DIR)/include \
  74. CC="$(HOSTCC)" \
  75. LINK="$(HOSTCC) -o makemd5 -lc" \
  76. CFLAGS="" \
  77. CPPFLAGS="" \
  78. makemd5
  79. $(MAKE) -C $(PKG_BUILD_DIR) \
  80. DESTDIR="$(PKG_INSTALL_DIR)" \
  81. all install
  82. endef
  83. define Build/InstallDev
  84. $(INSTALL_DIR) $(1)/usr/include/
  85. $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(1)/usr/include/
  86. $(INSTALL_DIR) $(1)/usr/lib/
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(1)/usr/lib/
  88. ln -sf libsasl2.a $(1)/usr/lib/libsasl.a
  89. ln -sf libsasl2.so $(1)/usr/lib/libsasl.so
  90. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  91. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(1)/usr/lib/sasl2/
  92. endef
  93. define Package/libsasl2/install
  94. $(INSTALL_DIR) $(1)/usr/lib/
  95. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so* $(1)/usr/lib/
  96. $(INSTALL_DIR) $(1)/usr/lib/sasl2
  97. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so* $(1)/usr/lib/sasl2/
  98. endef
  99. $(eval $(call BuildPackage,libsasl2))