freebsd-ports/games/widelands/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Bartosz Fabianowski <freebsd@chillt.de>
# $FreeBSD$
PORTNAME= widelands
2014-03-29 00:36:14 +01:00
DISTVERSION= build18
PORTREVISION= 4
CATEGORIES= games
2014-03-29 00:36:14 +01:00
MASTER_SITES= https://launchpadlibrarian.net/167260749/ \
2012-05-12 17:26:27 +02:00
http://mirror.amdmi3.ru/distfiles/
2011-05-25 06:56:48 +02:00
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Realtime strategy game inspired by Settlers II
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
libGLEW.so:${PORTSDIR}/graphics/glew \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
2011-05-25 06:56:48 +02:00
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
2014-09-29 16:38:29 +02:00
USES= cmake:outsource compiler:c++11-lib gettext lua:51 tar:bzip2 python:build
2011-05-25 06:56:48 +02:00
CMAKE_ARGS= -DWL_INSTALL_PREFIX="${PREFIX}" \
-DWL_INSTALL_DATADIR="share/widelands" \
-DWL_INSTALL_BINDIR="bin" \
2014-03-29 00:36:14 +01:00
-DWL_VERSION="${DISTVERSION}" \
-DWL_COMPILERFLAG_OPTIMIZATIONS=""
USE_SDL= sdl mixer image net ttf gfx
PLIST_FILES= bin/widelands
PORTDATA= *
DESKTOP_ENTRIES="Widelands" \
2014-03-29 00:36:14 +01:00
"" \
2011-05-25 06:56:48 +02:00
"${DATADIR}/pics/wl-ico-64.png" \
"widelands" \
"Game;StrategyGame;" \
2014-03-29 00:36:14 +01:00
""
2014-04-03 18:24:17 +02:00
.include <bsd.port.options.mk>
.if ${OSVERSION} < 900000
IGNORE= doesn't build on 8.x
.endif
post-patch:
2011-05-25 06:56:48 +02:00
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/cmake/Modules/*.cmake
.include <bsd.port.mk>