pkgsrc/multimedia/mjpegtools/Makefile
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

56 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.46 2010/12/23 11:44:51 dsainty Exp $
DISTNAME= mjpegtools-1.9.0
PKGREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mjpeg/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mjpeg.sourceforge.net/
COMMENT= Programs for compressing video streams
PKG_DESTDIR_SUPPORT= user-destdir
CONFLICTS+= mplex-[0-9]*
DEPENDS+= toolame>=02l:../../audio/toolame
BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
USE_TOOLS+= gmake
USE_TOOLS+= bash:run pkg-config
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
SHLIBTOOL_OVERRIDE= # empty
PKGCONFIG_OVERRIDE= mjpegtools.pc.in
INFO_FILES= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-libquicktime
CONFIGURE_ARGS+= --enable-large-file
CONFIGURE_ARGS+= --with-lame-includes=${BUILDLINK_PREFIX.lame}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == Darwin
CONFIGURE_ARGS+= --disable-sdltest
.endif
BUILDLINK_TRANSFORM+= rm:-laudio
.include "options.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
#
# GTK+ support is disabled to avoid a dependency on GTK+ when building GNOME2.
# This only disables the "glav" program. If you really need it, please add an
# external package for it.
#
#.include "../../x11/gtk/buildlink3.mk"
.include "../../x11/libXxf86dga/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"