pkgsrc-wip/ffmpeg-snapshot/Makefile
Thomas Klausner 2c132c5e94 Fix configure argument. Update PLIST to today's content.
Use ASCII characters in TODO.
2008-03-12 07:52:33 +00:00

75 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2008/03/12 07:52:33 thomasklausner Exp $
#
DISTNAME= ffmpeg-export-snapshot
PKGNAME= ffmpeg-snapshot-${VERSION}
CATEGORIES= multimedia
MASTER_SITES= http://ffmpeg.mplayerhq.hu/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ccatrian@eml.cc
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
COMMENT= Nightly snapshot of the ffmpeg tool
WRKSRC= ${WRKDIR}/${SRCDIR}
HAS_CONFIGURE= yes
NO_CHECKSUM= yes
CONFIGURE_ARGS+= --enable-gpl
CONFIGURE_ARGS+= --enable-memalign-hack
CONFIGURE_ARGS+= --enable-swscale
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFLICTS+= ffmpeg-devel-[0-9]*
CONFLICTS+= ffmpeg-[0-9]*
# XXX: doesn't work?
PKGCONFIG_OVERRIDE= libavutil.pc libavcodec.pc libavformat.pc \
libavdevice.pc libswscale.pc
REPLACE_PERL+= doc/texi2pod.pl
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
#USE_LIBTOOL= YES
.include "../../mk/bsd.prefs.mk"
TODAY!= ${DATE} -u +%Y-%m-%d
.if exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
# Fetch the date of the snapshot from file
. if ${OPSYS} != "DragonFly"
DISTDATE!= tar jtf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
2>/dev/null | head -1 | cut -f 3-5 -d "-";
. else
DISTDATE!= gtar ytf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
2>/dev/null | head -1 | cut -f 3-5 -d "-";
. endif
.else
DISTDATE= ${TODAY}
.endif
.include "options.mk"
# Appends today's date to the build
SRCDIR= ffmpeg-export-${TODAY}
VERSION!= ${ECHO} ${TODAY} | ${SED} -e "s/-//g"
# Checking if distfile is recent.
.if empty(PKG_OPTIONS:Mold-dist)
post-fetch:
@if [ -f ${DISTDIR}/${DISTFILES:Q} ]; then \
if [ ${DISTDATE} = ${TODAY} ]; then \
${PHASE_MSG} "Distfile is from today." ; \
else \
${ECHO} "Distfile is dated from ${DISTDATE}." ; \
${ECHO} "Please distclean and fetch distfile again," ; \
${ECHO} "or set PKG_OPTIONS.ffmpeg-snapshot=old-dist\
option to build anyway." ; \
exit 1; \
fi \
fi
.endif
.include "../../mk/bsd.pkg.mk"