pkgsrc/multimedia/mplayer-share/Makefile.common
jmmv cbe4100202 Convert the mplayer* and mencoder* packages to the options framework.
This means that the MPLAYER_ENABLE_RUNTIME_CPU_DETECTION,
MPLAYER_DISABLE_DRIVERS and MPLAYER_USE_MEDIALIB become deprecated
(although still recognized).

Visible changes in the resulting binary packages should be minimum by
default (everything that was enabled before still is, and the same
dependencies are kept).  A notable addition, though, is the support for
user-defined menus, closing PR pkg/29784.

Also note that (almost) all dependencies have now a corresponding option
to disable them in case you want to get a minimalist mplayer package.
'make show-options' is your friend ;)

With thanks to wiz@ and dillo@ for their comments and help.
2005-06-01 18:45:45 +00:00

56 lines
1.7 KiB
Makefile

# $NetBSD: Makefile.common,v 1.22 2005/06/01 18:45:46 jmmv Exp $
MPLAYER_DIST_VERSION= 1.0pre7
# This variable is used in all packages which depend on this package
MPLAYER_PKG_VERSION= 1.0rc7
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/
#
# NOTE: gmplayer has its own distinfo file. if you are also updating
# gmplayer, you must ensure that *both* distinfo files contain the
# correct, up-to-date files and checksums.
#
# NOTE: patches are shared between mplayer and gmplayer!
#
PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches
DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-share/distinfo
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_TOOLS+= gmake
HAS_CONFIGURE= YES
PTHREAD_OPTS+= require
CONFIGURE_ARGS+= --prefix="${PREFIX}" \
--with-extraincdir="${LOCALBASE}/include" \
--with-extralibdir="${LOCALBASE}/lib" \
--with-x11incdir="${X11BASE}/include" \
--with-x11libdir="${X11BASE}/lib" \
--disable-mpdvdkit
ONLY_FOR_COMPILER= gcc
# 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"
.include "../../multimedia/mplayer-share/options.mk"