summaryrefslogtreecommitdiffstats
path: root/games/gtktetcolor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/gtktetcolor/Makefile')
-rw-r--r--games/gtktetcolor/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/games/gtktetcolor/Makefile b/games/gtktetcolor/Makefile
new file mode 100644
index 0000000..e3f6471
--- /dev/null
+++ b/games/gtktetcolor/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: gtktetcolor
+# Date created: 17 August 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtktetcolor
+PORTVERSION= 0.4.2
+CATEGORIES= games gnome
+MASTER_SITES= http://www.dvgu.ru/ifit/~panov/gtktetcolor/ \
+ http://metalab.unc.edu/pub/Linux/games/
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs
+RUN_DEPENDS= panel:${PORTSDIR}/x11/gnomecore
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+
+GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
+CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
+ --datadir=${PREFIX}/share/gnome
+CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" \
+ GTK_CONFIG="${GTK_CONFIG}" \
+ CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/gnome/pixmaps
+ @${INSTALL_DATA} ${WRKSRC}/src/gtktetcolor.xpm ${PREFIX}/share/gnome/pixmaps
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud