# $FreeBSD: head/graphics/vapoursynth-waifu2x-w2xc/Makefile 414371 2016-05-01 00:38:54Z jbeich $ PORTNAME= waifu2x-w2xc DISTVERSION= r6 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 CPPFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 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 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