Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= ruby-ldap
  5. PKG_VERSION:= 0.9.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 83240451aa43de447d48035dc2d10dee
  8. PKG_DESCR:= Ruby LDAP extension
  9. PKG_SECTION:= lang
  10. PKG_DEPENDS:= ruby libopenldap
  11. PKG_BUILDDEP:= ruby openldap
  12. PKG_URL:= http://ruby-ldap.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ruby-ldap/0.9.8/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,RUBY_LDAP,ruby-ldap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. FAKE_FLAGS+= DESTDIR="/"
  19. do-configure:
  20. (cd $(WRKBUILD) && $(STAGING_HOST_DIR)/usr/bin/ruby -I$(STAGING_DIR)/usr/lib/ruby/2.0.0/$(CPU_ARCH)-linux/ extconf.rb \
  21. --with-openldap2 \
  22. --without-libnsl \
  23. --with-ldap-dir=$(STAGING_DIR)/usr \
  24. --with-ldap-lib=$(STAGING_DIR)/usr/lib \
  25. --with-ldap-include=$(STAGING_DIR)/usr/include)
  26. ruby-ldap-install:
  27. $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
  28. $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
  29. $(CP) $(STAGING_DIR)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux/ldap.so \
  30. $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
  31. $(CP) $(STAGING_DIR)//usr/lib/ruby/site_ruby/2.0.0/ldap/*.rb \
  32. $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
  33. include ${TOPDIR}/mk/pkg-bottom.mk