freebsd-ports/multimedia/vapoursynth-l-smash-works/Makefile
Jan Beich 84e727457f multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed

Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		223057
Exp-run by:	antoine
2017-10-21 06:50:49 +00:00

58 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= l-smash-works
DISTVERSION= 0.0-929 # git rev-list --count HEAD
DISTVERSIONSUFFIX= -gfba174b
PORTREVISION= 2
CATEGORIES= multimedia
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= L-SMASH source plugin for VapourSynth
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth
BUILD_DEPENDS+= ffmpeg>=3.2,1:multimedia/ffmpeg
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
liblsmash.so:multimedia/l-smash
USE_GITHUB= yes
GH_ACCOUNT= VFR-maniac
GH_PROJECT= L-SMASH-Works
USES= gmake pkgconfig shebangfix
EXCLUDE= VSHelper.h VSScript.h VapourSynth.h
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,}
WRKSRC_SUBDIR= VapourSynth
SHEBANG_FILES= configure
bash_CMD= ${SH}
HAS_CONFIGURE= yes
CONFIGURE_ENV= LD="${CC}" REV="${PORTVERSION:E}" \
HASH="${DISTVERSIONSUFFIX:S/^-g//}"
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--extra-cflags="${CPPFLAGS} ${CFLAGS}" \
--extra-ldflags="${LDFLAGS}" \
--extra-libs="${LIBS}"
MAKEFILE= GNUmakefile
MAKE_ARGS= STRIP="${STRIP_CMD}"
CPPFLAGS+= `pkg-config vapoursynth --cflags`
USE_LDCONFIG= yes
DATADIR= ${PREFIX}/lib/vapoursynth
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PLIST_FILES= lib/libvslsmashsource.so.${PORTVERSION:E} \
%%DATADIR%%/libvslsmashsource.so
PORTDOCS= README
post-patch:
@${REINPLACE_CMD} -Ee '/CROSS/!s/^(CC|LD|REV|HASH)=.*/: $${&}/' \
-e 's/pushd/cd/; s/popd/cd -/' \
-e 's/-Os //; /=.*-fexcess-precision/d' \
${WRKSRC}/configure
post-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>