1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/znibbles/Makefile
Alex Kozlov d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00

62 lines
1.4 KiB
Makefile

# Created by: Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
# $FreeBSD$
PORTNAME= znibbles
PORTVERSION= 0.0.7
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= http://old.koalateam.com/ftp/pub/games/znibbles/ \
http://www.jfouffa.com/vmallet/archives/
MAINTAINER= ports@FreeBSD.org
COMMENT= A multi-player networked nibbles game
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
OPTIONS_DEFINE= GTK1
OPTIONS_DEFAULT= GTK1
USES= motif
WANT_GNOME= yes
GNU_CONFIGURE= yes
MAN6= nibbles.6 znibbles.6 znibblesX.6
PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK1}
USE_GNOME+= gtk12
MAN6+= gznibbles.6
PLIST_FILES+= bin/gznibbles
.else
CONFIGURE_ARGS+=--disable-gtk
.endif
post-extract:
@${RM} -f ${WRKSRC}/src/getopt.h
# @${LN} -sf /usr/include/getopt.h ${WRKSRC}/src
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:
${INSTALL_MAN} ${WRKSRC}/doc/nibbles.6 ${MAN6PREFIX}/man/man6
${INSTALL_MAN} ${WRKSRC}/doc/znibbles.6 ${MAN6PREFIX}/man/man6
${INSTALL_MAN} ${WRKSRC}/doc/znibblesX.6 ${MAN6PREFIX}/man/man6
.if ${PORT_OPTIONS:MGTK1}
${INSTALL_MAN} ${WRKSRC}/doc/gznibbles.6 ${MAN6PREFIX}/man/man6
.endif
.include <bsd.port.mk>