| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.48 2010/10/24 21:56:51 ahoka Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.49 2011/05/18 08:28:39 wiz Exp $ |
2 | # used by multimedia/gmplayer/Makefile | | 2 | # used by multimedia/gmplayer/Makefile |
3 | # used by multimedia/mencoder/Makefile | | 3 | # used by multimedia/mencoder/Makefile |
4 | # used by multimedia/mplayer/Makefile | | 4 | # used by multimedia/mplayer/Makefile |
5 | | | 5 | |
6 | MPLAYER_SNAPSHOT_DATE= 2010-09-13 | | 6 | MPLAYER_SNAPSHOT_DATE= 2010-09-13 |
7 | MPLAYER_VERSION= 1.0rc${MPLAYER_SNAPSHOT_DATE:S/-//g} | | 7 | MPLAYER_VERSION= 1.0rc${MPLAYER_SNAPSHOT_DATE:S/-//g} |
8 | | | 8 | |
9 | DISTNAME= mplayer-${MPLAYER_SNAPSHOT_DATE:S/-//g} | | 9 | DISTNAME= mplayer-${MPLAYER_SNAPSHOT_DATE:S/-//g} |
10 | | | 10 | |
11 | CATEGORIES?= multimedia | | 11 | CATEGORIES?= multimedia |
12 | | | 12 | |
13 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=commondistfiles/} | | 13 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=commondistfiles/} |
14 | | | 14 | |
| @@ -36,28 +36,26 @@ NO_BIN_ON_CDROM= ${RESTRICTED} | | | @@ -36,28 +36,26 @@ NO_BIN_ON_CDROM= ${RESTRICTED} |
36 | NO_BIN_ON_FTP= ${RESTRICTED} | | 36 | NO_BIN_ON_FTP= ${RESTRICTED} |
37 | NO_SRC_ON_FTP= ${RESTRICTED} | | 37 | NO_SRC_ON_FTP= ${RESTRICTED} |
38 | | | 38 | |
39 | USE_TOOLS+= gmake | | 39 | USE_TOOLS+= gmake |
40 | HAS_CONFIGURE= YES | | 40 | HAS_CONFIGURE= YES |
41 | | | 41 | |
42 | PTHREAD_OPTS+= require | | 42 | PTHREAD_OPTS+= require |
43 | | | 43 | |
44 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ | | 44 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ |
45 | #--with-extraincdir="${LOCALBASE}/include:${LOCALBASE}/include/faad2:${LOCALBASE}/include/cdparanoia:${LOCALBASE}/include/freetype2" \ | | 45 | #--with-extraincdir="${LOCALBASE}/include:${LOCALBASE}/include/faad2:${LOCALBASE}/include/cdparanoia:${LOCALBASE}/include/freetype2" \ |
46 | --with-extralibdir="${LOCALBASE}/lib" \ | | 46 | --with-extralibdir="${LOCALBASE}/lib" \ |
47 | --disable-dvdread-internal --disable-smb | | 47 | --disable-dvdread-internal --disable-smb |
48 | | | 48 | |
49 | ONLY_FOR_COMPILER= gcc | | | |
50 | | | | |
51 | # The configure script attempts to test-execute compiled programs in /tmp, | | 49 | # The configure script attempts to test-execute compiled programs in /tmp, |
52 | # but that directory may be mounted as noexec; work this around by setting | | 50 | # but that directory may be mounted as noexec; work this around by setting |
53 | # TMPDIR to ${WRKDIR} | | 51 | # TMPDIR to ${WRKDIR} |
54 | CONFIGURE_ENV+= TMPDIR=${WRKDIR:Q} | | 52 | CONFIGURE_ENV+= TMPDIR=${WRKDIR:Q} |
55 | | | 53 | |
56 | .include "../../mk/bsd.prefs.mk" | | 54 | .include "../../mk/bsd.prefs.mk" |
57 | | | 55 | |
58 | # The configure script misdetects endianness on mipseb | | 56 | # The configure script misdetects endianness on mipseb |
59 | .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb" | | 57 | .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb" |
60 | CONFIGURE_ARGS+= --enable-big-endian | | 58 | CONFIGURE_ARGS+= --enable-big-endian |
61 | .endif | | 59 | .endif |
62 | | | 60 | |
63 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) | | 61 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) |