Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. PKG_CFLINE_RUBY_LDAP:= depends on ADK_BROKEN
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,RUBY_LDAP,ruby-ldap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= manual
  19. FAKE_FLAGS+= DESTDIR="/"
  20. do-configure:
  21. (cd $(WRKBUILD) && $(STAGING_HOST_DIR)/usr/bin/ruby -I$(STAGING_TARGET_DIR)/usr/lib/ruby/2.0.0/$(CPU_ARCH)-linux/ extconf.rb \
  22. --with-openldap2 \
  23. --without-libnsl \
  24. --with-ldap-dir=$(STAGING_TARGET_DIR)/usr \
  25. --with-ldap-lib=$(STAGING_TARGET_DIR)/usr/lib \
  26. --with-ldap-include=$(STAGING_TARGET_DIR)/usr/include)
  27. ruby-ldap-install:
  28. $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
  29. $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
  30. $(CP) $(STAGING_TARGET_DIR)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux/ldap.so \
  31. $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/$(CPU_ARCH)-linux
  32. $(CP) $(STAGING_TARGET_DIR)//usr/lib/ruby/site_ruby/2.0.0/ldap/*.rb \
  33. $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/2.0.0/ldap
  34. include ${TOPDIR}/mk/pkg-bottom.mk