3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=afc8700b5738da863b30208e1d3e9de8
10 PKG_SOURCE_URL
:=ftp
://ftp.openldap.org
/pub
/OpenLDAP
/openldap-release
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 PKG_CONFIGURE_OPTIONS
= \
30 --with-yielding_select
="yes" \
32 include $(TOPDIR
)/package
/rules.mk
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
)))
37 $(PKG_BUILD_DIR
)/.configured
:
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
} ; \
45 --target
=$(GNU_HOST_NAME
) \
46 --host
=$(GNU_HOST_NAME
) \
47 --build
=$(GNU_HOST_NAME
) \
53 --datadir=/usr
/share \
54 --includedir=/usr
/include \
56 --libexecdir
=/usr
/lib \
57 --localstatedir
=/var \
58 --mandir=/usr
/share
/man \
61 $(DISABLE_LARGEFILE
) \
63 $(PKG_CONFIGURE_OPTIONS
) \
65 $(MAKE
) -C
$(PKG_BUILD_DIR
) depend
66 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblutil
67 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblber
68 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblunicode
69 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblber
clean
70 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libraries
/liblutil
clean
71 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
72 $(TARGET_CONFIGURE_OPTS
) \
73 CFLAGS
="$(TARGET_CFLAGS)" \
74 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
75 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
76 ac_cv_func_memcmp_clean
="yes" \
78 --target
=$(GNU_TARGET_NAME
) \
79 --host
=$(GNU_TARGET_NAME
) \
80 --build
=$(GNU_HOST_NAME
) \
86 --datadir=/usr
/share \
87 --includedir=/usr
/include \
89 --libexecdir
=/usr
/lib \
90 --localstatedir
=/var \
91 --mandir=/usr
/share
/man \
94 $(DISABLE_LARGEFILE
) \
96 $(PKG_CONFIGURE_OPTIONS
) \
98 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
99 DESTDIR
="$(PKG_INSTALL_DIR)" \
105 mkdir
-p
$(IDIR_LIBOPENLDAP
)/etc
/openldap
106 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/openldap
/ldap.conf
$(IDIR_LIBOPENLDAP
)/etc
/openldap
/
107 mkdir
-p
$(IDIR_LIBOPENLDAP
)/usr
/lib
/
108 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.so.
* $(IDIR_LIBOPENLDAP
)/usr
/lib
/
109 mkdir
-p
$(IDIR_LIBOPENLDAP
)/usr
/share
/openldap
110 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/openldap
/* $(IDIR_LIBOPENLDAP
)/usr
/share
/openldap
/
111 $(RSTRIP
) $(IDIR_LIBOPENLDAP
)
112 $(IPKG_BUILD
) $(IDIR_LIBOPENLDAP
) $(PACKAGE_DIR
)
114 $(IPKG_OPENLDAP_UTILS
):
115 mkdir
-p
$(IDIR_OPENLDAP_UTILS
)/usr
/bin
116 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/ldap
* $(IDIR_OPENLDAP_UTILS
)/usr
/bin
/
117 $(RSTRIP
) $(IDIR_OPENLDAP_UTILS
)
118 $(IPKG_BUILD
) $(IDIR_OPENLDAP_UTILS
) $(PACKAGE_DIR
)
120 $(STAGING_DIR
)/usr
/lib
/libldap.so
: $(PKG_BUILD_DIR
)/.built
121 mkdir
-p
$(STAGING_DIR
)/usr
/include
122 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/{lber
,ldap
}*.h
$(STAGING_DIR
)/usr
/include/
123 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/
124 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
125 touch
$(STAGING_DIR
)/usr
/lib
/libldap.so
127 install-dev
: $(STAGING_DIR
)/usr
/lib
/libldap.so
130 rm -rf
$(STAGING_DIR
)/usr
/include/{lber
,ldap
}*.h
131 rm -rf
$(STAGING_DIR
)/usr
/lib
/lib
{lber
,ldap
}*.
{a
,so
*}