aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-28 21:26:40 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-28 21:26:40 +0800
commit5311614ca40995ed04caf947648dfd196a23fc20 (patch)
treec0c57a3074210a2c259d6aab4b337b173ce705a2
parent8194ff2bd489d320b0bb5193b592933223de9092 (diff)
downloadfreebsd-ports-gnome-5311614ca40995ed04caf947648dfd196a23fc20.tar.gz
freebsd-ports-gnome-5311614ca40995ed04caf947648dfd196a23fc20.tar.zst
freebsd-ports-gnome-5311614ca40995ed04caf947648dfd196a23fc20.zip
- Update to 1.1.2
- Clarify LICENSE - Add LICENSE_FILE - Optionlize DOCS installation
-rw-r--r--games/arx-libertatis/Makefile25
-rw-r--r--games/arx-libertatis/distinfo4
-rw-r--r--games/arx-libertatis/files/patch-CMakeLists.txt16
-rw-r--r--games/arx-libertatis/pkg-plist1
4 files changed, 32 insertions, 14 deletions
diff --git a/games/arx-libertatis/Makefile b/games/arx-libertatis/Makefile
index 91073e1d2c29..e8393f2b616e 100644
--- a/games/arx-libertatis/Makefile
+++ b/games/arx-libertatis/Makefile
@@ -2,51 +2,52 @@
# $FreeBSD$
PORTNAME= arx-libertatis
-PORTVERSION= 1.0.3
-PORTREVISION= 7
+PORTVERSION= 1.1.2
CATEGORIES= games
-MASTER_SITES= http://cloud.github.com/downloads/arx/ArxLibertatis/ \
- http://mirror.amdmi3.ru/distfiles/
+MASTER_SITES= http://downloads.sourceforge.net/arx/ \
+ http://arx-libertatis.org/files/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Cross-platform port of Arx Fatalis
-LICENSE= GPLv3
+LICENSE= GPLv3 # or later
+LICENSE_FILE= ${WRKSRC}/ARX_PUBLIC_LICENSE.txt
LIB_DEPENDS= libIL.so:${PORTSDIR}/graphics/devil \
libGLEW.so:${PORTSDIR}/graphics/glew \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libboost_program_options.so:${PORTSDIR}/devel/boost-libs
-USES= tar:xz cmake openal
+USES= cmake openal tar:xz
USE_SDL= sdl
-USE_GL= gl glu
-CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx
+USE_GL= gl
+CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR="man" -DDATA_DIR=arx -DSTRICT_USE=ON
SUB_FILES= pkg-message
PORTDOCS= AUTHORS CHANGELOG README.md
-OPTIONS_DEFINE= CRASHREPORTER
+OPTIONS_DEFINE= CRASHREPORTER DOCS
CRASHREPORTER_DESC= Build crash reporter (requires Qt4)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCRASHREPORTER}
USE_QT4= corelib gui network rcc_build moc_build uic_build qmake_build
-CMAKE_ARGS+= -DBUILD_CRASHREPORTER=ON
+CMAKE_ARGS+= -DBUILD_CRASHREPORTER=ON -DUSE_QT5=OFF
PLIST_SUB+= CRASHREPORTER=""
.else
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=OFF
PLIST_SUB+= CRASHREPORTER="@comment "
.endif
+post-patch:
.if ${OSVERSION} >= 1000705
# Workaround for clang 3.4 bug: it crashes when debug info is enabled
# See http://llvm.org/bugs/show_bug.cgi?id=19031, http://llvm.org/bugs/show_bug.cgi?id=20893
-post-patch:
- @${REINPLACE_CMD} -e '/add_cxxflag.*-g2/ d' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e '/add_cxxflag.*-g2/ d' ${WRKSRC}/cmake/BuildType.cmake
.endif
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeLists.txt
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/games/arx-libertatis/distinfo b/games/arx-libertatis/distinfo
index c7060d6f7f54..a5da95812c36 100644
--- a/games/arx-libertatis/distinfo
+++ b/games/arx-libertatis/distinfo
@@ -1,2 +1,2 @@
-SHA256 (arx-libertatis-1.0.3.tar.xz) = 5719e1602051f6a6dc13ac0366ff03804f914ffbd855e7e06fdeb0d065fb6d32
-SIZE (arx-libertatis-1.0.3.tar.xz) = 912288
+SHA256 (arx-libertatis-1.1.2.tar.xz) = 82adb440a9c86673e74b84abd480cae968e1296d625b6d40c69ca35b35ed4e42
+SIZE (arx-libertatis-1.1.2.tar.xz) = 970608
diff --git a/games/arx-libertatis/files/patch-CMakeLists.txt b/games/arx-libertatis/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..93096fe5d4d4
--- /dev/null
+++ b/games/arx-libertatis/files/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+--- CMakeLists.txt.orig 2014-10-08 15:46:26.000000000 +0400
++++ CMakeLists.txt 2014-10-08 15:48:25.000000000 +0400
+@@ -132,11 +132,11 @@
+ set(USER_DIR_PREFIXES "~/Library/Application Support" CACHE STRING "User dir paths")
+ else()
+ set(DATA_DIR
+- "games/arx:arx"
++ "arx"
+ CACHE STRING "Data dir names"
+ )
+ set(DATA_DIR_PREFIXES
+- "\${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}:/opt"
++ "\${XDG_DATA_DIRS:-/usr/local/share/}"
+ CACHE STRING "Data dir paths"
+ )
+ set(USER_DIR
diff --git a/games/arx-libertatis/pkg-plist b/games/arx-libertatis/pkg-plist
index 0a7e350363d8..68af3023add8 100644
--- a/games/arx-libertatis/pkg-plist
+++ b/games/arx-libertatis/pkg-plist
@@ -1,4 +1,5 @@
bin/arx
+bin/arx-install-data
bin/arxsavetool
bin/arxunpak
%%CRASHREPORTER%%libexec/arxcrashreporter