89b4379a17
With hat: portmgr
58 lines
1.3 KiB
Makefile
58 lines
1.3 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
|
|
|
|
DEPRECATED= Uses obsolete glib12
|
|
EXPIRATION_DATE= 2018-12-20
|
|
|
|
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>
|