freebsd-ports/graphics/vapoursynth-fmtconv/Makefile
Jan Beich 646ee61254 graphics/vapoursynth-fmtconv: limit to x86 and arm
Based on src/fstb/def.h:
  #if defined (__i386__) || defined (_M_IX86) || defined (_X86_) || defined (_M_X64) || defined (__x86_64__) || defined (__INTEL__)
	  #define fstb_ARCHI	fstb_ARCHI_X86
  #elif defined (__arm__) || defined (__arm) || defined (__arm64__) || defined (__arm64) || defined (_M_ARM) || defined (__aarch64__)
	  #define fstb_ARCHI	fstb_ARCHI_ARM
  #else
	  #error
  #endif
2021-12-04 21:43:02 +00:00

37 lines
823 B
Makefile

PORTNAME= fmtconv
PORTVERSION= r28
CATEGORIES= graphics
PKGNAMEPREFIX= vapoursynth-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Format conversion tools for Vapoursynth and Avisynth+
LICENSE= WTFPL
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
USE_GITHUB= yes
GH_ACCOUNT= EleonoreMizo
USES= autoreconf compiler:c++11-lib gmake libtool
WRKSRC_SUBDIR= build/unix
PATCH_WRKSRC= ${WRKSRC:H:H}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir="${DATADIR}"
INSTALL_TARGET= install-strip
DATADIR= ${PREFIX}/lib/vapoursynth
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PORTDATA= lib${PORTNAME}.so
PORTDOCS= *
OPTIONS_DEFINE= DOCS
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>