# New ports collection makefile for: znibbles # Date created: 21 Aug 1999 # Whom: Yin-Jieh Chen # # $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 USE_MOTIF= yes WANT_GNOME= yes GNU_CONFIGURE= yes MAKE_JOBS_SAFE= yes MAN6= nibbles.6 znibbles.6 znibblesX.6 PLIST_FILES= bin/nibbles bin/znibbles bin/znibblesX .include .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