aboutsummaryrefslogtreecommitdiffstats
path: root/games/xpuyopuyo/Makefile
blob: 2bd94827ad06dc7af37e1429473317c1269a05ff (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
# New ports collection makefile for:    xpuyopuyo
# Date created:     19 Sep 1999
# Whom:         Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   xpuyopuyo
PORTVERSION=    0.9.3
CATEGORIES= games
MASTER_SITES=   http://chaos2.org/xpuyopuyo/ \
        http://lenin.dabney.caltech.edu/~justins/xpuyopuyo/

MAINTAINER= yinjieh@csie.nctu.edu.tw

USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_XPM=    yes
USE_AUTOCONF=   yes
USE_GNOMENG=    yes
USE_GNOME=  gtk12
WANT_GNOME= yes

MAN6=       xpuyopuyo.6

.include <bsd.port.pre.mk>

.if defined(WITH_MIKMOD) || (exists(${LOCALBASE}/lib/libmikmod.a) && \
    !defined(WITHOUT_MIKMOD))
LIB_DEPENDS+=   mikmod.2:${PORTSDIR}/audio/libmikmod
CONFIGURE_ARGS+=--with-libmikmod-prefix=${LOCALBASE}
.endif

.if ${HAVE_GNOME:Mgnomelibs}!=""
USE_GNOME+= gnomelibs gnomehack
PKGNAMESUFFIX=  -gnome
PLIST_SUB+= DATADIR="share/gnome"
.else
CONFIGURE_ARGS+=    --without-gnome
PLIST_SUB+= DATADIR="share"
.endif

.if defined(WITH_ROTATE_FIXED)
CONFIGURE_ARGS+=--enable-rotate-fixed
.endif
.if defined(WITH_AIBREED)
CONFIGURE_ARGS+=--enable-aibreed
.endif

.include <bsd.port.post.mk>