summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-04-25 14:42:25 +0000
committerminskim <minskim@pkgsrc.org>2005-04-25 14:42:25 +0000
commit4e9c85afd0c7077449246c2a382c54f593509d23 (patch)
tree8699886b0445effe84357dd090ae0dd77fd3d478 /graphics
parent7823ecd05fc1a18df0d9bef0aed91f7b8f851fc3 (diff)
downloadpkgsrc-4e9c85afd0c7077449246c2a382c54f593509d23.tar.gz
Make this package build on NetBSD-1.6.x. Patch provided by OBATA Akio.
- Do not use -std=gnu99 option when gcc-2.x is used. - Create a directory used by PAX.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ruby-RMagick/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/ruby-RMagick/Makefile b/graphics/ruby-RMagick/Makefile
index 8feeb44ef39..c7d6702e3a3 100644
--- a/graphics/ruby-RMagick/Makefile
+++ b/graphics/ruby-RMagick/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/04/06 14:54:02 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2005/04/25 14:42:25 minskim Exp $
DISTNAME= RMagick-1.7.4
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
@@ -17,7 +17,13 @@ USE_X11= yes
CONFIGURE_ARGS+= --with-doc-dir=${RUBY_DOCDIR}/RMagick
CONFIGURE_ARGS+= --without-graphics-magick
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-2*)
+BUILDLINK_TRANSFORM+= rm:-std=gnu99
+.endif
+
post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/RMagick
cd ${WRKSRC}/examples && \
${PAX} -rw -pp -pm . ${RUBY_EXAMPLESDIR}/RMagick