aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/giram
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
committerreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
commit05b7017f031a0b7ec77897d1ff4479959829076e (patch)
tree26ae85d09c84baa372a2949e4ad9d1546c408c7e /graphics/giram
parent68dad4980b984b6c03859651af5eefb37c1c9d90 (diff)
downloadfreebsd-ports-graphics-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz
freebsd-ports-graphics-05b7017f031a0b7ec77897d1ff4479959829076e.tar.zst
freebsd-ports-graphics-05b7017f031a0b7ec77897d1ff4479959829076e.zip
Implement WANT_GNOME.
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 480e705f4e5..fc46500a608 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 00000000000..cff3172ef61
--- /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