3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=268ead27f4ac39bcfe17d9e38e0f2977
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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,LIBSASL2
,libsasl2
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
52 --enable-staticdlopen \
54 --disable-alwaystrue \
60 --disable-srp-setpass \
63 --disable-gss_mutexes \
71 --with-devrandom
="/dev/urandom" \
74 --without-authdaemond \
77 --with-openssl
="$(STAGING_DIR)/usr" \
88 touch
$(PKG_BUILD_DIR
)/.configured
90 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
91 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
93 LINK
="$(HOSTCC) -o makemd5 -lc" \
96 $(MAKE
) -C
$(PKG_BUILD_DIR
)
97 mkdir
-p
$(PKG_INSTALL_DIR
)
98 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
99 DESTDIR
="$(PKG_INSTALL_DIR)" \
101 touch
$(PKG_BUILD_DIR
)/.built
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
)
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
/
121 install-dev
: $(STAGING_DIR
)/usr
/lib
/libsasl2.so
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