5298cf942b
PR: 216457 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Approved by: maintainer timeout
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Bartosz Fabianowski <freebsd@chillt.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= widelands
|
|
DISTVERSION= build19
|
|
CATEGORIES= games
|
|
MASTER_SITES= https://launchpad.net/widelands/${DISTVERSION}/${DISTVERSION}/+download/ \
|
|
http://mirror.amdmi3.ru/distfiles/
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Realtime strategy game inspired by Settlers II
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs
|
|
|
|
USES= cmake:outsource compiler:c++11-lib execinfo gettext \
|
|
lua:52 tar:bzip2 python:build
|
|
CMAKE_ARGS= -DWL_INSTALL_BASEDIR="${PREFIX}" \
|
|
-DWL_INSTALL_DATADIR="${DATADIR}" \
|
|
-DWL_INSTALL_DOCDIR="${DOCSDIR}" \
|
|
-DWL_INSTALL_BINDIR="bin" \
|
|
-DWL_VERSION="${DISTVERSION}" \
|
|
-DWL_OPTIMIZE_FLAGS=""
|
|
USE_GL= glew
|
|
USE_SDL= sdl2 mixer2 image2 net2 ttf2
|
|
|
|
PORTDATA= *
|
|
PORTDOCS= *
|
|
|
|
DESKTOP_ENTRIES="Widelands" \
|
|
"" \
|
|
"${DATADIR}/pics/wl-ico-64.png" \
|
|
"widelands" \
|
|
"Game;StrategyGame;" \
|
|
""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/cmake/Modules/*.cmake
|
|
|
|
.include <bsd.port.mk>
|