mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
214edaa40d
Reported by: portscout
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
PORTNAME= zimg
|
|
DISTVERSIONPREFIX= release-
|
|
DISTVERSION= 3.0.5
|
|
CATEGORIES= graphics
|
|
PKGNAMEPREFIX= ${GH_ACCOUNT}-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Scaling, colorspace conversion, and dithering library
|
|
WWW= https://github.com/sekrit-twc/zimg
|
|
|
|
LICENSE= WTFPL
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sekrit-twc
|
|
|
|
CONFLICTS_INSTALL= zimg # include/zimg.h
|
|
|
|
USES= autoreconf compiler:c++11-lib gmake libtool pathfix
|
|
EXCLUDE= googletest sha1
|
|
EXTRACT_AFTER_ARGS= ${EXCLUDE:S,^,--exclude test/extra/,}
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES TEST
|
|
|
|
OPTIONS_DEFINE_amd64= SIMD
|
|
OPTIONS_DEFINE_i386= SIMD
|
|
OPTIONS_DEFAULT_amd64= SIMD
|
|
OPTIONS_DEFAULT_i386= SIMD # runtime detection
|
|
|
|
EXAMPLES_CONFIGURE_ENABLE= example
|
|
EXAMPLES_MAKE_ARGS= exampledir="${EXAMPLESDIR}"
|
|
EXAMPLES_MAKE_ARGS_OFF= dist_example_DATA= dist_examplemisc_DATA=
|
|
|
|
SIMD_CONFIGURE_ENABLE= x86simd
|
|
|
|
TEST_BUILD_DEPENDS= googletest>=1.6.0:devel/googletest
|
|
TEST_USES= localbase
|
|
TEST_CONFIGURE_ENABLE= unit-test
|
|
TEST_TEST_TARGET= check VERBOSE=1
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/x86_64/&|amd64/g' \
|
|
${WRKSRC}/configure.ac
|
|
@${REINPLACE_CMD} -e 's/-O2 //' \
|
|
-e '/dist_doc_DATA/d' \
|
|
${WRKSRC}/Makefile.am
|
|
|
|
pre-install-TEST-on: do-test
|
|
|
|
.include <bsd.port.mk>
|