blob: 80042507a36233434f42ddfe8f5e44637e10f39c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile.codecs,v 1.1.1.1 2004/01/26 15:19:52 jmmv Exp $
.include "../../mk/bsd.prefs.mk"
# cvid Radius Cinepak video decompression for AVI and Quicktime
# cyuv Creative CYUV video decompression for AVI
# iv32 Intel YVU9 and Indeo 3.2 decompression for AVI and Quicktime
#
XANIM_CODECS?= ${_XANIM_UNRESTRICTED_CODECS}
#XANIM_CODECS?= ${_XANIM_UNRESTRICTED_CODECS} ${_XANIM_RESTRICTED_CODECS}
_XANIM_RESTRICTED_CODECS= cyuv iv32
_XANIM_UNRESTRICTED_CODECS= cvid
_XANIM_CODEC.cvid.i386-a.out= xa2.0_cvid_netbsd386.o.Z
_XANIM_CODEC.cyuv.i386-a.out= xa1.0_cyuv_netbsd386.o.Z
_XANIM_CODEC.iv32.i386-a.out= xa2.0_iv32_netbsd386.o.Z
_XANIM_CODEC.cvid.m68k-a.out= xa2.0_cvid_netbsd68k.o.Z
_XANIM_CODEC.cyuv.m68k-a.out= xa1.0_cyuv_netbsd68k.o.Z
_XANIM_CODEC.iv32.m68k-a.out= xa2.0_iv32_netbsd68k.o.Z
_XANIM_CODEC.cvid.i386-ELF= xa2.0_cvid_linuxELF.o.Z
_XANIM_CODEC.cyuv.i386-ELF= xa1.0_cyuv_linuxELF.o.Z
_XANIM_CODEC.iv32.i386-ELF= xa2.0_iv32_linuxELF.o.Z
_XANIM_CODEC.cvid.sparc-a.out= xa2.0_cvid_sparcCOFF.o.Z
_XANIM_CODEC.cyuv.sparc-a.out= xa1.0_cyuv_sparcAOUT.o.Z
_XANIM_CODEC.iv32.sparc-a.out= xa2.0_iv32_sparcCOFF.o.Z
_XANIM_CODEC.cvid.sparc-ELF= xa2.0_cvid_sparcELF.o.Z
_XANIM_CODEC.cyuv.sparc-ELF= xa1.0_cyuv_sparcELF.o.Z
_XANIM_CODEC.iv32.sparc-ELF= xa2.0_iv32_sparcELF.o.Z
_XANIM_CODEC.cvid.powerpc-ELF= xa2.0_cvid_linuxPPC.o.Z
_XANIM_CODEC.cyuv.powerpc-ELF= xa1.0_cyuv_linuxPPC.o.Z
_XANIM_DEF.cvid= XA_CVID_DEF="-DXA_CVID"
_XANIM_DEF.cyuv= XA_CYUV_DEF="-DXA_CYUV"
_XANIM_DEF.iv32= XA_IV32_DEF="-DXA_IV32"
_XANIM_LIB.cvid= XA_CVID_LIB
_XANIM_LIB.cyuv= XA_CYUV_LIB
_XANIM_LIB.iv32= XA_IV32_LIB
_XANIM_MACH_TYPE= ${MACHINE_ARCH}-${OBJECT_FMT}
.for _codec_ in ${XANIM_CODECS}
. if defined(_XANIM_CODEC.${_codec_}.${_XANIM_MACH_TYPE})
CODECS+= ${_codec_}
CODEC_FILES+= ${_XANIM_CODEC.${_codec_}.${_XANIM_MACH_TYPE}}
MAKE_ENV+= ${_XANIM_DEF.${_codec_}}
MAKE_ENV+= ${_XANIM_LIB.${_codec_}}="mods/${_XANIM_CODEC.${_codec_}.${_XANIM_MACH_TYPE}:S/.Z$//}"
. if !empty(_XANIM_RESTRICTED_CODECS:M${_codec_})
_RESTRICTED_CODECS+= ${_codec_}
. endif
. endif
.endfor
BUILD_DEFS+= CODECS
.if defined(_RESTRICTED_CODECS)
RESTRICTED= "Can't mirror/distribute object modules: ${_RESTRICTED_CODECS}"
NO_SRC_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
.endif
|