summaryrefslogtreecommitdiff
path: root/graphics/giram
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
commit7b4c77811e89d7fc1131ca6e63df3e719bc86b1d (patch)
tree9695733a1620c4c290c86f161a4f1b73160ed39a /graphics/giram
parentImplement USE_GNOME, part 2. (diff)
Implement WANT_GNOME.
Notes
Notes: svn path=/head/; revision=33430
Diffstat (limited to 'graphics/giram')
-rw-r--r--graphics/giram/Makefile26
-rw-r--r--graphics/giram/files/patch-ac11
2 files changed, 30 insertions, 7 deletions
diff --git a/graphics/giram/Makefile b/graphics/giram/Makefile
index 480e705f4e57..fc46500a6084 100644
--- a/graphics/giram/Makefile
+++ b/graphics/giram/Makefile
@@ -13,21 +13,33 @@ DISTNAME= Giram-${PORTVERSION}
MAINTAINER= bfoz@glue.umd.edu
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray31
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-
+USE_X_PREFIX= yes
USE_MESA= yes
USE_GMAKE= yes
+USE_GTK= yes
+WANT_GNOME= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- GTK_CONFIG="${GTK_CONFIG}" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --disable-gnome
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+.else
+CONFIGURE_ARGS+=--disable-gnome
+.endif
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
post-install:
@${MKDIR} ${PREFIX}/share/doc/giram/SampleScenes
${INSTALL_DATA} ${WRKSRC}/SampleScenes/* ${PREFIX}/share/doc/giram/SampleScenes/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/giram/files/patch-ac b/graphics/giram/files/patch-ac
new file mode 100644
index 000000000000..cff3172ef611
--- /dev/null
+++ b/graphics/giram/files/patch-ac
@@ -0,0 +1,11 @@
+--- docs/Makefile.in.orig Mon Mar 6 00:33:01 2000
++++ docs/Makefile.in Mon Mar 6 00:35:17 2000
+@@ -88,7 +88,7 @@
+ helpfilepath = @helpfilepath@
+ l = @l@
+
+-docsdir = @helpfilepath@
++docsdir = @prefix@/share/doc/giram
+
+ docs_DATA = Tutorial
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs