Add files from parent branch HEAD:
[pkgsrc.git] / multimedia / mplayer-share / Makefile.common
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
5
6 MPLAYER_SNAPSHOT_DATE=  2009-10-17
7 MPLAYER_VERSION=        1.0rc${MPLAYER_SNAPSHOT_DATE:S/-//g}
8
9 DISTNAME=               mplayer-${MPLAYER_SNAPSHOT_DATE:S/-//g}
10 CATEGORIES?=            multimedia
11
12 MASTER_SITES=           ${MASTER_SITE_SOURCEFORGE:=commondistfiles/}
13 MASTER_SITES+=          http://mx1.nygren.pp.se/misc/
14
15 EXTRACT_SUFX=           .tar.bz2
16 DIST_SUBDIR=            mplayer
17
18 WRKSRC=                 ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE}
19
20 MAINTAINER?=            ahoka@NetBSD.org
21 HOMEPAGE?=              http://www.mplayerhq.hu/
22
23 #
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.
27 #
28 # NOTE: patches are shared between mplayer and gmplayer!
29 #
30
31 PATCHDIR=               ${.CURDIR}/../../multimedia/mplayer-share/patches
32 FILESDIR=               ${.CURDIR}/../../multimedia/mplayer-share/files
33 DISTINFO_FILE=          ${.CURDIR}/../../multimedia/mplayer-share/distinfo
34
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}
39
40 USE_TOOLS+=             gmake
41 HAS_CONFIGURE=          YES
42
43 PTHREAD_OPTS+=          require
44
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
49
50 ONLY_FOR_COMPILER=      gcc
51
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
54 # TMPDIR to ${WRKDIR}
55 CONFIGURE_ENV+=         TMPDIR=${WRKDIR:Q}
56
57 .include "../../mk/bsd.prefs.mk"
58
59 # The configure script misdetects endianness on mipseb
60 .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb"
61 CONFIGURE_ARGS+=        --enable-big-endian
62 .endif
63
64 .include "../../multimedia/mplayer-share/options.mk"