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
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.73 2010/12/23 11:45:00 dsainty Exp $
|
|
|
|
DISTNAME= fltk-1.1.10-source
|
|
PKGNAME= ${DISTNAME:S/-source//}
|
|
VERS= ${DISTNAME:S/fltk-//:S/-source//}
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://ftp.easysw.com/pub/fltk/${VERS}/ \
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/${VERS}/ \
|
|
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/${VERS}/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.fltk.org/
|
|
COMMENT= Fast Light Tool Kit for graphical user interfaces
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
TEST_TARGET= test
|
|
|
|
PTHREAD_OPTS+= require
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-libtool=${LIBTOOL:Q}
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
CONFIGURE_ARGS+= ac_cv_have_overlay=yes
|
|
|
|
PLIST_VARS+= cs # case-sensitive
|
|
.if !exists(./descr)
|
|
CONFIGURE_ARGS+= --with-links
|
|
PLIST.cs= yes
|
|
.endif
|
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
.include "../../graphics/glu/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|