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
|
2004-08-20 21:50:54 +02:00
|
|
|
PORTVERSION= 0.5.5
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 16
|
2000-01-12 06:47:13 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/quake/quake/${PORTVERSION}:sf
|
2005-11-15 21:55:29 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf
|
|
|
|
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
|
|
|
|
2014-12-25 20:04:25 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2006-12-29 22:12:42 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-09-11 13:06:02 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USES= bison compiler:nestedfct gmake libtool tar:bzip2
|
|
|
|
USE_LDCONFIG= yes
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2004-08-20 21:50:54 +02:00
|
|
|
CONFIGURE_ARGS+=--with-global-cfg=${PREFIX}/etc/quakeforge.conf \
|
2005-11-15 21:55:29 +01:00
|
|
|
--with-sharepath=${DATADIR} \
|
2014-09-11 13:06:02 +02:00
|
|
|
--disable-debug \
|
2003-08-08 15:23:08 +02:00
|
|
|
--disable-optimize
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
OPTIONS_DEFINE= CLIENTS OPTIMIZED_CFLAGS SDL SERVERS SKYBOXES VORBIS \
|
|
|
|
XMMS DOCS
|
|
|
|
|
2014-09-01 15:25:01 +02:00
|
|
|
OPTIONS_DEFAULT= CLIENTS SERVERS DOCS
|
2013-03-08 12:32:11 +01:00
|
|
|
|
|
|
|
CLIENTS_DESC= Clients
|
|
|
|
SDL_DESC= SDL client
|
|
|
|
SERVERS_DESC= Dedicated servers
|
|
|
|
SKYBOXES_DESC= Install skyboxes pak
|
|
|
|
VORBIS_DESC= Ogg Vorbis support in clients
|
|
|
|
XMMS_DESC= XMMS support in clients
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2006-04-13 00:15:10 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
DATADIR= ${Q1DIR}
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2005-11-15 21:55:29 +01:00
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
2013-03-08 12:32:11 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2003-01-31 10:28:49 +01:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MCLIENTS}
|
2006-04-13 00:15:10 +02:00
|
|
|
USE_GL= yes
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_XORG= x11 xt
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= CLIENTS=""
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2005-11-15 21:55:29 +01:00
|
|
|
USE_SDL= sdl
|
|
|
|
CONFIGURE_ARGS+=--with-sdl=${LOCALBASE}
|
|
|
|
PLIST_SUB+= SDL=""
|
2003-01-31 10:28:49 +01:00
|
|
|
.else
|
2006-12-29 22:32:27 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-sdl
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= SDL="@comment "
|
2003-01-31 10:28:49 +01:00
|
|
|
.endif
|
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MVORBIS}
|
2014-07-16 10:05:11 +02:00
|
|
|
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2003-01-31 10:28:49 +01:00
|
|
|
CONFIGURE_ARGS+=--with-ogg=${LOCALBASE} --with-vorbis=${LOCALBASE}
|
2004-08-20 21:50:54 +02:00
|
|
|
PLIST_SUB+= VORBIS=""
|
2003-01-31 10:28:49 +01:00
|
|
|
.else
|
2006-12-29 22:32:27 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-ogg --disable-vorbis
|
2004-08-20 21:50:54 +02:00
|
|
|
PLIST_SUB+= VORBIS="@comment "
|
2003-01-31 10:28:49 +01:00
|
|
|
.endif
|
2000-05-18 17:14:01 +02:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MXMMS}
|
2014-07-16 10:05:11 +02:00
|
|
|
LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS+=--with-xmms-prefix=${LOCALBASE}
|
2004-08-20 21:50:54 +02:00
|
|
|
PLIST_SUB+= XMMS=""
|
2003-01-31 10:28:49 +01:00
|
|
|
.else
|
2006-12-29 22:32:27 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-xmms
|
2004-08-20 21:50:54 +02:00
|
|
|
PLIST_SUB+= XMMS="@comment "
|
2003-01-31 10:28:49 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.else
|
2006-12-29 22:32:27 +01:00
|
|
|
CONFIGURE_ARGS+=--with-clients=""
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= CLIENTS="@comment "
|
2013-03-08 12:32:11 +01:00
|
|
|
.endif
|
2000-05-18 17:14:01 +02:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2005-11-15 21:55:29 +01:00
|
|
|
CFLAGS+= -O3 -funroll-loops -fomit-frame-pointer -fno-common \
|
2014-09-01 15:25:01 +02:00
|
|
|
-fexpensive-optimizations -fstrict-aliasing -ffast-math
|
2005-05-20 16:47:26 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MSERVERS}
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= SERVERS=""
|
2003-01-31 10:28:49 +01:00
|
|
|
.else
|
2006-12-29 22:32:27 +01:00
|
|
|
CONFIGURE_ARGS+=--with-servers=""
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= SERVERS="@comment "
|
2000-05-18 17:14:01 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MSKYBOXES}
|
2005-11-15 21:55:29 +01:00
|
|
|
MASTER_SITES+= http://www.quakeforge.net/files/:qf
|
|
|
|
DISTFILES+= skyboxes.pak:qf
|
|
|
|
PLIST_SUB+= SKYBOXES=""
|
2003-01-31 10:28:49 +01:00
|
|
|
.else
|
2005-11-15 21:55:29 +01:00
|
|
|
PLIST_SUB+= SKYBOXES="@comment "
|
2003-01-31 10:28:49 +01:00
|
|
|
.endif
|
|
|
|
|
2014-09-01 15:25:01 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,\*gzfile,gzfile,' ${WRKSRC}/libs/util/quakeio.c
|
|
|
|
@${REINPLACE_CMD} -e 's,-no-undefined,& -L${LOCALBASE}/lib,' \
|
|
|
|
${WRKSRC}/libs/image/Makefile.in
|
|
|
|
|
2005-11-15 21:55:29 +01:00
|
|
|
post-install:
|
2013-03-08 12:32:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MSKYBOXES}
|
2014-09-01 15:25:01 +02:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/skyboxes.pak \
|
|
|
|
${STAGEDIR}${DATADIR}/QF
|
2000-05-18 11:27:37 +02:00
|
|
|
.endif
|
2014-09-01 15:25:01 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for f in *.txt *.q1 *.q2 *.ico *.gif *.fig *.h CodingStyle
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.for d in config data ideas
|
|
|
|
${CP} -a ${WRKSRC}/doc/${d} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
2000-01-12 06:47:13 +01:00
|
|
|
|
2013-03-08 12:32:11 +01:00
|
|
|
.include <bsd.port.mk>
|