diff options
Diffstat (limited to 'graphics/giram/Makefile')
-rw-r--r-- | graphics/giram/Makefile | 26 |
1 files changed, 19 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> |