freebsd-ports/games/rtb/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

47 lines
1.2 KiB
Makefile

# Created by: Dishanker Rajakulendren <draj@oceanfree.net>
# $FreeBSD$
PORTNAME= RealTimeBattle
PORTVERSION= 1.0.8
DISTVERSIONSUFFIX= -Ext
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}-1.0.x/${PORTNAME}%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Robot programming game for UNIX
LICENSE= GPLv2 # (or later)
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
OPTIONS_DEFINE= DOCS
USE_BZIP2= yes
USES= gettext gmake perl5 pkgconfig
USE_GNOME= gtk20
USE_PYTHON= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-rtb-dir=${PREFIX}/lib/${PORTNAME}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DESKTOP_ENTRIES="${PORTNAME}" "" "" "${PORTNAME:tl}" "" ""
post-patch:
.for i in configure
@${REINPLACE_CMD} -e 's|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \
s|\\$${top_builddir}/intl/libintl.a|-lintl|g ; \
/^DOCS_DIR/s|=.*|=$${prefix}/share/doc/${PORTNAME}| ; \
/test/s| == | = |g' ${WRKSRC}/${i}
.endfor
.for i in Documentation/Makefile.in
@${REINPLACE_CMD} -e '/COPYING/d' ${WRKSRC}/${i}
.endfor
.for i in team-framework/createrobot.sh \
team-framework/createrobotconf.sh
@${REINPLACE_CMD} -e 's| sed| gsed|g' ${WRKSRC}/${i}
.endfor
.include <bsd.port.mk>