pkgsrc/editors/abiword/Makefile.common
dsainty 1f40f3a084 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-23 11:44:24 +00:00

41 lines
1.3 KiB
Text

# $NetBSD: Makefile.common,v 1.41 2010/12/23 11:44:28 dsainty Exp $
#
# used by editors/abiword-plugins/Makefile
# Be sure to update PLIST for editors/abiword-plugins when updating
ABIVERSION= 2.8.6
DISTNAME= abiword-${ABIVERSION}
CATEGORIES= editors
MASTER_SITES= http://www.abisource.com/downloads/abiword/${ABIVERSION}/source/
MAINTAINER?= adam@NetBSD.org
HOMEPAGE= http://www.abisource.com/
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake msgfmt pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-clipart
CONFIGURE_ARGS+= --enable-templates
CONFIGURE_ARGS+= --with-gnomevfs
PKGCONFIG_OVERRIDE+= libabiword.pc.in
DISTINFO_FILE= ${.CURDIR}/../../editors/abiword/distinfo
PATCHDIR= ${.CURDIR}/../../editors/abiword/patches
.include "../../converters/fribidi/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../converters/wv/buildlink3.mk"
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../devel/libgsf-gnome/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../print/libgnomeprintui/buildlink3.mk"
.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"