blob: 3c87e618a83c1d2a4a2b6f878bc3d884691dd0a2 (
plain) (
blame)
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
|
PORTNAME= fmtconv
DISTVERSION= r30
CATEGORIES= graphics
MASTER_SITES= https://github.com/EleonoreMizo/${PORTNAME}/releases/download/${DISTVERSION}/
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= ports@FreeBSD.org
COMMENT= Format conversion tools for Vapoursynth and Avisynth+
WWW= https://github.com/EleonoreMizo/fmtconv
LICENSE= WTFPL
LICENSE_FILES= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= aarch64 amd64
USES= autoreconf compiler:c++14-lang gmake libtool zip
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${PORTNAME}-${DISTVERSION}
WRKSRC_SUBDIR= build/unix
PATCH_WRKSRC= ${WRKSRC:H:H}
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PORTDOCS= *
PLIST_FILES= lib/vapoursynth/lib${PORTNAME}.so
CONFIGURE_ARGS= --libdir="${PREFIX}/lib/vapoursynth"
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
# We need at least AVX2 instructions on amd64
.if !defined(CPUTYPE) && ${ARCH} == "amd64"
CONFIGURE_ENV+= EXTRA_CXXFLAGS=-march=haswell
.endif
post-patch:
@${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \
${WRKSRC}/configure.ac
post-install:
(cd ${PATCH_WRKSRC}/doc && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|