aboutsummaryrefslogtreecommitdiffstats
path: root/games/bastet/Makefile
blob: d39282c4b8e266aebde5b925f864fcd48af08e37 (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
# Created by: Michael Nottebrock <lofi@FreeBSD.org>
# $FreeBSD$

PORTNAME=   bastet
PORTVERSION=    0.43
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   http://fph.altervista.org/prog/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Ncurses Tetris clone which is harder than every other Tetris

LICENSE=    GPLv3 # (or later)

LIB_DEPENDS=    libboost_program_options.so:${PORTSDIR}/devel/boost-libs

USES=       gmake ncurses tar:tgz

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PLIST_FILES=    bin/bastet man/man6/bastet.6.gz

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 1000024
.if exists(/usr/bin/clang)
CC=     clang
CXX=        clang++
CPP=        clang-cpp
.else
.if ${ARCH} == "i386"
CXXFLAGS+=  -fexceptions
.else
USE_GCC=    yes
.endif
.endif
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|^CXXFLAGS+=-D|CXXFLAGS+=$$(CPPFLAGS) -D| ; \
         s|$$(CXX) -MM|$$(CXX) $$(CXXFLAGS) -MM| ; \
         s| -ggdb | |' ${WRKSRC}/Makefile

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} bastet \
        ${STAGEDIR}${PREFIX}/bin)
    (cd ${WRKSRC} && ${INSTALL_MAN} bastet.6 \
        ${STAGEDIR}${MAN6PREFIX}/man/man6)

.include <bsd.port.post.mk>