cc3175ea4e
to deal with a bunch of broken packages on ftp.netbsd.org and on the CD-ROMS, as one of the dependencies, faad2, gets automatically removed by virtue of the properly noted patent restriction. That'll make any mplayer binaries on the ftp server or on the 1.6.1 CD's impossible for a user to install. - - Actually set NO_SRC_ON_FTP to something, rather than the undefined variable ${RESTRICTED}.
60 lines
1.9 KiB
Makefile
60 lines
1.9 KiB
Makefile
# $NetBSD: Makefile.common,v 1.23 2003/02/07 18:33:07 fredb Exp $
|
|
|
|
MPLAYER_DIST_VERSION= 0.90rc3
|
|
#PKGREVISION= 0
|
|
|
|
# This variable is used in all packages which depend on this package
|
|
# XXX Add 10, as the "rc" version numbers were used up for the "pre" versions.
|
|
MPLAYER_PKG_VERSION= 0.90rc13
|
|
|
|
DISTNAME= MPlayer-${MPLAYER_DIST_VERSION}
|
|
CATEGORIES?= graphics
|
|
MASTER_SITES= http://www.mplayerhq.hu/MPlayer/releases/ \
|
|
http://www2.mplayerhq.hu/MPlayer/releases/ \
|
|
ftp://ftp.mplayerhq.hu/MPlayer/releases/ \
|
|
ftp://ftp2.mplayerhq.hu/MPlayer/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
DIST_SUBDIR= mplayer
|
|
|
|
MAINTAINER?= packages@netbsd.org
|
|
HOMEPAGE?= http://www.mplayerhq.hu/
|
|
|
|
PATCHDIR= ${.CURDIR}/../../graphics/mplayer-share/patches
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-powerpc SunOS-*-*
|
|
|
|
NO_BIN_ON_CD= "a dependency is restricted"
|
|
NO_BIN_ON_FTP= "a dependency is restricted"
|
|
NO_SRC_ON_FTP= "prohibited by USAs DMCA"
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_GMAKE= YES
|
|
HAS_CONFIGURE= YES
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
CONFIGURE_ARGS+= --prefix="${PREFIX}"
|
|
CONFIGURE_ARGS+= --with-extraincdir="${LOCALBASE}/include"
|
|
CONFIGURE_ARGS+= --with-cdparanoiaincdir="${LOCALBASE}/include/cdparanoia"
|
|
CONFIGURE_ARGS+= --with-extralibdir="${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --disable-mpdvdkit
|
|
CONFIGURE_ARGS+= --enable-faad
|
|
CONFIGURE_ARGS+= --disable-arts
|
|
|
|
# The configure script attempts to test-execute compiled programs in /tmp,
|
|
# but that directory may be mounted as noexec; work this around by setting
|
|
# TMPDIR to ${WRKDIR}
|
|
CONFIGURE_ENV+= TMPDIR=${WRKDIR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
CONFIGURE_ARGS+= --with-win32libdir="${LOCALBASE}/lib/win32"
|
|
.if ${MPLAYER_ENABLE_RUNTIME_CPU_DETECTION} == YES
|
|
CONFIGURE_ARGS+= --enable-runtime-cpudetection
|
|
.endif
|
|
.if ${MPLAYER_USE_REALMEDIA} == "YES"
|
|
CONFIGURE_ARGS+= --with-reallibdir="${LOCALBASE}/lib/RealPlayer8/Codecs"
|
|
.endif
|
|
BUILD_DEFS+= MPLAYER_ENABLE_RUNTIME_CPU_DETECTION
|
|
BUILD_DEFS+= MPLAYER_USE_REALMEDIA
|
|
.endif
|