aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/win32-codecs/Makefile
blob: 14295574179b7dbfd0c19341ee121f5013657f1f (plain) (blame)
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
68
69
70
# New ports collection makefile for:    avifile
# Date created:     16 September 2000
# Whom:         Holger Lamm
#
# $FreeBSD$
#

PORTNAME=   win32-codecs
PORTVERSION=    3.${CODEC_MPLAYER_VERSION:S/pre/.p/}
PORTEPOCH=  1
CATEGORIES= multimedia audio
MASTER_SITES=   http://www1.mplayerhq.hu/MPlayer/releases/codecs/ \
        http://www2.mplayerhq.hu/MPlayer/releases/codecs/ \
        http://www4.mplayerhq.hu/MPlayer/releases/codecs/ \
        http://ftp.lug.udel.edu/MPlayer/releases/codecs/ \
        http://www.mplayerhq.hu/MPlayer/releases/codecs/ \
        ftp://ftp1.mplayerhq.hu/MPlayer/releases/codecs/ \
        ftp://ftp2.mplayerhq.hu/MPlayer/releases/codecs/ \
        ftp://ftp.lug.udel.edu/MPlayer/releases/codecs/
DISTFILES=  all-20060611.tar.bz2 \
        ${ADDITIONAL_CODECS_DISTFILES}
DIST_SUBDIR=    win32
EXTRACT_ONLY=   all-20060611.tar.bz2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Huge compilation of Win32 binary video codecs

FORBIDDEN=  Remote code execution: http://vuxml.FreeBSD.org/24f6b1eb-43d5-11db-81e1-000e0c2e438a.html
RESTRICTED= Unsure of codec\'s license

ONLY_FOR_ARCHS= i386
USE_BZIP2=  yes
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/w32codec-${CODEC_MPLAYER_VERSION:S/pre7//}

PLIST_SUB=  PKGNAME=${PKGNAME}

CODEC_MPLAYER_VERSION=  1.0pre8
# Used by other ports to detect if this is installed
CODEC_DETECTION_FILE=   ${LOCALBASE}/lib/win32/${PKGNAME}

# additional codec packs
ADDITIONAL_CODECS_DISTFILES=    qt63dlls-20050115.tar.bz2 \
                qtextras-20041107.tar.bz2 \
                rp9codecs-20050115.tar.bz2 \
                rp9codecs-win32-20050115.tar.bz2 \
                xanimdlls-20040626.tar.bz2

# extraction wrksrc
ADDITIONAL_CODECS_WRKSRC=   ${DISTFILES:S/.tar.bz2//}

post-extract:
.for file in ${ADDITIONAL_CODECS_DISTFILES}
    @cd ${WRKDIR} && ${TAR} xyf \
        ${DISTDIR}/${DIST_SUBDIR}/${file}
.endfor
    @${MKDIR} ${WRKSRC}
.for dir in ${ADDITIONAL_CODECS_WRKSRC}
    @${INSTALL} ${WRKDIR}/${dir}/* ${WRKSRC}
.endfor

do-install:
    @${MKDIR} ${PREFIX}/lib/win32
    @${CHMOD} 0755 ${PREFIX}/lib/win32
    @${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/lib/win32
# marker file
    @${CP} /dev/null ${PREFIX}/lib/win32/${PKGNAME}
    @${CHMOD} 0444 ${PREFIX}/lib/win32/${PKGNAME}

.include <bsd.port.mk>