summaryrefslogtreecommitdiffstats
path: root/graphics/ruby-cairo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ruby-cairo/Makefile')
-rw-r--r--graphics/ruby-cairo/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/ruby-cairo/Makefile b/graphics/ruby-cairo/Makefile
new file mode 100644
index 000000000..8ee7f6c9d
--- /dev/null
+++ b/graphics/ruby-cairo/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: rcairo
+# Date created: 16 October 2005
+# Whom: Mezz <mezz@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= cairo
+PORTVERSION= 1.7.0
+CATEGORIES= graphics ruby
+MASTER_SITES= http://cairographics.org/releases/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= r${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= mezz@FreeBSD.org
+COMMENT= Ruby binding for Cairo
+
+LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
+
+USE_GNOME= pkgconfig
+USE_RUBY= yes
+USE_RUBY_EXTCONF=yes
+CONFIGURE_ARGS+=--ruby=${RUBY}
+
+DOCS= AUTHORS COPYING ChangeLog GPL NEWS README
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local/lib/pkgconfig|${LOCALBASE}/libdata/pkgconfig|g' \
+ ${WRKSRC}/pkg-config.rb
+
+post-install:
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${RUBY_MODEXAMPLESDIR}/agg
+ @${INSTALL_DATA} ${WRKSRC}/samples/*.rb ${RUBY_MODEXAMPLESDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/samples/agg/*.rb ${RUBY_MODEXAMPLESDIR}/agg/
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${RUBY_MODDOCDIR}
+.for f in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
+.endfor
+.endif
+
+.include <bsd.port.mk>