Add picocom package, move serial comm. stuff to its section in Config.in
[openwrt.git] / package / openldap / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openldap
6 PKG_VERSION:=2.2.26
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=afc8700b5738da863b30208e1d3e9de8
9
10 PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 PKG_CONFIGURE_OPTIONS = \
18 --enable-shared \
19 --enable-static \
20 --disable-debug \
21 --enable-dynamic \
22 --enable-syslog \
23 --disable-local \
24 --disable-slapd \
25 --disable-slurpd \
26 --with-cyrus-sasl \
27 --without-fetch \
28 --with-threads \
29 --with-tls \
30 --with-yielding_select="yes" \
31
32 include $(TOPDIR)/package/rules.mk
33
34 $(eval $(call PKG_template,LIBOPENLDAP,libopenldap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
35 $(eval $(call PKG_template,OPENLDAP_UTILS,openldap-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
36
37 $(PKG_BUILD_DIR)/.configured:
38 touch $@
39
40 $(PKG_BUILD_DIR)/.built:
41 rm -rf $(PKG_INSTALL_DIR)
42 mkdir -p $(PKG_INSTALL_DIR)
43 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
44 ./configure \
45 --target=$(GNU_HOST_NAME) \
46 --host=$(GNU_HOST_NAME) \
47 --build=$(GNU_HOST_NAME) \
48 --program-prefix="" \
49 --program-suffix="" \
50 --prefix=/usr \
51 --exec-prefix=/usr \
52 --bindir=/usr/bin \
53 --datadir=/usr/share \
54 --includedir=/usr/include \
55 --libdir=/usr/lib \
56 --libexecdir=/usr/lib \
57 --localstatedir=/var \
58 --mandir=/usr/share/man \
59 --sbindir=/usr/sbin \
60 --sysconfdir=/etc \
61 $(DISABLE_LARGEFILE) \
62 $(DISABLE_NLS) \
63 $(PKG_CONFIGURE_OPTIONS) \
64 --without-cyrus-sasl \
65 --without-threads \
66 --without-tls \
67 )
68 $(MAKE) -C $(PKG_BUILD_DIR) depend
69 $(MAKE) -C $(PKG_BUILD_DIR)/libraries/liblutil
70 $(MAKE) -C $(PKG_BUILD_DIR)/libraries/liblber
71 $(MAKE) -C $(PKG_BUILD_DIR)/libraries/liblunicode
72 $(MAKE) -C $(PKG_BUILD_DIR)/libraries/liblber clean
73 $(MAKE) -C $(PKG_BUILD_DIR)/libraries/liblutil clean
74 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
75 $(TARGET_CONFIGURE_OPTS) \
76 CFLAGS="$(TARGET_CFLAGS)" \
77 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
78 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
79 ac_cv_func_memcmp_clean="yes" \
80 ./configure \
81 --target=$(GNU_TARGET_NAME) \
82 --host=$(GNU_TARGET_NAME) \
83 --build=$(GNU_HOST_NAME) \
84 --program-prefix="" \
85 --program-suffix="" \
86 --prefix=/usr \
87 --exec-prefix=/usr \
88 --bindir=/usr/bin \
89 --datadir=/usr/share \
90 --includedir=/usr/include \
91 --libdir=/usr/lib \
92 --libexecdir=/usr/lib \
93 --localstatedir=/var \
94 --mandir=/usr/share/man \
95 --sbindir=/usr/sbin \
96 --sysconfdir=/etc \
97 $(DISABLE_LARGEFILE) \
98 $(DISABLE_NLS) \
99 $(PKG_CONFIGURE_OPTIONS) \
100 )
101 $(MAKE) -C $(PKG_BUILD_DIR) \
102 DESTDIR="$(PKG_INSTALL_DIR)" \
103 all install
104 touch $@
105
106
107 $(IPKG_LIBOPENLDAP):
108 mkdir -p $(IDIR_LIBOPENLDAP)/etc/openldap
109 cp -fpR $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(IDIR_LIBOPENLDAP)/etc/openldap/
110 mkdir -p $(IDIR_LIBOPENLDAP)/usr/lib/
111 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(IDIR_LIBOPENLDAP)/usr/lib/
112 mkdir -p $(IDIR_LIBOPENLDAP)/usr/share/openldap
113 cp -fpR $(PKG_INSTALL_DIR)/usr/share/openldap/* $(IDIR_LIBOPENLDAP)/usr/share/openldap/
114 $(RSTRIP) $(IDIR_LIBOPENLDAP)
115 $(IPKG_BUILD) $(IDIR_LIBOPENLDAP) $(PACKAGE_DIR)
116
117 $(IPKG_OPENLDAP_UTILS):
118 mkdir -p $(IDIR_OPENLDAP_UTILS)/usr/bin
119 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ldap* $(IDIR_OPENLDAP_UTILS)/usr/bin/
120 $(RSTRIP) $(IDIR_OPENLDAP_UTILS)
121 $(IPKG_BUILD) $(IDIR_OPENLDAP_UTILS) $(PACKAGE_DIR)
122
123 $(STAGING_DIR)/usr/lib/libldap.so: $(PKG_BUILD_DIR)/.built
124 mkdir -p $(STAGING_DIR)/usr/include
125 cp -fpR $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(STAGING_DIR)/usr/include/
126 mkdir -p $(STAGING_DIR)/usr/lib/
127 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(STAGING_DIR)/usr/lib/
128 touch $(STAGING_DIR)/usr/lib/libldap.so
129
130 install-dev: $(STAGING_DIR)/usr/lib/libldap.so
131
132 uninstall-dev:
133 rm -rf $(STAGING_DIR)/usr/include/{lber,ldap}*.h
134 rm -rf $(STAGING_DIR)/usr/lib/lib{lber,ldap}*.{a,so*}
135
136 compile: install-dev
137 clean: uninstall-dev
This page took 0.047522 seconds and 5 git commands to generate.