Nav apraksta

Makefile 2.6KB

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