1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/games/cube/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
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)
2014-12-08 16:48:38 +00:00

69 lines
1.7 KiB
Makefile

# Created by: Arjan van Leeuwen <avleeuwen@piwebs.com>
# $FreeBSD$
PORTNAME= cube
DISTVERSION= 2005_08_29
PORTREVISION= 14
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
DISTFILES= ${CUBE_DATA} ${CUBE_SRC}
MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL 3D FPS (first person shooter) game
BUILD_DEPENDS= ${LOCALBASE}/lib/libenet.a:${PORTSDIR}/net/enet
USES= dos2unix gmake
ALL_TARGET= #
USE_XORG= x11
CFLAGS+= -fsigned-char
WRKSRC= ${WRKDIR}/${PORTNAME}_source/src
SUB_FILES= cube_client cube_server
CUBE_DATA= ${PORTNAME}_${DISTVERSION}_unix.tar.gz
CUBE_SRC= ${PORTNAME}_${DISTVERSION}_src.zip
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
OPTIONS_MULTI= FLAVOR
OPTIONS_MULTI_FLAVOR= CLIENT SERVER
OPTIONS_DEFAULT= CLIENT SERVER
FLAVOR_DESC= Clients and servers
CLIENT_DESC= Build client
SERVER_DESC= Build dedicated server
OPTIONS_SUB= yes
OPTIMIZED_CFLAGS_CFLAGS= -O3 -fomit-frame-pointer
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
USE_GL= glu
USE_SDL= image mixer sdl
ALL_TARGET+= client
CUBE_BIN+= client
LDFLAGS+= -lX11
.endif
.if ${PORT_OPTIONS:MSERVER}
ALL_TARGET+= server
CUBE_BIN+= server
.endif
do-install:
.for f in ${CUBE_BIN}
${INSTALL_SCRIPT} ${WRKDIR}/cube_${f} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cube_${f} ${STAGEDIR}${PREFIX}/libexec
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKDIR}/cube && ${COPYTREE_SHARE} "data packages" ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKDIR}/cube/autoexec.cfg ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/cube/readme.html ${STAGEDIR}${DOCSDIR}
(cd ${WRKDIR}/cube/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>