defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= zimg
|
|
DISTVERSIONPREFIX= release-
|
|
DISTVERSION= 2.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
PKGNAMEPREFIX= ${GH_ACCOUNT}-
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Scaling, colorspace conversion, and dithering library
|
|
|
|
LICENSE= WTFPL
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sekrit-twc
|
|
|
|
CONFLICTS_INSTALL= zimg-[0-9]* # include/zimg.h
|
|
|
|
USES= autoreconf compiler:c++11-lib gmake libtool pathfix
|
|
EXTRACT_AFTER_ARGS= --exclude test/extra
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
|
|
-D_DECLARE_C99_LDBL_MATH # XXX ports/193528
|
|
CPPFLAGS+= ${CPPFLAGS_${CHOSEN_COMPILER_TYPE}_${COMPILER_VERSION}}
|
|
CPPFLAGS_clang_34= -include x86intrin.h # revert 575bd93
|
|
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>
|