60945f0277
the 32 ports that still use it. Bump PORTREVISION on their dependent ports except the ones that depend on these: audio/libogg audio/libvorbis devel/pcre ftp/curl graphics/jpeg graphics/libart_lgpl graphics/tiff textproc/expat2 textproc/libxslt In these cases the same trick as in the recent gettext update is used. The ports install a symlink with the old library version. When enough of their dependent ports have had regular updates the remaining ones can get a PORTREVISION bump and the links can be removed. Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes over 2200 packages to depend on devel/pcre while less than 200 actually link with it. The glib20 package still depends on devel/pcre so this should not make a difference for ports with USE_GNOME=glib20. Also, libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so USE_GNOME=glib20 should not propagate it. PR: 195724 Exp-run by: antoine Approved by: portmgr (antoine)
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= arx-libertatis
|
|
PORTVERSION= 1.1.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
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 # or later
|
|
LICENSE_FILE= ${WRKSRC}/ARX_PUBLIC_LICENSE.txt
|
|
|
|
LIB_DEPENDS= libGLEW.so:${PORTSDIR}/graphics/glew \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/foreach.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
USES= cmake openal tar:xz
|
|
USE_SDL= sdl
|
|
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 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 -DUSE_QT5=OFF
|
|
PLIST_SUB+= CRASHREPORTER=""
|
|
.else
|
|
CMAKE_ARGS+= -DBUILD_CRASHREPORTER=OFF
|
|
PLIST_SUB+= CRASHREPORTER="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1000705 && ${OSVERSION} < 1001503) || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100046))
|
|
# 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
|
|
@${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}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|