1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/xlife/Makefile
Rusmir Dusko 7b8680d4cb - Transfer maintainership to games@ team
- Use tar:bzip2 instead of USE_BZIP2=yes
- Change Desktop entry file
- Remove HOW-TO-INSTALL, INSTALL, changelog.debian and changelog.openbsd
  from DOCS
2014-05-29 20:59:26 +00:00

68 lines
1.8 KiB
Makefile

# Created by: asami
# $FreeBSD$
PORTNAME= xlife
PORTVERSION= 6.7.6
CATEGORIES= games
MASTER_SITES= http://litwr2.atspace.eu/xlife/
MAINTAINER= games@FreeBSD.org
COMMENT= John Horton Conway's Game of Life
LICENSE= MIT GPLv2
LICENSE_COMB= multi
RUN_DEPENDS= gawk:${PORTSDIR}/lang/gawk
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USES= imake:notall tar:bzip2
USE_XORG= x11
DESKTOP_ENTRIES="XLife" "" "${PORTNAME}" \
"${PORTNAME}" "Game;Simulation;" ""
OPTIONS_DEFINE= DOCS
PORTDOCS= *
DOC_FILES= CHANGES HACKING MISSED README \
SHORT-INFO XLIFE-HISTORY.dot
.include <bsd.port.options.mk>
post-extract:
@${LN} -sf xlife.man ${WRKSRC}/xlife.6
pre-patch:
.for i in 6.7to6.7.1 6.7.1to6.7.2 6.7.2to6.7.3 6.7.3to6.7.4 6.7.4to6.7.5 \
6.7.5to6.7.6
@(${CAT} ${WRKDIR}/${PORTNAME}${i}.patch | ${PATCH} -d ${WRKSRC} -p1 -s)
.endfor
post-patch:
@${REINPLACE_CMD} -e \
'/CDEBUGFLAGS[[:space:]]/s|^|XCOMM | ; \
s|/usr/share/xlife|${DATADIR}|' ${WRKSRC}/Imakefile
@${REINPLACE_CMD} -e \
's|GAWKPATH|${LOCALBASE}/bin/gawk|' ${WRKSRC}/table2r
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} gen-multirules xlife \
${STAGEDIR}${PREFIX}/bin)
@${LN} -sf xlife ${STAGEDIR}${PREFIX}/bin/lifeconv
(cd ${WRKSRC} && ${INSTALL_SCRIPT} table2r \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} xlife.6 \
${STAGEDIR}${MAN6PREFIX}/man/man6)
@${LN} -sf xlife.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/lifeconv.6
@${MKDIR} ${STAGEDIR}${DATADIR}/patterns
@(cd ${WRKSRC}/patterns && ${COPYTREE_SHARE} . \
${STAGEDIR}${DATADIR}/patterns)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} \
${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . \
${STAGEDIR}${DOCSDIR}/doc)
.include <bsd.port.mk>