2005-07-22 23:38:08 +00:00
|
|
|
# New ports collection makefile for: bomns
|
|
|
|
# Date created: 22 Jul 2005
|
|
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bomns
|
|
|
|
PORTVERSION= 0.99.1
|
2006-09-20 11:21:59 +00:00
|
|
|
PORTREVISION= 2
|
2005-07-22 23:38:08 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= greenridge
|
|
|
|
|
2006-04-09 13:08:16 +00:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2005-07-22 23:38:08 +00:00
|
|
|
COMMENT= The best old-school deathmatch game EVER (only for two players)
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_SDL= mixer sdl
|
|
|
|
WANT_GNOME= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags`" \
|
|
|
|
LDFLAGS="`${SDL_CONFIG} --libs`"
|
|
|
|
CONFIGURE_ARGS= --program-transform-name=
|
|
|
|
|
|
|
|
OPTIONS= EDITOR "Enable building of the map editor" on \
|
|
|
|
LAUNCHER "Enable building of the GTK2 launcher" on \
|
|
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-24 21:01:54 +00:00
|
|
|
.if !defined(WITHOUT_EDITOR)
|
2005-07-22 23:38:08 +00:00
|
|
|
PLIST_SUB+= EDITOR=""
|
|
|
|
.else
|
2006-04-24 21:01:54 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-editor
|
2005-07-22 23:38:08 +00:00
|
|
|
PLIST_SUB+= EDITOR="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 21:01:54 +00:00
|
|
|
.if !defined(WITHOUT_LAUNCHER)
|
2005-07-22 23:38:08 +00:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
PLIST_SUB+= LAUNCHER=""
|
|
|
|
.else
|
2006-04-24 21:01:54 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-launcher2
|
2005-07-22 23:38:08 +00:00
|
|
|
PLIST_SUB+= LAUNCHER="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2006-04-24 21:01:54 +00:00
|
|
|
# Fix SDL include statement.
|
2005-07-22 23:38:08 +00:00
|
|
|
.for f in *.cpp *.h
|
|
|
|
@${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \
|
|
|
|
${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
|
|
|
|
.endfor
|
|
|
|
|
2006-04-24 21:01:54 +00:00
|
|
|
# Remove -lSDL linker flag.
|
2005-07-22 23:38:08 +00:00
|
|
|
.for f in Makefile.am Makefile.in
|
|
|
|
@${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \
|
|
|
|
${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -e 's|-lSDL || ; s|-lSDL$$|| ; s|-lpthread||'
|
|
|
|
.endfor
|
|
|
|
|
2006-04-24 21:01:54 +00:00
|
|
|
# Enable/disable compilation optimizations.
|
|
|
|
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
2005-07-22 23:38:08 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O2||' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|