2005-11-13 16:23:39 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: armagetron
|
|
|
|
# Date created: 12 November 2005
|
|
|
|
# Whom: Maxime Henrion <mux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= armagetron
|
2008-06-29 15:21:08 +00:00
|
|
|
PORTVERSION= 0.2.8.2.1
|
2010-07-04 14:38:22 +00:00
|
|
|
PORTREVISION= 5
|
2005-11-13 16:23:39 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}ad/${PORTNAME}ad-src/${PORTVERSION}
|
2005-11-13 16:23:39 +00:00
|
|
|
DISTNAME= armagetronad-${PORTVERSION}
|
2008-06-29 15:21:08 +00:00
|
|
|
EXTRACT_SUFX= .src.tar.gz
|
2005-11-13 16:23:39 +00:00
|
|
|
|
2008-06-29 15:21:08 +00:00
|
|
|
MAINTAINER= ianthetechie@gmail.com
|
2005-11-13 16:23:39 +00:00
|
|
|
COMMENT= A multiplayer networked Tron clone in 3D
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2010-07-04 14:38:22 +00:00
|
|
|
CONFIGURE_ARGS= --disable-etc --disable-initscripts
|
|
|
|
CXXFLAGS+= ${CFLAGS} -I${LOCALBASE}/include
|
2005-11-13 16:23:39 +00:00
|
|
|
|
2008-06-29 15:21:08 +00:00
|
|
|
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
2010-02-05 11:46:55 +00:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2010-03-28 06:47:48 +00:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2008-06-29 15:21:08 +00:00
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2005-11-13 16:23:39 +00:00
|
|
|
|
2010-07-04 14:38:22 +00:00
|
|
|
OPTIONS= MUSIC "Compile in support for background music" on \
|
|
|
|
ARMA_SERVER_ONLY "Build dedicated server only" off
|
2005-11-13 16:23:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-07-04 14:38:22 +00:00
|
|
|
.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=""
|
2005-11-13 16:23:39 +00:00
|
|
|
.if !defined(WITHOUT_MUSIC)
|
|
|
|
USE_SDL+= mixer
|
|
|
|
CONFIGURE_ARGS+=--enable-music
|
|
|
|
.endif
|
2010-07-04 14:38:22 +00:00
|
|
|
.endif
|
2005-11-13 16:23:39 +00:00
|
|
|
|
2008-06-29 15:21:08 +00:00
|
|
|
# This script isn't needed and only causes install problems
|
2010-07-04 14:38:22 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-uninstall
|
2008-06-29 15:21:08 +00:00
|
|
|
|
2005-11-13 16:23:39 +00:00
|
|
|
post-patch:
|
2008-07-08 02:38:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|sdl11-config|${SDL_CONFIG}|g' ${WRKSRC}/configure
|
2008-06-29 15:21:08 +00:00
|
|
|
@${FIND} ${WRKSRC}/batch -type f -exec ${REINPLACE_CMD} -e 's|^#!/bin/bash$$|#!/bin/sh|g' {} \+
|
2005-11-13 16:23:39 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^INSTALL=.*$$|INSTALL=${DATADIR}|g' \
|
|
|
|
${WRKSRC}/batch/*.in
|
2008-06-29 15:21:08 +00:00
|
|
|
@${FIND} ${WRKSRC}/batch -name '*.bak' -o -name '*.orig' -delete
|
2005-11-13 16:23:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|