openbsd-ports/databases/ruby-amalgalite/Makefile
jasper feab4fb450 unbreak on mips64el by compiling the extensions with -O1.
with help from jeremy@ on figuring out the needed CONFIGURE_ARGS
2013-01-09 19:24:27 +00:00

39 lines
986 B
Makefile

# $OpenBSD: Makefile,v 1.10 2013/01/09 19:24:27 jasper Exp $
COMMENT = ruby SQLite3 embedded database library
DISTNAME = amalgalite-1.1.2
CATEGORIES = databases
REVISION = 2
HOMEPAGE = http://copiousfreetime.rubyforge.org/amalgalite/
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem ext
.if ${MACHINE_ARCH} == "mips64el"
CONFIGURE_ARGS = --with-cflags="-O1"
.endif
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/ruby-arrayfields,${MODRUBY_FLAVOR}>=4.7.4,<4.8 \
textproc/ruby-fastercsv,${MODRUBY_FLAVOR}>=1.5.4,<1.6
AMALGALITE_SO_DIR = amalgalite/${MODRUBY_REV}
SUBST_VARS += AMALGALITE_SO_DIR
# distfile doesn't include configuration directory necessary for testing.
REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
MODRUBY_REGRESS = rspec2
MODRUBY_REGRESS_TARGET = spec/*_spec.rb
.include <bsd.port.mk>