aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2006-11-06 21:00:32 +0800
committerjylefort <jylefort@FreeBSD.org>2006-11-06 21:00:32 +0800
commit5d3bc197d22b74c5928f32164f9ce687c846a101 (patch)
treec3179cb0bd150d3e5c9a999d508107e7c50a8b2a /games
parent48cf56b4bf475edefb09df27c17271374bb6ac70 (diff)
downloadfreebsd-ports-gnome-5d3bc197d22b74c5928f32164f9ce687c846a101.tar.gz
freebsd-ports-gnome-5d3bc197d22b74c5928f32164f9ce687c846a101.tar.zst
freebsd-ports-gnome-5d3bc197d22b74c5928f32164f9ce687c846a101.zip
- Update to 5.1 (most notable improvement is optional GTK+ 2.0 support)
- Install a desktop entry - Move to LOCALBASE
Diffstat (limited to 'games')
-rw-r--r--games/gtklife/Makefile45
-rw-r--r--games/gtklife/distinfo6
2 files changed, 42 insertions, 9 deletions
diff --git a/games/gtklife/Makefile b/games/gtklife/Makefile
index 9bcc4c4c7fc6..25d059fb5d2f 100644
--- a/games/gtklife/Makefile
+++ b/games/gtklife/Makefile
@@ -6,18 +6,18 @@
#
PORTNAME= gtklife
-PORTVERSION= 4.2
-PORTREVISION= 1
+PORTVERSION= 5.1
CATEGORIES= games
MASTER_SITES= http://ironphoenix.org/tril/gtklife/
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A GTK+ implementation of Conway's Game of Life
-USE_X_PREFIX= yes
-USE_GNOME= gtk12
+USE_XLIB= yes
+WANT_GNOME= yes
+INSTALLS_ICONS= yes
USE_GMAKE= yes
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" DOCDIR="${DOCSDIR}"
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" docdir="${DOCSDIR}"
PLIST= ${WRKDIR}/pkg-plist
PLIST_FILES= bin/gtklife
@@ -25,6 +25,27 @@ PLIST_DIRS= %%DATADIR%%
PORTDOCS= *
DATA_SUBDIRS= graphics patterns
+ICON_SIZES= 16x16 32x32 48x48
+
+DESKTOP_ENTRIES="GtkLife" \
+ "Play Conway's Game of Life" \
+ "gtklife" \
+ "gtklife" \
+ "Application;Game;Simulation;" \
+ ${STARTUP_NOTIFY}
+
+OPTIONS= GTK2 "use GTK+ 2.0 (beta)" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GTK2)
+USE_GNOME+= gtk20
+MAKE_ARGS+= gtk2=yes
+STARTUP_NOTIFY= true
+.else
+USE_GNOME+= gtk12
+STARTUP_NOTIFY= false
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|' ${WRKSRC}/Makefile
@@ -35,15 +56,27 @@ pre-install:
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} ${DATA_SUBDIRS} -type d ! -empty | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
+.for s in ${ICON_SIZES}
+ @${ECHO_CMD} "share/icons/hicolor/${s}/apps/gtklife.png" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry share/icons/hicolor/${s}/apps" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry share/icons/hicolor/${s}" >> ${PLIST}
+.endfor
+ @${ECHO_CMD} "@dirrmtry share/icons/hicolor" >> ${PLIST}
+ @${ECHO_CMD} "@dirrmtry share/icons" >> ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gtklife ${PREFIX}/bin
cd ${WRKSRC} && \
${FIND} ${DATA_SUBDIRS} -type d ! -empty -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} ${DATA_SUBDIRS} ! -type d -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
+.for s in ${ICON_SIZES}
+ ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+ ${INSTALL_DATA} ${WRKSRC}/icon_${s}.png \
+ ${PREFIX}/share/icons/hicolor/${s}/apps/gtklife.png
+.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/gtklife/distinfo b/games/gtklife/distinfo
index 20dbf338ebfb..a6514fd6b402 100644
--- a/games/gtklife/distinfo
+++ b/games/gtklife/distinfo
@@ -1,3 +1,3 @@
-MD5 (gtklife-4.2.tar.gz) = d0c0ad4d989e865a7eec6f941b0142d2
-SHA256 (gtklife-4.2.tar.gz) = ce11a700e117b150c44c52db12f06e2787839a98118c451c7b733f997c6147a0
-SIZE (gtklife-4.2.tar.gz) = 760010
+MD5 (gtklife-5.1.tar.gz) = a92ce6e2f9c66ede050143cf95f6afcd
+SHA256 (gtklife-5.1.tar.gz) = fcf5a6515595d1822291fd6da4fec93dcfb5162cfce48445686ba73ab4a98191
+SIZE (gtklife-5.1.tar.gz) = 809542