lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2741B)


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