3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=268ead27f4ac39bcfe17d9e38e0f2977
10 PKG_SOURCE_URL
:=http
://ftp.andrew.cmu.edu
/pub
/cyrus-mail
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBSASL2
,libsasl2
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
50 --enable-staticdlopen \
52 --disable-alwaystrue \
58 --disable-srp-setpass \
61 --disable-gss_mutexes \
69 --with-devrandom
="/dev/urandom" \
72 --without-authdaemond \
75 --with-openssl
="$(STAGING_DIR)/usr" \
88 $(PKG_BUILD_DIR
)/.built
:
89 rm -rf
$(PKG_INSTALL_DIR
)
90 mkdir
-p
$(PKG_INSTALL_DIR
)
91 $(MAKE
) -C
$(PKG_BUILD_DIR
)/include \
93 LINK
="$(HOSTCC) -o makemd5 -lc" \
96 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
97 DESTDIR
="$(PKG_INSTALL_DIR)" \
102 install -m0755
-d
$(IDIR_LIBSASL2
)/usr
/lib
/
103 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.so.
* $(IDIR_LIBSASL2
)/usr
/lib
/
104 install -m0755
-d
$(IDIR_LIBSASL2
)/usr
/lib
/sasl2
105 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.so.
* $(IDIR_LIBSASL2
)/usr
/lib
/sasl2
/
106 $(RSTRIP
) $(IDIR_LIBSASL2
)
107 $(IPKG_BUILD
) $(IDIR_LIBSASL2
) $(PACKAGE_DIR
)
109 $(STAGING_DIR
)/usr
/lib
/libsasl2.so
: $(PKG_BUILD_DIR
)/.built
110 mkdir
-p
$(STAGING_DIR
)/usr
/include/
111 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/sasl
$(STAGING_DIR
)/usr
/include/
112 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
113 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libsasl2.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
114 ln
-sf libsasl2.a
$(STAGING_DIR
)/usr
/lib
/libsasl.a
115 ln
-sf libsasl2.so
$(STAGING_DIR
)/usr
/lib
/libsasl.so
116 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/sasl2
117 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/sasl2
/lib
*.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/sasl2
/
119 install-dev
: $(STAGING_DIR
)/usr
/lib
/libsasl2.so
122 rm -rf
$(STAGING_DIR
)/usr
/include/sasl
123 rm -rf
$(STAGING_DIR
)/usr
/lib
/libsasl
{2,}.
{a
,so
*}
124 rm -rf
$(STAGING_DIR
)/usr
/lib
/sasl2