1 # $NetBSD: Makefile.common,v 1.43 2010/01/01 17:54:38 tnn Exp $
2 # used by multimedia/gmplayer/Makefile
3 # used by multimedia/mencoder/Makefile
4 # used by multimedia/mplayer/Makefile
6 MPLAYER_SNAPSHOT_DATE= 2009-10-17
7 MPLAYER_VERSION= 1.0rc${MPLAYER_SNAPSHOT_DATE:S/-//g}
9 DISTNAME= mplayer-${MPLAYER_SNAPSHOT_DATE:S/-//g}
10 CATEGORIES?= multimedia
12 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=commondistfiles/}
13 MASTER_SITES+= http://mx1.nygren.pp.se/misc/
15 EXTRACT_SUFX= .tar.bz2
18 WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE}
20 MAINTAINER?= ahoka@NetBSD.org
21 HOMEPAGE?= http://www.mplayerhq.hu/
24 # NOTE: gmplayer has its own distinfo file. if you are also updating
25 # gmplayer, you must ensure that *both* distinfo files contain the
26 # correct, up-to-date files and checksums.
28 # NOTE: patches are shared between mplayer and gmplayer!
31 PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches
32 FILESDIR= ${.CURDIR}/../../multimedia/mplayer-share/files
33 DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-share/distinfo
35 RESTRICTED= Prohibited by USAs DMCA and patent law
36 NO_BIN_ON_CDROM= ${RESTRICTED}
37 NO_BIN_ON_FTP= ${RESTRICTED}
38 NO_SRC_ON_FTP= ${RESTRICTED}
43 PTHREAD_OPTS+= require
45 CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \
46 #--with-extraincdir="${LOCALBASE}/include:${LOCALBASE}/include/faad2:${LOCALBASE}/include/cdparanoia:${LOCALBASE}/include/freetype2" \
47 --with-extralibdir="${LOCALBASE}/lib" \
48 --disable-dvdread-internal --disable-smb
50 ONLY_FOR_COMPILER= gcc
52 # The configure script attempts to test-execute compiled programs in /tmp,
53 # but that directory may be mounted as noexec; work this around by setting
55 CONFIGURE_ENV+= TMPDIR=${WRKDIR:Q}
57 .include "../../mk/bsd.prefs.mk"
59 # The configure script misdetects endianness on mipseb
60 .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb"
61 CONFIGURE_ARGS+= --enable-big-endian
64 .include "../../multimedia/mplayer-share/options.mk"