2001-02-13 04:05:49 +01:00
|
|
|
# New ports collection makefile for: avifile
|
2000-09-19 18:18:15 +02:00
|
|
|
# Date created: 16 September 2000
|
|
|
|
# Whom: Holger Lamm
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-13 04:05:49 +01:00
|
|
|
PORTNAME= win32-codecs
|
2006-12-05 02:50:03 +01:00
|
|
|
DISTVERSION= 3.${CODEC_MPLAYER_VERSION}
|
2003-08-03 23:35:39 +02:00
|
|
|
PORTEPOCH= 1
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2004-07-14 18:04:52 +02:00
|
|
|
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/codecs/ \
|
|
|
|
http://www2.mplayerhq.hu/MPlayer/releases/codecs/ \
|
2006-01-07 07:40:14 +01:00
|
|
|
http://www4.mplayerhq.hu/MPlayer/releases/codecs/ \
|
|
|
|
http://ftp.lug.udel.edu/MPlayer/releases/codecs/ \
|
2004-07-14 18:04:52 +02:00
|
|
|
http://www.mplayerhq.hu/MPlayer/releases/codecs/ \
|
2006-01-07 07:40:14 +01:00
|
|
|
ftp://ftp1.mplayerhq.hu/MPlayer/releases/codecs/ \
|
|
|
|
ftp://ftp2.mplayerhq.hu/MPlayer/releases/codecs/ \
|
2004-07-14 18:04:52 +02:00
|
|
|
ftp://ftp.lug.udel.edu/MPlayer/releases/codecs/
|
2006-12-04 23:29:37 +01:00
|
|
|
DISTFILES= all-20061022.tar.bz2 \
|
2004-07-14 18:04:52 +02:00
|
|
|
${ADDITIONAL_CODECS_DISTFILES}
|
2003-08-03 22:39:53 +02:00
|
|
|
DIST_SUBDIR= win32
|
2006-12-04 23:29:37 +01:00
|
|
|
EXTRACT_ONLY= all-20061022.tar.bz2
|
2000-09-19 18:18:15 +02:00
|
|
|
|
2007-03-13 14:13:50 +01:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2006-01-07 07:40:14 +01:00
|
|
|
COMMENT= Huge compilation of Win32 binary video codecs
|
2000-09-19 18:18:15 +02:00
|
|
|
|
2006-11-21 23:38:52 +01:00
|
|
|
RESTRICTED= Unsure of codec's license # '
|
2000-10-09 17:52:17 +02:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2002-01-17 20:42:01 +01:00
|
|
|
USE_BZIP2= yes
|
2001-02-13 04:05:49 +01:00
|
|
|
NO_BUILD= yes
|
2002-11-23 17:40:55 +01:00
|
|
|
WRKSRC= ${WRKDIR}/w32codec-${CODEC_MPLAYER_VERSION:S/pre7//}
|
2000-09-19 18:18:15 +02:00
|
|
|
|
2001-10-01 15:52:16 +02:00
|
|
|
PLIST_SUB= PKGNAME=${PKGNAME}
|
|
|
|
|
2006-12-05 02:50:03 +01:00
|
|
|
CODEC_MPLAYER_VERSION= 1.0rc1
|
2001-02-13 04:05:49 +01:00
|
|
|
# Used by other ports to detect if this is installed
|
2001-10-01 15:52:16 +02:00
|
|
|
CODEC_DETECTION_FILE= ${LOCALBASE}/lib/win32/${PKGNAME}
|
2000-10-09 17:52:17 +02:00
|
|
|
|
2003-01-10 21:07:15 +01:00
|
|
|
# additional codec packs
|
2006-10-07 03:49:33 +02:00
|
|
|
ADDITIONAL_CODECS_DISTFILES= xanimdlls-20040626.tar.bz2
|
2004-07-14 18:04:52 +02:00
|
|
|
|
2003-01-10 21:07:15 +01:00
|
|
|
# extraction wrksrc
|
2004-07-14 18:04:52 +02:00
|
|
|
ADDITIONAL_CODECS_WRKSRC= ${DISTFILES:S/.tar.bz2//}
|
2003-01-10 21:07:15 +01:00
|
|
|
|
2006-10-07 03:49:33 +02:00
|
|
|
# list of quicktime codecs that will be removed
|
|
|
|
REMOVE_CODECS_FILES= AvidQTAVUICodec.qtx QuickTimeEssentials.qtx QuickTime.qts \
|
|
|
|
QuickTimeInternetExtras.qtx qtmlClient.dll BeHereiVideo.qtx
|
|
|
|
|
2007-03-13 14:13:50 +01:00
|
|
|
OPTIONS= REALPLAYER "Install realplayer codec" on
|
2006-10-07 03:49:33 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-03-13 14:13:50 +01:00
|
|
|
#.if defined(WITH_QUICKTIME)
|
|
|
|
#FORBIDDEN= Remote code execution: http://vuxml.FreeBSD.org/24f6b1eb-43d5-11db-81e1-000e0c2e438a.html
|
|
|
|
#ADDITIONAL_CODECS_DISTFILES+= qt63dlls-20050115.tar.bz2 \
|
|
|
|
# qtextras-20041107.tar.bz2
|
|
|
|
#PLIST_SUB+= QUICKTIME=""
|
|
|
|
#.else
|
2006-10-07 03:49:33 +02:00
|
|
|
PLIST_SUB+= QUICKTIME="@comment "
|
2007-03-13 14:13:50 +01:00
|
|
|
#.endif
|
2006-10-07 03:49:33 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_REALPLAYER)
|
|
|
|
ADDITIONAL_CODECS_DISTFILES+= rp9codecs-20050115.tar.bz2 \
|
|
|
|
rp9codecs-win32-20050115.tar.bz2
|
|
|
|
PLIST_SUB+= REALPLAYER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= REALPLAYER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-10-09 17:52:17 +02:00
|
|
|
post-extract:
|
2006-12-04 23:29:37 +01:00
|
|
|
@cd ${WRKDIR}/all-20061022 && \
|
2006-10-07 03:49:33 +02:00
|
|
|
${RM} ${REMOVE_CODECS_FILES}
|
2003-01-10 21:07:15 +01:00
|
|
|
.for file in ${ADDITIONAL_CODECS_DISTFILES}
|
|
|
|
@cd ${WRKDIR} && ${TAR} xyf \
|
2003-08-03 22:39:53 +02:00
|
|
|
${DISTDIR}/${DIST_SUBDIR}/${file}
|
2003-01-10 21:07:15 +01:00
|
|
|
.endfor
|
2003-03-31 01:16:27 +02:00
|
|
|
@${MKDIR} ${WRKSRC}
|
2003-01-10 21:07:15 +01:00
|
|
|
.for dir in ${ADDITIONAL_CODECS_WRKSRC}
|
|
|
|
@${INSTALL} ${WRKDIR}/${dir}/* ${WRKSRC}
|
|
|
|
.endfor
|
2000-10-09 17:52:17 +02:00
|
|
|
|
2001-02-13 04:05:49 +01:00
|
|
|
do-install:
|
2000-10-09 17:52:17 +02:00
|
|
|
@${MKDIR} ${PREFIX}/lib/win32
|
2004-12-15 23:20:04 +01:00
|
|
|
@${CHMOD} 0755 ${PREFIX}/lib/win32
|
2006-11-21 23:38:52 +01:00
|
|
|
.if !defined(WITHOUT_REALPLAYER)
|
2002-01-17 20:42:01 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/lib/win32
|
2006-11-21 23:38:52 +01:00
|
|
|
.else
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*[^0] ${PREFIX}/lib/win32
|
|
|
|
.endif
|
2001-10-01 15:52:16 +02:00
|
|
|
# marker file
|
|
|
|
@${CP} /dev/null ${PREFIX}/lib/win32/${PKGNAME}
|
|
|
|
@${CHMOD} 0444 ${PREFIX}/lib/win32/${PKGNAME}
|
2000-10-09 17:52:17 +02:00
|
|
|
|
2006-10-07 03:49:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|