aboutsummaryrefslogtreecommitdiffstats
path: root/games/znibbles/Makefile
blob: 5beea89c4e2e525cbdb885f3c65391cc91141b57 (plain) (blame)
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
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    znibbles
# Date created:     21 Aug 1999
# Whom:         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

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 <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>