freebsd-ports/games/doomsday/Makefile
Danilo Egea Gondolfo fa353db017 - Update to 2.0.3
2018-01-06 17:12:25 +00:00

41 lines
1.1 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= doomsday
PORTVERSION= 2.0.3
CATEGORIES= games
MASTER_SITES= SF/deng/Doomsday%20Engine/${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Enhanced Doom, Heretic, and Hexen source port
LICENSE= GPLv2
LIB_DEPENDS= libcurl.so:ftp/curl \
libassimp.so:multimedia/assimp \
libfluidsynth.so:audio/fluidsynth
RUN_DEPENDS= timidity:audio/timidity
USES= cmake:outsource compiler:c++11-lib ninja openal pkgconfig python:build
USE_GL= gl glu
USE_LDCONFIG= yes
USE_SDL= sdl2 mixer2
USE_XORG= x11 sm ice xext xrandr xxf86vm
USE_QT5= buildtools_build core gui network widgets qmake opengl x11extras
LDFLAGS+= -L${LOCALBASE}/lib
CXXFLAGS+= -I${LOCALBASE}/include
CMAKE_ARGS+= -DDENG_ENABLE_COTIRE=OFF -DDENG_ASSIMP_EMBEDDED=OFF
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}
PORTSCOUT= limit:^\d+\.\d+\.\d+$$
post-patch:
# Removing (three) non-ascii bytes from the beginning of the file
@${REINPLACE_CMD} '1s,^...,,' \
${WRKSRC}/apps/client/src/client/cl_sound.cpp
@${REINPLACE_CMD} -E 's|(DENG_DISTRIB_DIR /usr)|\1/local|' \
${WRKSRC}/cmake/Config.cmake
.include <bsd.port.mk>