alternative from mk/jpeg.buildlink3.mk This allows selection of an alternative jpeg library (namely the x86 MMX, SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and follows the current standard model for alternatives (fam, motif, fuse etc). The mechanical edits were applied via the following script: #!/bin/sh for d in */*; do [ -d "$d" ] || continue for i in "$d/"Makefile* "$d/"*.mk; do case "$i" in *.orig|*"*"*) continue;; esac out="$d/x" sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \ -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \ < "$i" > "$out" if cmp -s "$i" "$out"; then rm -f "$out" else echo "Edited $i" mv -f "$i" "$i.orig" && mv "$out" "$i" fi done done
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.49 2010/12/23 11:44:32 dsainty Exp $
|
|
#
|
|
|
|
DISTNAME= xracer-0.96.9
|
|
PKGREVISION= 10
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= http://www.annexia.org/_file/
|
|
|
|
MAINTAINER= bsieker@freenet.de
|
|
HOMEPAGE= http://www.annexia.org/freeware/xracer
|
|
COMMENT= XRacer is a clone of the popular Psygnosis game Wipeout
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= gmake perl:run
|
|
PERL5_PACKLIST= auto/XRacer/.packlist
|
|
|
|
USE_LIBTOOL= yes
|
|
# disabled by patch-an, since the only existing translation is empty
|
|
# and made trouble in 2.1 bulk builds
|
|
#USE_TOOLS+= msgfmt
|
|
#USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
PERL5_CONFIGURE= no
|
|
PERL5_CONFIGURE_DIRS= ${WRKSRC}/XRacer
|
|
REPLACE_PERL+= tools/blender2track/xracer-blender2track.pl \
|
|
tools/mktube/xracer-mktube.pl \
|
|
tools/mktrack/xracer-mktrack.pl \
|
|
tools/mktrackscenery/xracer-mktrackscenery.pl \
|
|
tools/mkcraft/xracer-mkcraft.pl \
|
|
tools/mkmeshnotex/xracer-mkmeshnotex.pl
|
|
|
|
post-configure: do-makemaker-configure
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../graphics/Mesa/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|