blob: b9baf208c2fd93e887411ffead4b5d4746055ff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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>
|