Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.37 2015/08/29 16:19:13 jeremy Exp $
  2. COMMENT= ruby interface to Berkeley DB
  3. DISTNAME= bdb-0.6.5
  4. REVISION= 8
  5. CATEGORIES= databases
  6. HOMEPAGE= http://rubyforge.org/projects/bdb/
  7. # GPL
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MASTER_SITES= http://rubyforge.org/frs/download.php/56887/
  10. MODULES= lang/ruby
  11. WANTLIB= lib/db4/db>=4
  12. LIB_DEPENDS= databases/db/v4
  13. CONFIGURE_STYLE= ruby extconf
  14. CONFIGURE_ARGS= --with-db-include="${PREFIX}/include/db4" \
  15. --with-db-version=""
  16. INSTALL_TARGET= site-install
  17. DOCS= Changes README.en bdb.html bdb.rd
  18. EXAMPLES= basic.rb cats.rb clean.rb cursor.rb \
  19. func.rb join.rb lock.rb log.rb \
  20. queue.rb recno.rb record.rb txn.rb \
  21. zeroc.rb wordlist wordtest
  22. DOC_DIR= ${MODRUBY_DOCDIR}/bdb
  23. EXAMPLE_DIR= ${MODRUBY_EXAMPLEDIR}/bdb
  24. FLAVORS= ruby18 ruby19 ruby20
  25. FLAVOR?= ruby18
  26. pre-install:
  27. @sed -i 's,/usr,${LOCALBASE},' ${WRKSRC}/examples/*.rb
  28. do-test:
  29. @cd ${WRKSRC} && make test
  30. post-install:
  31. ${INSTALL_DATA_DIR} ${DOC_DIR}
  32. ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOC_DIR}
  33. .for d in ${DOCS}
  34. ${INSTALL_DATA} ${WRKSRC}/$d ${DOC_DIR}/$d
  35. .endfor
  36. ${INSTALL_DATA_DIR} ${EXAMPLE_DIR}
  37. .for e in ${EXAMPLES}
  38. ${INSTALL_DATA} ${WRKSRC}/examples/$e ${EXAMPLE_DIR}/$e
  39. .endfor
  40. .include <bsd.port.mk>