Add short description to Config.in prompt, add URL too
[openwrt.git] / openwrt / package / cyrus-sasl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=cyrus-sasl
6 PKG_VERSION:=2.1.20
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=268ead27f4ac39bcfe17d9e38e0f2977
9
10 PKG_SOURCE_URL:= \
11 http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
12 http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,LIBSASL2,libsasl2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_NLS) \
48 $(DISABLE_LARGEFILE) \
49 --enable-shared \
50 --enable-static \
51 --disable-sample \
52 --enable-staticdlopen \
53 --disable-java \
54 --disable-alwaystrue \
55 --disable-checkapop \
56 --enable-cram \
57 --enable-digest \
58 --disable-otp \
59 --disable-srp \
60 --disable-srp-setpass \
61 --disable-krb4 \
62 --disable-gssapi \
63 --disable-gss_mutexes \
64 --enable-plain \
65 --enable-anon \
66 --disable-login \
67 --disable-ntlm \
68 --disable-sql \
69 --with-dblib="none" \
70 --without-gdbm \
71 --with-devrandom="/dev/urandom" \
72 --without-pam \
73 --without-saslauthd \
74 --without-authdaemond \
75 --without-pwcheck \
76 --with-ipctype=unix \
77 --with-openssl="$(STAGING_DIR)/usr" \
78 --without-des \
79 --without-opie \
80 --without-ldap \
81 --without-mysql \
82 --without-pgsql \
83 --without-sqlite \
84 --without-rc4 \
85 --without-dmalloc \
86 --without-sfio \
87 );
88 touch $(PKG_BUILD_DIR)/.configured
89
90 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
91 $(MAKE) -C $(PKG_BUILD_DIR)/include \
92 CC="$(HOSTCC)" \
93 LINK="$(HOSTCC) -o makemd5 -lc" \
94 CFLAGS="" \
95 makemd5
96 $(MAKE) -C $(PKG_BUILD_DIR)
97 mkdir -p $(PKG_INSTALL_DIR)
98 $(MAKE) -C $(PKG_BUILD_DIR) \
99 DESTDIR="$(PKG_INSTALL_DIR)" \
100 install
101 touch $(PKG_BUILD_DIR)/.built
102
103 $(IPKG_LIBSASL2):
104 install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/
105 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(IDIR_LIBSASL2)/usr/lib/
106 install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/sasl2
107 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(IDIR_LIBSASL2)/usr/lib/sasl2/
108 $(RSTRIP) $(IDIR_LIBSASL2)
109 $(IPKG_BUILD) $(IDIR_LIBSASL2) $(PACKAGE_DIR)
110
111 $(STAGING_DIR)/usr/lib/libsasl2.so: $(PKG_BUILD_DIR)/.built
112 mkdir -p $(STAGING_DIR)/usr/include/
113 cp -fpR $(PKG_INSTALL_DIR)/usr/include/sasl $(STAGING_DIR)/usr/include/
114 mkdir -p $(STAGING_DIR)/usr/lib/
115 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(STAGING_DIR)/usr/lib/
116 ln -sf libsasl2.a $(STAGING_DIR)/usr/lib/libsasl.a
117 ln -sf libsasl2.so $(STAGING_DIR)/usr/lib/libsasl.so
118 mkdir -p $(STAGING_DIR)/usr/lib/sasl2
119 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(STAGING_DIR)/usr/lib/sasl2/
120
121 install-dev: $(STAGING_DIR)/usr/lib/libsasl2.so
122
123 uninstall-dev:
124 rm -rf $(STAGING_DIR)/usr/include/sasl
125 rm -rf $(STAGING_DIR)/usr/lib/libsasl{2,}.{a,so*}
126 rm -rf $(STAGING_DIR)/usr/lib/sasl2
127
128 compile: install-dev
129 clean: uninstall-dev
This page took 0.049531 seconds and 5 git commands to generate.