aboutsummaryrefslogtreecommitdiffstats
path: root/games/xgalaga/Makefile
blob: 87988a5b07de8ba090645282acf0d340ca10d6b1 (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
# Created by: asami
# $FreeBSD$

PORTNAME=   xgalaga
PORTVERSION=    2.1.1.0
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION}/

MAINTAINER= turutani@scphys.kyoto-u.ac.jp
COMMENT=    Galaga resurrected on X

USES=       gmake
MAKE_JOBS_UNSAFE=   yes
USE_XORG=   xpm xmu
HAS_CONFIGURE=  yes
MAN6=       xgalaga.6x
MANCOMPRESSED=  yes
# xgalaga has a very strange usage of these variables...
CONFIGURE_ARGS= --prefix=${LOCALBASE}/lib/X11/xgalaga \
        --mandir=${LOCALBASE}/man \
        --exec_prefix=${LOCALBASE}/bin

OPTIONS_DEFINE= SOUND
OPTIONS_DEFAULT=    SOUND

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MSOUND)
CONFIGURE_ARGS+=    --without-sound
PLIST_SUB=  SOUND="@comment "
.else
PLIST_SUB=  SOUND=""
.endif

post-install:
    @${STRIP_CMD} ${PREFIX}/bin/xgalaga

.include <bsd.port.mk>