1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/gzdoom/Makefile
Kyle Evans d21babfc82 games/gzdoom: Update to 3.3.2
Highlights since 3.3.0:
- Better handling of defaults with some ZScript/DECORATE functions
- Many bug fixes
- Fixed detection of .ipk7 custom IWADs
- Restored vanilla behavior of lightning for original Hexen
- Added loading of ZSDF lumps by full paths
- Exported P_ActivateLine() to ZScript along with constants for activation
  type
- Increased size of the savegame comment area.
- Disabled the survey* code

* This was an opt-in hardware survey that ran for effectively the month of
April. Discussion of the results are available at:
https://forum.zdoom.org/viewtopic.php?f=49&t=60156

While here, disable stripping of binaries on 10.4/i386. strip(1) there
claims it can't strip due to an unknown file format. 11.x and later use
elftoolchain strip(1) and have no issues. Due to the replacement as of 11.x
and that there will be no more 10.x releases, no effort will be expended in
tracking down why strip(1) fails here for now.

Approved by:	bapt (ports), me (maintainer)
MFH:		2018Q2
2018-05-09 15:28:49 +00:00

58 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= gzdoom
PORTVERSION= 3.3.2
DISTVERSIONPREFIX= g
CATEGORIES= games
MAINTAINER= kevans@FreeBSD.org
COMMENT= GL-enhanced source port for Doom-engine games
LICENSE= BSD3CLAUSE GPLv3 LGPL3
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/docs/licenses/bsd.txt
LICENSE_FILE_GPLv3= ${WRKSRC}/docs/licenses/gpl.txt
LICENSE_FILE_LGPL3= ${WRKSRC}/docs/licenses/lgpl.txt
BUILD_DEPENDS= zip:archivers/zip
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libsndfile.so:audio/libsndfile \
libfluidsynth.so:audio/fluidsynth \
libgme.so:audio/libgme
DATADIR= ${DMDIR}/${PORTNAME}
USES= cmake:outsource gettext jpeg openal pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= coelckers
USE_GNOME= atk cairo gdkpixbuf2 gtk20 pango
USE_SDL= sdl2
USE_GL= gl glu
CXXFLAGS+= -DSHARE_DIR=\\\"${DATADIR}\\\"
LDFLAGS+= -Wl,--as-needed
DESKTOP_ENTRIES= "GZDoom" "" "${PORTNAME}" "${PORTNAME}" "Game;Shooter;" ""
PLIST_FILES= bin/${PORTNAME} \
${DATADIR}/${PORTNAME}.pk3 \
share/pixmaps/${PORTNAME}.xpm
.include "${.CURDIR}/../doom-data/Makefile.include"
.include <bsd.port.pre.mk>
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} < 1100000 && ${MACHINE_ARCH} == "i386"
STRIP= # 10.4/i386 strip(1) is incapable of stripping the gzdoom binary
.endif
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${CONFIGURE_WRKSRC}/${PORTNAME}.pk3 ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.post.mk>