freebsd-ports/graphics/libjxr/Makefile
Jan Beich 205ba2f80a graphics/libjxr: lift BROKEN_aarch64 per FreeBSD 11.0 EOL
Here's how the error message actually looked like:

cc  -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel  -o libjpegxr.so.1 -Wl,-soname,libjpegxr.so.1  `NM='nm' NMFLAGS='' lorder encode.So segenc.So strenc.So strFwdTransform.So strPredQuantEnc.So decode.So postprocess.So segdec.So strdec.So strInvTransform.So strPredQuantDec.So JXRTranscode.So adapthuff.So image.So strcodec.So strPredQuant.So strTransform.So perfTimerANSI.So | tsort -q`
strenc.So: In function `StrIOEncInit':
/wrkdirs/usr/ports/graphics/libjxr/work/jxrlib-1.1/image/encode/strenc.c:(.text+0xf18): warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Noticed -Wl,--fatal-warnings? After tmpnam() warning dissapeared, so
did the error.

Reported by:	http://thunderx1.nyi.freebsd.org/data/110arm64-default/438755/logs/errors/jxrlib-1.1.log
Pointy hat to:	linimon (generic excerpt)
Tested on:	11.1 (clang 4.0) and 12.0 (clang 6.0)
2018-01-05 03:41:39 +00:00

40 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= jxrlib
PORTVERSION= 1.1
CATEGORIES= graphics devel
MASTER_SITES= DEBIAN
DISTFILES= jxrlib_${PORTVERSION}.orig.tar.gz \
jxrlib_${PORTVERSION}-6.debian.tar.xz
MAINTAINER= mi@aldan.algebra.com
COMMENT= Library for JPEG XR, a.k.a. Windows MediaTM Photo
LICENSE= BSD2CLAUSE
BROKEN_mips= fails to compile: cc1: unrecognized command line option "-Wno-extra-tokens"
BROKEN_mips64= fails to compile: cc1: unrecognized command line option "-Wno-extra-tokens"
BROKEN_powerpc64= fails to compile: cc1: unrecognized command line option "-Wno-extra-tokens"
USES= dos2unix uidfix
USE_LDCONFIG= yes
MAKEFILE= BSDmakefile # created by do-configure
MAKE_ENV= WRKDIR="${WRKDIR}"
do-configure:
${RM} -f ${WRKSRC}/BSDmakefile
.for d in libjpegxr jxrgluelib JxrEncApp JxrDecApp
${MKDIR} ${WRKSRC}/$d
${LN} -sf ${FILESDIR}/BSDmakefile.$d ${WRKSRC}/$d/BSDmakefile
${ECHO} "SUBDIR+=$d" >> ${WRKSRC}/BSDmakefile
.endfor
${ECHO} '.include <bsd.subdir.mk>' >> ${WRKSRC}/BSDmakefile
post-build:
${MKDIR} ${STAGEDIR}${PREFIX}/include/jxrlib
regression-test test check: build
${SETENV} WRKSRC="${WRKSRC}" ${SH} -x ${FILESDIR}/test.sh
.include <bsd.port.mk>