1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/games/armagetron/Makefile

62 lines
1.8 KiB
Makefile
Raw Normal View History

# ex:ts=8
# New ports collection makefile for: armagetron
# Date created: 12 November 2005
# Whom: Maxime Henrion <mux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= armagetron
PORTVERSION= 0.2.8.2.1
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}ad/${PORTNAME}ad-src/${PORTVERSION}
DISTNAME= armagetronad-${PORTVERSION}
EXTRACT_SUFX= .src.tar.gz
MAINTAINER= ianthetechie@gmail.com
COMMENT= A multiplayer networked Tron clone in 3D
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-etc --disable-initscripts
CXXFLAGS+= ${CFLAGS} -I${LOCALBASE}/include
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
2010-02-05 11:46:55 +00:00
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
png.6:${PORTSDIR}/graphics/png \
xml2.5:${PORTSDIR}/textproc/libxml2
OPTIONS= MUSIC "Compile in support for background music" on \
ARMA_SERVER_ONLY "Build dedicated server only" off
.include <bsd.port.pre.mk>
.if defined(WITH_ARMA_SERVER_ONLY)
CONFIGURE_ARGS+= --disable-glout
PLIST_SUB+= CLIENT="@comment " SERVER="" SUFFIX="-dedicated"
PKGNAMESUFFX= -dedicated
USE_RC_SUBR= armagetronad_dedicated
.else
USE_GL= gl
USE_SDL= sdl image
CXXFLAGS+= `${SDL_CONFIG} --cflags`
PLIST_SUB+= CLIENT="" SERVER="@comment " SUFFIX=""
.if !defined(WITHOUT_MUSIC)
USE_SDL+= mixer
CONFIGURE_ARGS+=--enable-music
.endif
.endif
# This script isn't needed and only causes install problems
CONFIGURE_ARGS+=--disable-uninstall
post-patch:
@${REINPLACE_CMD} -e 's|sdl11-config|${SDL_CONFIG}|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC}/batch -type f -exec ${REINPLACE_CMD} -e 's|^#!/bin/bash$$|#!/bin/sh|g' {} \+
@${REINPLACE_CMD} -e 's|^INSTALL=.*$$|INSTALL=${DATADIR}|g' \
${WRKSRC}/batch/*.in
@${FIND} ${WRKSRC}/batch -name '*.bak' -o -name '*.orig' -delete
.include <bsd.port.post.mk>