1999-11-01 05:10:49 +01:00
|
|
|
# New ports collection makefile for: znibbles
|
|
|
|
# Date created: 21 Aug 1999
|
|
|
|
# Whom: Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= znibbles
|
|
|
|
PORTVERSION= 0.0.7
|
2011-08-12 21:53:09 +02:00
|
|
|
PORTREVISION= 6
|
1999-11-01 05:10:49 +01:00
|
|
|
CATEGORIES= games
|
2011-08-12 21:53:09 +02:00
|
|
|
MASTER_SITES= http://old.koalateam.com/ftp/pub/games/znibbles/ \
|
|
|
|
http://www.jfouffa.com/vmallet/archives/
|
1999-11-01 05:10:49 +01:00
|
|
|
|
2008-12-25 04:13:51 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A multi-player networked nibbles game
|
1999-11-01 05:10:49 +01:00
|
|
|
|
2011-08-12 21:53:09 +02:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
|
|
|
OPTIONS= GTK "Build GTK+ client" on
|
2011-08-02 19:04:00 +02:00
|
|
|
|
2000-11-08 00:28:20 +01:00
|
|
|
USE_MOTIF= yes
|
2011-08-12 21:53:09 +02:00
|
|
|
WANT_GNOME= yes
|
2000-10-05 08:36:23 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-12 21:53:09 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
|
|
|
MAN6= nibbles.6 znibbles.6 znibblesX.6
|
|
|
|
PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_GTK)
|
|
|
|
CONFIGURE_ARGS+=--disable-gtk
|
|
|
|
.else
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
MAN6+= gznibbles.6
|
|
|
|
PLIST_FILES+= bin/gznibbles
|
|
|
|
.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
|
1999-11-01 05:10:49 +01:00
|
|
|
|
2011-08-12 21:53:09 +02:00
|
|
|
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 !defined(WITHOUT_GTK)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/gznibbles.6 ${MAN6PREFIX}/man/man6
|
|
|
|
.endif
|
1999-11-01 05:10:49 +01:00
|
|
|
|
2011-08-12 21:53:09 +02:00
|
|
|
.include <bsd.port.post.mk>
|