mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
a9f015d155
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= keeperrl
|
|
PORTVERSION= 0.0.${ALPHA_VERSION}
|
|
PORTREVISION= 3
|
|
CATEGORIES= games
|
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
PATCHFILES= c0fc69cbee72.patch:-p1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Ambitious dungeon builder with roguelike elements
|
|
|
|
LICENSE= GPLv2 OFL11
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.txt
|
|
LICENSE_FILE_OFL11= ${WRKSRC}/data_contrib/SIL_Open_Font_License.txt
|
|
|
|
LIB_DEPENDS= libvorbis.so:audio/libvorbis \
|
|
libcurl.so:ftp/curl
|
|
|
|
USES= compiler:c++14-lang gmake localbase openal
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= miki151
|
|
GH_TAGNAME= alpha${ALPHA_VERSION}
|
|
USE_GL= gl
|
|
USE_SDL= sdl2 image2
|
|
|
|
ALPHA_VERSION= 23
|
|
NO_CONFIGURE= yes
|
|
LIBS+= -lexecinfo
|
|
LLD_UNSAFE= yes
|
|
MAKE_ARGS= DATA_DIR="${DATADIR}" GCC="${CXX}" \
|
|
LDFLAGS="${LDFLAGS}" RELEASE=true
|
|
# USE_GCC adds -Wl,-rpath=${_GCC_RUNTIME} which breaks -x c++-header
|
|
MAKE_ARGS+= PCH= PCHINC=
|
|
|
|
DESKTOP_ENTRIES="KeeperRL" "" "" "keeper" \
|
|
"Game;Simulation;" false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^CFLAGS =/ s|=|= ${CFLAGS}|' \
|
|
-e '/^LIBS =/ s|$$| ${LIBS}|' \
|
|
-e 's|bash|sh|' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} 's|bash|sh|' ${WRKSRC}/check_serial.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/keeper ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "data_contrib data_free" \
|
|
${STAGEDIR}${DATADIR} "! -name *License.txt"
|
|
|
|
.include <bsd.port.mk>
|