1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/games/bastet/Makefile
Adam Weinberger a84c115a09 Convert a bunch of EXTRACT_SUFX=... into USES=tar:...
Approved by:	portmgr (not really, but touches unstaged ports)
2014-07-29 19:11:51 +00:00

53 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 # (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>