2014-09-01 15:25:01 +02:00
|
|
|
# Created by: Daniel J. O'Connor <darius@dons.net.au>
|
2000-01-12 06:47:13 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-11-15 21:55:29 +01:00
|
|
|
PORTNAME= quakeforge
|
2016-05-09 15:43:13 +02:00
|
|
|
PORTVERSION= 0.7.2
|
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
2017-09-10 22:55:38 +02:00
|
|
|
PORTREVISION= 5
|
2000-01-12 06:47:13 +01:00
|
|
|
CATEGORIES= games
|
2016-05-09 15:43:13 +02:00
|
|
|
MASTER_SITES= SF/quake/quake/${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2005-11-15 21:55:29 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2003-01-31 10:28:49 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2014-08-25 12:01:51 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-09-01 15:25:01 +02:00
|
|
|
COMMENT= Cleaned up copy of the GPL'ed Quake 1 source code
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2014-12-13 07:31:11 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-09-01 15:25:01 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2017-04-21 16:16:29 +02:00
|
|
|
USES= bison compiler:c11 gmake libtool localbase python:run shebangfix tar:bzip2
|
|
|
|
SHEBANG_FILES= tools/qfcc/source/qfpreqcc
|
2006-12-29 22:12:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2016-05-09 15:43:13 +02:00
|
|
|
CONFIGURE_ENV= Z_CFLAGS=" " Z_LIBS="-lz"
|
|
|
|
CONFIGURE_ARGS= --disable-alsa \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-optimize \
|
|
|
|
--disable-static \
|
|
|
|
--enable-xdg \
|
|
|
|
--with-cpp="${CPP} %d %i %o" \
|
|
|
|
--with-global-cfg=${PREFIX}/etc/quakeforge.conf \
|
|
|
|
--with-ipv6 \
|
|
|
|
--with-sharepath=${Q1DIR}
|
2017-04-21 16:16:29 +02:00
|
|
|
USE_CSTD= gnu89
|
2014-09-11 13:06:02 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USE_LDCONFIG= yes
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
SUB_FILES= pkg-message
|
2013-03-08 12:32:11 +01:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
OPTIONS_DEFINE= CLIENTS DOCS FLAC JACK OPTIMIZED_CFLAGS SDL SERVERS \
|
|
|
|
SKYBOXES VORBIS XMMS XXF86DGA XXF86VM
|
|
|
|
OPTIONS_DEFAULT= CLIENTS SERVERS
|
|
|
|
OPTIONS_SUB= yes
|
2013-03-08 12:32:11 +01:00
|
|
|
|
|
|
|
CLIENTS_DESC= Clients
|
2016-05-09 15:43:13 +02:00
|
|
|
CLIENTS_BUILD_DEPENDS= icotool:graphics/icoutils
|
|
|
|
CLIENTS_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate \
|
|
|
|
libcurl.so:ftp/curl
|
|
|
|
CLIENTS_USES= pkgconfig
|
|
|
|
CLIENTS_USE= gl=glu xorg=xext
|
|
|
|
CLIENTS_CONFIGURE_OFF= --with-clients=""
|
|
|
|
CLIENTS_VERS= INSTALLS_ICONS=yes
|
|
|
|
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
|
|
|
|
FLAC_CONFIGURE_ON= --with-libFLAC=${LOCALBASE}
|
|
|
|
FLAC_CONFIGURE_OFF= --disable-flac
|
|
|
|
FLAC_IMPLIES= CLIENTS
|
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack
|
|
|
|
JACK_CONFIGURE_OFF= --disable-jack
|
|
|
|
JACK_IMPLIES= CLIENTS
|
|
|
|
OPTIMIZED_CFLAGS_CFLAGS=\
|
|
|
|
-O3 -funroll-loops -fomit-frame-pointer -fno-common \
|
|
|
|
-fexpensive-optimizations -fstrict-aliasing -ffast-math
|
|
|
|
SDL_USE= sdl=sdl
|
|
|
|
SDL_CONFIGURE_ON= --with-sdl-prefix=${LOCALBASE}
|
|
|
|
SDL_CONFIGURE_OFF= --disable-sdl
|
|
|
|
SDL_IMPLIES= CLIENTS
|
2013-03-08 12:32:11 +01:00
|
|
|
SERVERS_DESC= Dedicated servers
|
2016-05-09 15:43:13 +02:00
|
|
|
SERVERS_USES= ncurses
|
|
|
|
SERVERS_CONFIGURE_OFF= --with-servers=""
|
2013-03-08 12:32:11 +01:00
|
|
|
SKYBOXES_DESC= Install skyboxes pak
|
2016-05-09 15:43:13 +02:00
|
|
|
SKYBOXES_MASTER_SITES= http://www.quakeforge.net/files/:qf
|
|
|
|
SKYBOXES_DISTFILES= skyboxes.pak:qf
|
|
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
|
|
|
|
VORBIS_CONFIGURE_ON= --with-ogg=${LOCALBASE} --with-vorbis=${LOCALBASE}
|
|
|
|
VORBIS_CONFIGURE_OFF= --disable-vorbis
|
|
|
|
VORBIS_IMPLIES= CLIENTS
|
|
|
|
XMMS_DESC= Sound support via XMMS
|
|
|
|
XMMS_LIB_DEPENDS= libxmms.so:multimedia/xmms
|
|
|
|
XMMS_CONFIGURE_ON= --enable-xmms --with-xmms-prefix=${LOCALBASE}
|
|
|
|
XMMS_IMPLIES= CLIENTS
|
|
|
|
XXF86DGA_DESC= XFree86 DGA Extension support
|
|
|
|
XXF86DGA_USE= xorg=xxf86dga
|
|
|
|
XXF86DGA_CONFIGURE_OFF= --disable-dga
|
|
|
|
XXF86DGA_IMPLIES= CLIENTS
|
|
|
|
XXF86VM_DESC= XFree86 Vidmode Extension support
|
|
|
|
XXF86VM_USE= xorg=xxf86vm
|
|
|
|
XXF86VM_CONFIGURE_OFF= --disable-vidmode
|
|
|
|
XXF86VM_IMPLIES= CLIENTS
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^Z_LIBS=""|| ; \
|
|
|
|
/if test/s|==|=| ; \
|
|
|
|
/for qf_t in/s|,qwaq,|,|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^pkgdatadir/s|@libdir@|@prefix@/libdata|' \
|
|
|
|
${WRKSRC}/pkg-config/Makefile.in
|
|
|
|
|
|
|
|
post-build-CLIENTS-on:
|
|
|
|
.for i in 16 32
|
|
|
|
@${MKDIR} ${WRKDIR}/icons/hicolor/${i}x${i}/apps
|
|
|
|
icotool -x -o ${WRKDIR}/icons/hicolor/${i}x${i}/apps/quake.png \
|
|
|
|
-w ${i} -b 8 ${WRKSRC}/doc/qf.ico
|
|
|
|
.endfor
|
2000-05-18 17:14:01 +02:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/quakeforge.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2005-05-20 16:47:26 +02:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
post-install-CLIENTS-on:
|
|
|
|
@(cd ${WRKDIR} && ${COPYTREE_SHARE} icons \
|
|
|
|
${STAGEDIR}${PREFIX}/share)
|
2000-05-18 17:14:01 +02:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
post-install-DOCS-on:
|
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "config gib" \
|
|
|
|
${STAGEDIR}${DOCSDIR})
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
post-install-SKYBOXES-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${Q1DIR}/QF
|
2014-09-01 15:25:01 +02:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/skyboxes.pak \
|
|
|
|
${STAGEDIR}${DATADIR}/QF
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2016-05-09 15:43:13 +02:00
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
2013-03-08 12:32:11 +01:00
|
|
|
.include <bsd.port.mk>
|