python3: update to 3.11.10
[openadk.git] / package / ruby-ldap / Makefile
blobebd9bb8a401afb420b4be095466e3f6a03e82231
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= ruby-ldap
7 PKG_VERSION:= 0.9.8
8 PKG_RELEASE:= 1
9 PKG_HASH:= 98a77579d8a11d5fb559f1f589c27af6dc8495657a8a9ecc5bd16b71c4a7e884
10 PKG_DESCR:= ruby ldap extension
11 PKG_SECTION:= dev/lang
12 PKG_DEPENDS:= ruby libopenldap
13 PKG_BUILDDEP:= ruby openldap
14 PKG_URL:= http://ruby-ldap.sourceforge.net/
15 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ruby-ldap/0.9.8/}
17 PKG_CFLINE_RUBY_LDAP:= depends on ADK_BROKEN
19 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call PKG_template,RUBY_LDAP,ruby-ldap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 CONFIG_STYLE:= manual
26 FAKE_FLAGS+= DESTDIR="/"
28 do-configure:
29 (cd $(WRKBUILD) && $(STAGING_HOST_DIR)/usr/bin/ruby -I$(STAGING_TARGET_DIR)/usr/lib/ruby/2.0.0/$(ADK_TARGET_CPU_ARCH)-linux/ extconf.rb \
30 --with-openldap2 \
31 --without-libnsl \
32 --with-ldap-dir=$(STAGING_TARGET_DIR)/usr \
33 --with-ldap-lib=$(STAGING_TARGET_DIR)/usr/lib \
34 --with-ldap-include=$(STAGING_TARGET_DIR)/usr/include)
36 ruby-ldap-install:
37 $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(ADK_TARGET_CPU_ARCH)-linux
38 $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
39 $(CP) $(STAGING_TARGET_DIR)/usr/lib/ruby/site_ruby/2.0.0/$(ADK_TARGET_CPU_ARCH)-linux/ldap.so \
40 $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(ADK_TARGET_CPU_ARCH)-linux
41 $(CP) $(STAGING_TARGET_DIR)//usr/lib/ruby/site_ruby/2.0.0/ldap/*.rb \
42 $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
44 include ${ADK_TOPDIR}/mk/pkg-bottom.mk