summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-10-17 09:07:15 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-10-17 09:07:15 +0000
commitbd5fbf38c79060dc0e523a201c52ab2741082d42 (patch)
tree609d410639e2ac36f72a1616bb42a1d3514f13f3 /graphics
parentRespect CC and CFLAGS. (diff)
Improve the patch for ming.rb. (Already sent to the author)
Define and use SWIG instead of hardcoding swig's executable name in a patch.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ruby-ming/Makefile4
-rw-r--r--graphics/ruby-ming/files/patch-depend4
2 files changed, 6 insertions, 2 deletions
diff --git a/graphics/ruby-ming/Makefile b/graphics/ruby-ming/Makefile
index f651b011bbf2..81c228db7ef2 100644
--- a/graphics/ruby-ming/Makefile
+++ b/graphics/ruby-ming/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ming
PORTVERSION= 0.0.2e
+PORTREVISION= 1
CATEGORIES= graphics ruby
MASTER_SITES= http://www.opaque.net/ming/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -24,8 +25,11 @@ MD5_FILE= ${PORTSDIR}/graphics/ming/distinfo
WRKSRC= ${WRKDIR}/${DISTNAME}/rb_ext
CONFIGURE_ARGS= --with-ming-include="${LOCALBASE}/include/ming"
+MAKE_ARGS= SWIG="${SWIG}"
INSTALL_TARGET= site-install
+SWIG= swig1.3
+
EXAMPLES= shape.rb test.rb
post-extract:
diff --git a/graphics/ruby-ming/files/patch-depend b/graphics/ruby-ming/files/patch-depend
index 3af7c1ae3ad6..a16f374050bf 100644
--- a/graphics/ruby-ming/files/patch-depend
+++ b/graphics/ruby-ming/files/patch-depend
@@ -1,5 +1,5 @@
--- depend.orig Fri Oct 13 15:26:31 2000
-+++ depend Mon Oct 16 17:55:07 2000
++++ depend Tue Oct 17 17:46:26 2000
@@ -1,4 +1,4 @@
-SWIGINC= ../py_ext
+SWIGINC= .
@@ -11,7 +11,7 @@
ming_wrap.c: ${SWIGINC}/blocklist.i ${SWIGINC}/blocktypes.i ${SWIGINC}/ming.i ${SWIGINC}/swf.i
- swig -I${SWIGINC} -ruby ${SWIGINC}/ming.i
-+ swig1.3 -I${SWIGINC} -ruby ${SWIGINC}/ming.i
++ ${SWIG} -I${SWIGINC} -ruby ${SWIGINC}/ming.i
clean: clean_local