blob: c47bbddfb49e0da1ce288948c80efab34893c930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $FreeBSD$
PORTNAME= waifu2x-w2xc
DISTVERSION= r6
PORTREVISION= 3
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
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>
|