1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/dustrac/Makefile
Max Brazhnikov 6ed528f89a Add new port games/dustrac:
Dust Racing 2D (Dustrac) is a tile-based, cross-platform 2D racing
game written in Qt.

WWW: http://dustrac.sourceforge.net/
2014-04-18 09:38:03 +00:00

47 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= dustrac
PORTVERSION= 1.7.2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/src
MAINTAINER= makc@FreeBSD.org
COMMENT= 2D top-view racing game
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
USES= compiler:c++11-lib cmake openal pkgconfig zip
USE_GL= glu
_USE_QT4= corelib opengl xml linguist_build \
moc_build qmake_build rcc_build uic_build
_USE_QT5= core opengl xml widgets \
buildtools_build linguisttools_build qmake_build
CMAKE_ARGS= -DReleaseBuild=on \
-DDATA_PATH=${DATADIR} \
-DDOC_PATH=${DOCSDIR}
LDFLAGS= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS DEBUG
OPTIONS_SINGLE= TOOLKIT
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
OPTIONS_DEFAULT= QT5
TOOLKIT_DESC= Qt toolkit
DEBUG_CMAKE_ON= -DDebugBuild=on
QT4_USE= ${_USE_QT4:S/^/QT4=/}
QT5_USE= ${_USE_QT5:S/^/QT5=/}
QT5_CMAKE_ON= -DUseQt5=on
QT5_CMAKE_OFF= -DUseQt5=off
STRIP_FILES= bin/dustrac-game \
bin/dustrac-editor
post-patch:
${REINPLACE_CMD} -e '/add_subdirectory(UnitTests)/d' \
${WRKSRC}/src/game/MiniCore/CMakeLists.txt
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
.include <bsd.port.mk>