1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/games/znibbles/Makefile
Mathieu Arnold eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00

55 lines
1.2 KiB
Makefile

# Created by: Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
# $FreeBSD$
PORTNAME= znibbles
PORTVERSION= 0.0.7
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= http://www.zyllius.com/vmallet/archives/
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-player networked nibbles game
LICENSE= GPLv2+
OPTIONS_DEFINE= GTK1
OPTIONS_DEFAULT= GTK1
USES= motif
GNU_CONFIGURE= yes
DESKTOP_ENTRIES="Znibbles" "" "" "znibblesX" "" ""
PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX \
man/man6/nibbles.6.gz man/man6/znibbles.6.gz \
man/man6/znibblesX.6.gz
GTK1_USE= GNOME=gtk12
GTK1_PLIST_FILES= bin/gznibbles man/man6/gznibbles.6.gz
GTK1_CONFIGURE_ENABLE= gtk
post-extract:
@${RM} ${WRKSRC}/src/getopt.h
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/^getopt/d ; \
s|getopt.[cho]||g ; \
s|getopt1.[co]||g' ${WRKSRC}/src/Makefile.in
.for dir in GTK Motif X11
@${REINPLACE_CMD} -e \
's|../getopt.h||g' ${WRKSRC}/src/${dir}/Makefile.in
.endfor
post-install:
(cd ${WRKSRC}/doc && ${INSTALL_MAN} nibbles.6 znibbles.6 znibblesX.6 \
${STAGEDIR}${MAN6PREFIX}/man/man6)
post-install-GTK1-on:
(cd ${WRKSRC}/doc && ${INSTALL_MAN} gznibbles.6 \
${STAGEDIR}${MAN6PREFIX}/man/man6)
.include <bsd.port.mk>