freebsd-ports/games/powder/Makefile
Mark Linimon c1a541e10b Conditionalize compiler flags that are specific to clang to fix errors
of the following forms on GCC-based architectures:

  cc1plus: error: unrecognized command line option "-Wno-c++11-narrowing"
  cc1plus: error: unrecognized command line option "-Wno-reserved-user-defined-literal"
  cc1plus: warning: unrecognized command line option '-Wno-error-narrowing'

Approved by:	portmgr (tier-2 blanket)
2019-04-04 17:38:10 +00:00

46 lines
1.0 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= powder
PORTVERSION= 115
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://www.zincland.com/powder/release/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}${PORTVERSION}_src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Graphical dungeon crawling game
USES= compiler gmake
USE_SDL= sdl
MAKE_JOBS_UNSAFE=yes
BUILD_WRKSRC= ${WRKSRC}/port/linux
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
PLIST_FILES= bin/powder
PORTDOCS= README.TXT LICENSE.TXT CREDITS.TXT
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|bin/bash|bin/sh|' \
${WRKSRC}/rooms/buildrooms.bash \
${WRKSRC}/gfx/rebuild.sh
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
${BUILD_WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/powder ${STAGEDIR}${PREFIX}/bin/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>