| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.62 2019/06/04 13:39:38 nia Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.63 2020/01/09 15:57:58 ryoon 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_VERSION= 1.4 | | 6 | MPLAYER_VERSION= 1.4 |
7 | | | 7 | |
8 | DISTNAME= MPlayer-${MPLAYER_VERSION} | | 8 | DISTNAME= MPlayer-${MPLAYER_VERSION} |
9 | | | 9 | |
10 | CATEGORIES?= multimedia | | 10 | CATEGORIES?= multimedia |
11 | | | 11 | |
12 | MASTER_SITES= http://www.mplayerhq.hu/MPlayer/releases/ | | 12 | MASTER_SITES= http://www.mplayerhq.hu/MPlayer/releases/ |
13 | EXTRACT_SUFX= .tar.xz | | 13 | EXTRACT_SUFX= .tar.xz |
14 | | | 14 | |
| @@ -24,26 +24,29 @@ LICENSE?= gnu-gpl-v2 | | | @@ -24,26 +24,29 @@ LICENSE?= gnu-gpl-v2 |
24 | # correct, up-to-date files and checksums. | | 24 | # correct, up-to-date files and checksums. |
25 | # | | 25 | # |
26 | # NOTE: patches are shared between mplayer and gmplayer! | | 26 | # NOTE: patches are shared between mplayer and gmplayer! |
27 | # | | 27 | # |
28 | | | 28 | |
29 | PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches | | 29 | PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches |
30 | DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-share/distinfo | | 30 | DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-share/distinfo |
31 | | | 31 | |
32 | USE_TOOLS+= gmake | | 32 | USE_TOOLS+= gmake |
33 | HAS_CONFIGURE= YES | | 33 | HAS_CONFIGURE= YES |
34 | | | 34 | |
35 | PTHREAD_OPTS+= require | | 35 | PTHREAD_OPTS+= require |
36 | | | 36 | |
| | | 37 | # For GifQuantizeBuffer of graphics/giflib |
| | | 38 | BUILDLINK_TRANSFORM+= l:gif:gif:gifutil |
| | | 39 | |
37 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 40 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
38 | CONFIGURE_ARGS+= --disable-smb | | 41 | CONFIGURE_ARGS+= --disable-smb |
39 | CONFIGURE_ARGS+= --disable-ffmpeg_a | | 42 | CONFIGURE_ARGS+= --disable-ffmpeg_a |
40 | CONFIGURE_ARGS+= --yasm="" | | 43 | CONFIGURE_ARGS+= --yasm="" |
41 | | | 44 | |
42 | # The configure script attempts to test-execute compiled programs in /tmp, | | 45 | # The configure script attempts to test-execute compiled programs in /tmp, |
43 | # but that directory may be mounted as noexec; work this around by setting | | 46 | # but that directory may be mounted as noexec; work this around by setting |
44 | # TMPDIR to ${WRKDIR} | | 47 | # TMPDIR to ${WRKDIR} |
45 | CONFIGURE_ENV+= TMPDIR=${WRKDIR} | | 48 | CONFIGURE_ENV+= TMPDIR=${WRKDIR} |
46 | | | 49 | |
47 | .include "../../mk/bsd.prefs.mk" | | 50 | .include "../../mk/bsd.prefs.mk" |
48 | | | 51 | |
49 | # avoid text relocations caused by asm ops in #if HAVE_SSE4_INTERNAL block | | 52 | # avoid text relocations caused by asm ops in #if HAVE_SSE4_INTERNAL block |