pkgsrc-wip/electricsheep-svn/Makefile
David Sainty e2d791ed0f Mechanically replace references to graphics/jpeg with the suitable
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
2010-12-26 05:01:21 +00:00

50 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2010/12/26 05:01:21 davesainty Exp $
PKGNAME= electricsheep-2.7
DISTNAME= electricsheep
CATEGORIES= x11
MASTER_SITES= http://electricsheep.org/
MAINTAINER= rhialto@falu.nl
HOMEPAGE= http://electricsheep.org/
COMMENT= Distributed fractal flame screensaver
DEPENDS+= curl>=7.12.1:../../www/curl
DEPENDS+= mplayer-[0-9]*:../../multimedia/mplayer
# If included install target is used, the next depencency is required.
# (It is amazing how much junk that dependency pulls in.)
# However, it doesn't respect $DESTDIR, and tries to use some undefined
# command "update-gconf-defaults".
#DEPENDS+= gnome-screensaver-[0-9]*:../../x11/gnome-screensaver
USE_X11BASE= YES
GNU_CONFIGURE= YES
USE_TOOLS+= pkg-config gmake
SVN_REPOSITORIES= client
SVN_ROOT.client= http://electricsheep.svn.sourceforge.net/svnroot/electricsheep/trunk/client
WRKSRC= ${WRKDIR}/client
PKG_DESTDIR_SUPPORT= user-destdir
SHARE_DIR= ${DESTDIR}/${PREFIX}/share/electricsheep
do-install:
${INSTALL} -d -m 0755 ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/electricsheep.man ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1/electricsheep.1
${INSTALL} -d -m 0755 ${DESTDIR}/${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/electricsheep ${DESTDIR}/${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/electricsheep-preferences ${DESTDIR}/${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/electricsheep-saver ${DESTDIR}/${PREFIX}/bin
${INSTALL} -d -m 0755 ${DESTDIR}/${PREFIX}/share/electricsheep
${INSTALL_DATA} ${WRKSRC}/electricsheep-preferences.glade ${SHARE_DIR}
${INSTALL} -d -m 0755 ${DESTDIR}/${PREFIX}/libexec/xscreensaver/config
${INSTALL_DATA} ${WRKSRC}/electricsheep.xml ${DESTDIR}/${PREFIX}/libexec/xscreensaver/config
.include "../../mk/jpeg.buildlink3.mk"
# for libavformat:
.include "../../multimedia/ffmpeg/buildlink3.mk"
.include "../../devel/libglade/buildlink3.mk"
#.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../wip/flam3-svn/buildlink3.mk"
.include "../../wip/mk/svn-package.mk"
.include "../../mk/bsd.pkg.mk"