openbsd-ports/net/ruby-rrdtool/Makefile
jeremy 4df01cf8a7 Explicitly set ports that only build or run on ruby 1.8 to have both
FLAVOR and FLAVORS set to ruby18, so attempting to build them without a
FLAVOR set still builds the ruby 1.8 version.
2012-09-23 17:00:49 +00:00

37 lines
725 B
Makefile

# $OpenBSD: Makefile,v 1.17 2012/09/23 17:00:49 jeremy Exp $
COMMENT= ruby bindings for RRDtool
V= 0.6.0
DISTNAME= RubyRRDtool-$V
PKGNAME= rrdtool-$V
REVISION= 10
CATEGORIES= net
HOMEPAGE= http://rubyrrdtool.rubyforge.org/
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= art_lgpl_2 freetype png rrd z
FLAVORS= ruby18
FLAVOR= ruby18
MODULES= lang/ruby
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= devel/ruby-hoe,${MODRUBY_FLAVOR}
LIB_DEPENDS= rrdtool->=1.2,<1.3:net/rrdtool
CONFIGURE_STYLE=ruby gem ext
pre-configure:
@perl -pi -e "s#%%LOCALBASE%%#${LOCALBASE}#;" \
-e "s#%%X11BASE%%#${X11BASE}#" ${WRKSRC}/extconf.rb
.include <bsd.port.mk>