3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=6c4c72a1336aa45b463e738034c078d6
10 PKG_SOURCE_URL
:=ftp
://ftp.openldap.org
/pub
/OpenLDAP
/openldap-release
/ \
11 ftp
://sunsite.cnlab-switch.ch
/mirror
/OpenLDAP
/openldap-release
/ \
12 ftp
://ftp.nl.uu.net
/pub
/unix
/db
/openldap
/openldap-release
/ \
13 ftp
://ftp.plig.org
/pub
/OpenLDAP
/openldap-release
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 PKG_CONFIGURE_OPTIONS
= \
33 --with-yielding_select
="yes" \
35 include $(TOPDIR
)/package
/rules.mk
37 $(eval
$(call PKG_template
,LIBOPENLDAP
,libopenldap
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
38 $(eval
$(call PKG_template
,OPENLDAP_UTILS
,openldap-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
40 $(PKG_BUILD_DIR
)/.configured
:
43 $(PKG_BUILD_DIR
)/.built
:
44 rm -rf
$(PKG_INSTALL_DIR
)
45 mkdir
-p
$(PKG_INSTALL_DIR
)
46 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
48 --target
=$(GNU_HOST_NAME
) \
49 --host
=$(GNU_HOST_NAME
) \
50 --build
=$(GNU_HOST_NAME
) \
56 --datadir=/usr
/share \
57 --includedir=/usr
/include \
59 --libexecdir
=/usr
/lib \
60 --localstatedir
=/var \
61 --mandir=/usr
/share
/man \
64 $(DISABLE_LARGEFILE
) \
66 $(PKG_CONFIGURE_OPTIONS
) \
67 --without-cyrus-sasl \
71 $(MAKE
) -C
$(PKG_BUILD_DIR
) depend
72 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblutil
73 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblber
74 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblunicode
75 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblber
clean
76 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblutil
clean
77 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
78 $(TARGET_CONFIGURE_OPTS
) \
79 CFLAGS
="$(TARGET_CFLAGS)" \
80 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
81 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
82 ac_cv_func_memcmp_clean
="yes" \
84 --target
=$(GNU_TARGET_NAME
) \
85 --host
=$(GNU_TARGET_NAME
) \
86 --build
=$(GNU_HOST_NAME
) \
92 --datadir=/usr
/share \
93 --includedir=/usr
/include \
95 --libexecdir
=/usr
/lib \
96 --localstatedir
=/var \
97 --mandir=/usr
/share
/man \
100 $(DISABLE_LARGEFILE
) \
102 $(PKG_CONFIGURE_OPTIONS
) \
104 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
105 DESTDIR
="$(PKG_INSTALL_DIR)" \
111 mkdir
-p
$(IDIR_LIBOPENLDAP
)/etc
/openldap
112 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/openldap
/ldap.conf
$(IDIR_LIBOPENLDAP
)/etc
/openldap
/
113 mkdir
-p
$(IDIR_LIBOPENLDAP
)/usr
/lib
/
114 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.so.
* $(IDIR_LIBOPENLDAP
)/usr
/lib
/
115 mkdir
-p
$(IDIR_LIBOPENLDAP
)/usr
/share
/openldap
116 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/openldap
/* $(IDIR_LIBOPENLDAP
)/usr
/share
/openldap
/
117 $(RSTRIP
) $(IDIR_LIBOPENLDAP
)
118 $(IPKG_BUILD
) $(IDIR_LIBOPENLDAP
) $(PACKAGE_DIR
)
120 $(IPKG_OPENLDAP_UTILS
):
121 mkdir
-p
$(IDIR_OPENLDAP_UTILS
)/usr
/bin
122 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ldap
* $(IDIR_OPENLDAP_UTILS
)/usr
/bin
/
123 $(RSTRIP
) $(IDIR_OPENLDAP_UTILS
)
124 $(IPKG_BUILD
) $(IDIR_OPENLDAP_UTILS
) $(PACKAGE_DIR
)
126 $(STAGING_DIR
)/usr
/lib
/libldap.so
: $(PKG_BUILD_DIR
)/.built
127 mkdir
-p
$(STAGING_DIR
)/usr
/include
128 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/{lber
,ldap
}*.h
$(STAGING_DIR
)/usr
/include/
129 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
130 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
133 install-dev
: $(STAGING_DIR
)/usr
/lib
/libldap.so
136 rm -rf
$(STAGING_DIR
)/usr
/include/{lber
,ldap
}*.h
137 rm -rf
$(STAGING_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*}
139 compile-targets
: install-dev
140 clean-targets
: uninstall-dev