freebsd-ports/graphics/vapoursynth-fmtconv/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= fmtconv
PORTVERSION= r20
PORTREVISION= 2
CATEGORIES= graphics
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Format conversion tools for Vapoursynth
LICENSE= WTFPL
BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VapourSynth.h:multimedia/vapoursynth
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= https://github.com/EleonoreMizo/fmtconv/issues/8
USE_GITHUB= yes
GH_ACCOUNT= EleonoreMizo
USES= autoreconf compiler:c++11-lib gmake libtool pkgconfig
EXCLUDE= VapourSynth.h *.txt
EXTRACT_AFTER_ARGS= ${EXCLUDE:S,^,--exclude ,}
WRKSRC_SUBDIR= build/unix
PATCH_WRKSRC= ${WRKSRC:H:H}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir="${DATADIR}"
CPPFLAGS+= `pkg-config vapoursynth --cflags`
INSTALL_TARGET= install-strip
DATADIR= ${PREFIX}/lib/vapoursynth
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PLIST_FILES= %%DATADIR%%/libfmtconv.so
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's/-O3 //' ${WRKSRC}/Makefile.am
post-install:
(cd ${PATCH_WRKSRC}/doc && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>