Makefile 790 B

12345678910111213141516171819202122232425262728293031323334
  1. # $OpenBSD: Makefile,v 1.20 2016/11/04 21:27:44 jeremy Exp $
  2. COMMENT = ruby SQLite3 embedded database library
  3. DISTNAME = amalgalite-1.5.0
  4. CATEGORIES = databases
  5. HOMEPAGE = https://github.com/copiousfreetime/amalgalite
  6. MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
  7. # BSD
  8. PERMIT_PACKAGE_CDROM = Yes
  9. MODULES = lang/ruby
  10. CONFIGURE_STYLE = ruby gem ext
  11. .if ${MACHINE_ARCH} == "mips64el"
  12. CONFIGURE_ARGS = --with-cflags="-O1"
  13. .endif
  14. BUILD_DEPENDS = ${RUN_DEPENDS}
  15. RUN_DEPENDS = devel/ruby-arrayfields,${MODRUBY_FLAVOR}>=4.9,<5.0
  16. AMALGALITE_SO_DIR = amalgalite/${MODRUBY_REV}
  17. SUBST_VARS += AMALGALITE_SO_DIR
  18. TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
  19. MODRUBY_TEST = rspec3
  20. MODRUBY_TEST_TARGET = spec
  21. MODRUBY_TEST_ENV = LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
  22. .include <bsd.port.mk>