summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share/Makefile.common
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-01-26 12:06:40 +0000
committerjmmv <jmmv>2004-01-26 12:06:40 +0000
commitaf9bdfa3c2d89d4c700a0f80254fc3f640aa5fd7 (patch)
tree81669b36ee210f1ee80bb87d0d36f77ffdfd46c0 /multimedia/mplayer-share/Makefile.common
parent43580015acfceb48ae11dc1b1dd2472ea11c0c9e (diff)
downloadpkgsrc-af9bdfa3c2d89d4c700a0f80254fc3f640aa5fd7.tar.gz
Move mplayer-share to the multimedia category (coming from graphics).
This is version 1.0rc3.
Diffstat (limited to 'multimedia/mplayer-share/Makefile.common')
-rw-r--r--multimedia/mplayer-share/Makefile.common91
1 files changed, 91 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/Makefile.common b/multimedia/mplayer-share/Makefile.common
new file mode 100644
index 00000000000..630c2d4702f
--- /dev/null
+++ b/multimedia/mplayer-share/Makefile.common
@@ -0,0 +1,91 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/01/26 12:06:43 jmmv Exp $
+#
+
+MPLAYER_DIST_VERSION= 1.0pre3
+
+# This variable is used in all packages which depend on this package
+MPLAYER_PKG_VERSION= 1.0rc3
+
+DISTNAME= MPlayer-${MPLAYER_DIST_VERSION}
+CATEGORIES?= multimedia
+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-${MPLAYER_PKG_VERSION}
+
+MAINTAINER?= tech-pkg@NetBSD.org
+HOMEPAGE?= http://www.mplayerhq.hu/
+
+PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches
+
+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_GNU_TOOLS+= make
+HAS_CONFIGURE= YES
+
+PTHREAD_OPTS+= require
+
+CONFIGURE_ARGS+= --prefix="${PREFIX}" \
+ --with-extraincdir="${LOCALBASE}/include" \
+ --with-extralibdir="${LOCALBASE}/lib" \
+ --with-extralibdir="${X11BASE}/lib" \
+ --disable-mpdvdkit \
+
+# 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
+BUILD_DEFS+= MPLAYER_ENABLE_RUNTIME_CPU_DETECTION
+.endif
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "alpha"
+CONFIGURE_ARGS+= --with-reallibdir="${LOCALBASE}/lib/RealPlayer8-Codecs"
+.endif
+
+.if defined(BUILDLINK_PREFIX.cdparanoia)
+CONFIGURE_ARGS+= --with-cdparanoiaincdir="${BUILDLINK_PREFIX.cdparanoia}/include/cdparanoia"
+.endif
+
+.if ${OPSYS} == "SunOS" && !empty(MPLAYER_USE_MEDIALIB:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --enable-mlib
+.else
+CONFIGURE_ARGS+= --disable-mlib
+.endif
+
+# Keep this list in sync with the one in bsd.pkg.defaults.mk, where
+# MPLAYER_DISABLE_DRIVERS is explained.
+MPLAYER_DRIVERS= arts audio/arts \
+ esd audio/esound \
+ nas audio/nas \
+ sdl devel/SDL
+
+# arts is currently broken on Solaris.
+.if ${OPSYS} == "SunOS"
+MPLAYER_DISABLE_DRIVERS= arts
+.endif
+
+.if defined(PKGNAME) && !empty(PKGNAME:M*encoder*)
+MPLAYER_DISABLE_DRIVERS=arts esd nas sdl
+.else
+BUILD_DEFS+= MPLAYER_DISABLE_DRIVERS
+.endif
+.for drv pkg in ${MPLAYER_DRIVERS}
+. if empty(MPLAYER_DISABLE_DRIVERS:M${drv})
+CONFIGURE_ARGS+= --enable-${drv}
+. else
+CONFIGURE_ARGS+= --disable-${drv}
+. endif
+.endfor