1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/games/bastet/Makefile
2016-04-21 16:43:14 +00:00

55 lines
1.1 KiB
Makefile

# 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+
BROKEN_powerpc64= Does not build
LIB_DEPENDS= libboost_program_options.so: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>