1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/multimedia/win32-codecs/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

79 lines
2.0 KiB
Makefile

# Created by: Holger Lamm
# $FreeBSD$
PORTNAME= win32-codecs
DISTVERSION= 20110131
PORTEPOCH= 1
CATEGORIES= multimedia audio
MASTER_SITES= MPLAYERHQ/releases/codecs \
http://ftp.lug.udel.edu/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
USES= tar:bzip2
ONLY_FOR_ARCHS= i386
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_DEFINE= REALPLAYER
OPTIONS_DEFAULT= REALPLAYER
REALPLAYER_DESC= Install realplayer codec
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MREALPLAYER}
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} ${STAGEDIR}${PREFIX}/lib/win32
.if ${PORT_OPTIONS:MREALPLAYER}
@${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${PREFIX}/lib/win32
.else
@${INSTALL_DATA} ${WRKSRC}/*[^0] ${STAGEDIR}${PREFIX}/lib/win32
.endif
# marker file
@${CP} /dev/null ${STAGEDIR}${PREFIX}/lib/win32/${PKGNAME}
.include <bsd.port.mk>