freebsd-ports/games/hedgewars/Makefile
Max Brazhnikov ffd97a0193 - convert USE_CMAKE to USES
- while here clean up some ports from CMAKE_VERBOSE, which is intended
  for users

Approved by:	portmgr (miwi)
2013-03-22 20:06:14 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: hedgewars
# Date created: 24 May 2008
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= hedgewars
PORTVERSION= 0.9.17
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://download.gna.org/hedgewars/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free Worms-like turn based strategy game
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= depends on fpc which is only available for i386 and amd64
USE_BZIP2= yes
USES= cmake
USE_SDL= sdl mixer image ttf net
USE_FPC= opengl
USE_LUA= 5.1+
USE_QT4= corelib gui moc_build network \
qmake_build rcc_build svg xml \
uic_build linguist_build
MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/hedgewars bin/hwengine share/applications/hedgewars.desktop
PLIST_DIRSTRY= share/applications
PORTDATA= *
DESKTOP_ENTRIES="Hedgewars" \
"Worms-like turn based strategy game" \
"${DATADIR}/Data/Forts/FlowerhogL.png" \
"hedgewars" \
"Game;StrategyGame;" \
false
post-patch:
@${ECHO} "include_directories(${LOCALBASE}/include)" >> \
${WRKSRC}/QTfrontend/CMakeLists.txt
.if defined(NOPORTDATA)
@${REINPLACE_CMD} -e '/add_subdirectory.*Data/I d' \
${WRKSRC}/share/hedgewars/CMakeLists.txt
.endif
.include <bsd.port.mk>