mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
29a23b8db4
After FreeBSD 12.0 EOL we no longer have to worry about LLD 6 and can drop LLD_UNSAFE from openal-soft ports. LLD can link them fine now but some ports needs a little help on i386 (-Wl,-znotext). PR: 226980 Reviewed by: jbeich (earlier version) Differential Revision: https://reviews.freebsd.org/D23030
61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dhewm3
|
|
PORTVERSION= 1.5.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Doom 3 GPL source port
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/../COPYING.txt
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libogg.so:audio/libogg \
|
|
libvorbis.so:audio/libvorbis
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= dhewm
|
|
|
|
USES= cmake compiler:c++11-lang jpeg openal:al sdl
|
|
USE_SDL= sdl2
|
|
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
WRKSRC_SUBDIR= neo
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTDOCS= *
|
|
|
|
DESKTOP_ENTRIES="dhewm 3" \
|
|
"" \
|
|
"doom3" \
|
|
"${PORTNAME}" \
|
|
"Game;ActionGame;" \
|
|
""
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DEDICATED DOCS
|
|
OPTIONS_DEFAULT=OPTIMIZED_CFLAGS DEDICATED
|
|
OPTIONS_SUB= yes
|
|
|
|
DEDICATED_DESC= Build dedicated server
|
|
DEDICATED_CMAKE_ON= -DDEDICATED=ON
|
|
|
|
post-patch-OPTIMIZED_CFLAGS-off:
|
|
@${REINPLACE_CMD} -e 's|-O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer||' ${WRKSRC}/CMakeLists.txt
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/base
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/d3xp
|
|
${INSTALL_DATA} ${WRKSRC}/sys/linux/setup/image/doom3.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|