Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_MD5SUM:=a7f4e5e559a0e37b3ffc438c9456e425
  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))