1f40f3a084
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
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.59 2010/12/23 11:44:46 dsainty Exp $
|
|
#
|
|
|
|
DISTNAME= tgif-4.2.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://bourbon.usc.edu/pub/tgif/free-of-charge/
|
|
|
|
MAINTAINER= dmcmahill@NetBSD.org
|
|
HOMEPAGE= http://bourbon.usc.edu/tgif/tgif.html
|
|
COMMENT= Fully-featured X11 drawing program
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_IMAKE= yes
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
OS_TEMPLATE= ${WRKSRC}/Tgif.tmpl-freebsd
|
|
.else
|
|
OS_TEMPLATE= ${WRKSRC}/Tgif.tmpl-${LOWER_OPSYS}
|
|
.endif
|
|
|
|
post-patch::
|
|
@${RM} -f ${WRKSRC}/Tgif.tmpl
|
|
@${CP} ${OS_TEMPLATE} ${WRKSRC}/Tgif.tmpl
|
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# avoid "xmkmf -a" on Solaris which runs makedepend because the
|
|
# openwindows makedepend program can't handle the number of
|
|
# files. We should probably have a replacement makedepend in
|
|
# pkgsrc.
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "SunOS"
|
|
XMKMF= ${XMKMF_CMD}
|
|
.endif
|