1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/multimedia/win32-codecs/Makefile
Koop Mast 24ce793e23 Fix fetching by updating to 20110131.
Submitted by:	pointyhat and many others.
2011-02-24 19:55:47 +00:00

87 lines
2.4 KiB
Makefile

# New ports collection makefile for: avifile
# Date created: 16 September 2000
# Whom: Holger Lamm
#
# $FreeBSD$
#
PORTNAME= win32-codecs
DISTVERSION= 20110131
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-${DISTVERSION}.tar.bz2 \
${ADDITIONAL_CODECS_DISTFILES}
DIST_SUBDIR= win32
EXTRACT_ONLY= all-${DISTVERSION}.tar.bz2
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Huge compilation of Win32 binary video codecs
RESTRICTED= Unsure of codec's license
ONLY_FOR_ARCHS= i386
USE_BZIP2= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/w32codec-${DISTVERSION}
PLIST_SUB= PKGNAME=${PKGNAME}
# Used by other ports to detect if this is installed
CODEC_DETECTION_FILE= ${LOCALBASE}/lib/win32/${PKGNAME}
# additional codec packs
ADDITIONAL_CODECS_DISTFILES= xanimdlls-20040626.tar.bz2
# extraction wrksrc
ADDITIONAL_CODECS_WRKSRC= ${DISTFILES:S/.tar.bz2//}
# list of quicktime codecs that will be removed
REMOVE_CODECS_FILES= AvidQTAVUICodec.qtx QuickTimeEssentials.qtx QuickTime.qts \
QuickTimeInternetExtras.qtx qtmlClient.dll BeHereiVideo.qtx
OPTIONS= REALPLAYER "Install realplayer codec" on
.include <bsd.port.pre.mk>
.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
post-extract:
@cd ${WRKDIR}/all-${DISTVERSION} && \
${RM} ${REMOVE_CODECS_FILES}
.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
.if !defined(WITHOUT_REALPLAYER)
@${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/lib/win32
.else
@${INSTALL_DATA} ${WRKSRC}/*[^0] ${PREFIX}/lib/win32
.endif
# marker file
@${CP} /dev/null ${PREFIX}/lib/win32/${PKGNAME}
@${CHMOD} 0444 ${PREFIX}/lib/win32/${PKGNAME}
.include <bsd.port.post.mk>