freebsd-ports/graphics/vapoursynth-waifu2x-w2xc/Makefile
Jan Beich e5688543b0 Drop C++11 workaround for GCC < 6 after r449590
lang/gcc5 will expire in ~1 month. If someone still uses lang/gcc48
they should backport C++11 fix instead. QA on GCC architecuters is
currently limited to powerpc64 which uses GCC_DEFAULT.

PR:		193528
2019-09-14 22:01:13 +00:00

51 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= waifu2x-w2xc
DISTVERSION= r6
PORTREVISION= 5
CATEGORIES= graphics
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Waifu2x (waifu2x-converter-cpp) plugin for VapourSynth
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth
LIB_DEPENDS= libw2xc.so:graphics/waifu2x-converter-cpp
USE_GITHUB= yes
GH_ACCOUNT= HomeOfVapourSynthEvolution
GH_PROJECT= VapourSynth-Waifu2x-w2xc
USES= compiler:c++11-lib gmake localbase pkgconfig
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --install="${STAGEDIR}${DATADIR}" \
--cxx="${CXX}" \
--extra-cxxflags="${CPPFLAGS} ${CXXFLAGS}" \
--extra-ldflags="${LDFLAGS}" \
--extra-libs="${LIBS}"
MAKEFILE= GNUmakefile
MAKE_ARGS= STRIP="${STRIP_CMD}"
DATADIR= ${PREFIX}/lib/vapoursynth
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PLIST_FILES= %%DATADIR%%/libwaifu2x-w2xc.so
PORTDATA= models
PORTDOCS= *.md
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's/\*linux\*/*/' \
-e 's/-O3 //; /=.*-mfpmath/d; /-msse/d' \
${WRKSRC}/configure
@${REINPLACE_CMD} '/STRIP/s/-x //' ${WRKSRC}/${MAKEFILE}
post-install:
(cd ${WRKSRC}/Waifu2x-w2xc && ${COPYTREE_SHARE} \
"${PORTDATA}" ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>