| @@ -1,30 +1,30 @@ | | | @@ -1,30 +1,30 @@ |
1 | # $NetBSD: options.mk,v 1.27 2008/02/24 22:24:34 jdc Exp $ | | 1 | # $NetBSD: options.mk,v 1.28 2008/03/16 11:56:49 wiz Exp $ |
2 | | | 2 | |
3 | .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) | | 3 | .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) |
4 | | | 4 | |
5 | # Note: This expression is the same as ${PKGBASE}, but the latter is | | 5 | # Note: This expression is the same as ${PKGBASE}, but the latter is |
6 | # not defined yet, so we cannot use it here. | | 6 | # not defined yet, so we cannot use it here. |
7 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} | | 7 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} |
8 | | | 8 | |
9 | .include "../../mk/oss.buildlink3.mk" | | 9 | .include "../../mk/oss.buildlink3.mk" |
10 | | | 10 | |
11 | # ------------------------------------------------------------------------- | | 11 | # ------------------------------------------------------------------------- |
12 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. | | 12 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. |
13 | # ------------------------------------------------------------------------- | | 13 | # ------------------------------------------------------------------------- |
14 | | | 14 | |
15 | # Options supported by both mplayer* or mencoder*. | | 15 | # Options supported by both mplayer* or mencoder*. |
16 | | | 16 | |
17 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread png theora vorbis debug | | 17 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread png theora vorbis x264 debug |
18 | .if ${OSS_TYPE} != "none" | | 18 | .if ${OSS_TYPE} != "none" |
19 | PKG_SUPPORTED_OPTIONS+= oss | | 19 | PKG_SUPPORTED_OPTIONS+= oss |
20 | .endif | | 20 | .endif |
21 | | | 21 | |
22 | # Set options based on the specific package being built. | | 22 | # Set options based on the specific package being built. |
23 | .if !empty(PKGNAME:M*mplayer*) | | 23 | .if !empty(PKGNAME:M*mplayer*) |
24 | PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup | | 24 | PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup |
25 | PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad | | 25 | PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad |
26 | PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad | | 26 | PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad |
27 | | | 27 | |
28 | PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl | | 28 | PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl |
29 | | | 29 | |
30 | . if ${OPSYS} != "SunOS" | | 30 | . if ${OPSYS} != "SunOS" |
| @@ -61,27 +61,27 @@ PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 | | | @@ -61,27 +61,27 @@ PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 |
61 | .endif | | 61 | .endif |
62 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ | | 62 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ |
63 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" | | 63 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" |
64 | PKG_SUPPORTED_OPTIONS+= xvid | | 64 | PKG_SUPPORTED_OPTIONS+= xvid |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | # ------------------------------------------------------------------------- | | 67 | # ------------------------------------------------------------------------- |
68 | # Define PKG_SUGGESTED_OPTIONS. | | 68 | # Define PKG_SUGGESTED_OPTIONS. |
69 | # ------------------------------------------------------------------------- | | 69 | # ------------------------------------------------------------------------- |
70 | | | 70 | |
71 | .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \ | | 71 | .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \ |
72 | lame mad mplayer-menu mplayer-real \ | | 72 | lame mad mplayer-menu mplayer-real \ |
73 | mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ | | 73 | mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ |
74 | nas oss png sdl theora vorbis xvid | | 74 | nas oss png sdl theora vorbis x264 xvid |
75 | . if !empty(PKG_SUPPORTED_OPTIONS:M${_o_}) | | 75 | . if !empty(PKG_SUPPORTED_OPTIONS:M${_o_}) |
76 | PKG_SUGGESTED_OPTIONS+= ${_o_} | | 76 | PKG_SUGGESTED_OPTIONS+= ${_o_} |
77 | . endif | | 77 | . endif |
78 | .endfor | | 78 | .endfor |
79 | .if ${OPSYS} == "Linux" | | 79 | .if ${OPSYS} == "Linux" |
80 | PKG_SUGGESTED_OPTIONS+= vidix | | 80 | PKG_SUGGESTED_OPTIONS+= vidix |
81 | .endif | | 81 | .endif |
82 | | | 82 | |
83 | # ------------------------------------------------------------------------- | | 83 | # ------------------------------------------------------------------------- |
84 | # Handle extra libraries (part 1) | | 84 | # Handle extra libraries (part 1) |
85 | # ------------------------------------------------------------------------- | | 85 | # ------------------------------------------------------------------------- |
86 | EXTRA_LIBS= | | 86 | EXTRA_LIBS= |
87 | | | 87 | |
| @@ -262,26 +262,32 @@ CONFIGURE_ARGS+= --disable-theora | | | @@ -262,26 +262,32 @@ CONFIGURE_ARGS+= --disable-theora |
262 | | | 262 | |
263 | # disable vidix if not in options | | 263 | # disable vidix if not in options |
264 | .if empty(PKG_OPTIONS:Mvidix) | | 264 | .if empty(PKG_OPTIONS:Mvidix) |
265 | CONFIGURE_ARGS+= --disable-vidix-internal | | 265 | CONFIGURE_ARGS+= --disable-vidix-internal |
266 | CONFIGURE_ARGS+= --disable-vidix-external | | 266 | CONFIGURE_ARGS+= --disable-vidix-external |
267 | .endif | | 267 | .endif |
268 | | | 268 | |
269 | .if !empty(PKG_OPTIONS:Mvorbis) | | 269 | .if !empty(PKG_OPTIONS:Mvorbis) |
270 | CONFIGURE_ARGS+= --enable-libvorbis | | 270 | CONFIGURE_ARGS+= --enable-libvorbis |
271 | .else | | 271 | .else |
272 | CONFIGURE_ARGS+= --disable-libvorbis | | 272 | CONFIGURE_ARGS+= --disable-libvorbis |
273 | .endif | | 273 | .endif |
274 | | | 274 | |
| | | 275 | .if !empty(PKG_OPTIONS:Mx264) |
| | | 276 | CONFIGURE_ARGS+= --enable-x264 |
| | | 277 | .else |
| | | 278 | CONFIGURE_ARGS+= --disable-x264 |
| | | 279 | .endif |
| | | 280 | |
275 | .if !empty(PKG_OPTIONS:Mxvid) | | 281 | .if !empty(PKG_OPTIONS:Mxvid) |
276 | CONFIGURE_ARGS+= --enable-xvid | | 282 | CONFIGURE_ARGS+= --enable-xvid |
277 | EXTRA_LIBS+= -lxvidcore | | 283 | EXTRA_LIBS+= -lxvidcore |
278 | . include "../../multimedia/xvidcore/buildlink3.mk" | | 284 | . include "../../multimedia/xvidcore/buildlink3.mk" |
279 | .else | | 285 | .else |
280 | CONFIGURE_ARGS+= --disable-xvid | | 286 | CONFIGURE_ARGS+= --disable-xvid |
281 | .endif | | 287 | .endif |
282 | | | 288 | |
283 | .if !empty(PKG_OPTIONS:Mmplayer-ssse3) | | 289 | .if !empty(PKG_OPTIONS:Mmplayer-ssse3) |
284 | # needs a recent assembler | | 290 | # needs a recent assembler |
285 | .include "../../devel/binutils/buildlink3.mk" | | 291 | .include "../../devel/binutils/buildlink3.mk" |
286 | .else | | 292 | .else |
287 | CONFIGURE_ARGS+= --disable-ssse3 | | 293 | CONFIGURE_ARGS+= --disable-ssse3 |