1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/gtklife/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

83 lines
2.2 KiB
Makefile

# New ports collection makefile for: gtklife
# Date created: 07 Aug 2004
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= gtklife
PORTVERSION= 5.1
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://ironphoenix.org/tril/gtklife/
MAINTAINER= ports@FreeBSD.org
COMMENT= A GTK+ implementation of Conway's Game of Life
WANT_GNOME= yes
INSTALLS_ICONS= yes
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" docdir="${DOCSDIR}"
PLIST= ${WRKDIR}/pkg-plist
PLIST_FILES= bin/gtklife
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
pre-install:
@cd ${WRKSRC} && >${PLIST} && \
${FIND} ${DATA_SUBDIRS} ! -type d | ${SORT} \
| ${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.post.mk>