09f9633cb6
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which has now moved from GCC 6 to GCC 7 by default. This includes ports - featuring USE_GCC=yes or USE_GCC=any, - featuring USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and those - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x, c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib. PR: 222542
66 lines
2.1 KiB
Makefile
66 lines
2.1 KiB
Makefile
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= freeimage
|
|
PORTVERSION= 3.16.0
|
|
PORTREVISION= 6
|
|
# Version 3.17.0 is available, but does not build on i386 (and probably
|
|
# other 32-bit arches) without some not-quite-trivial patching. If one
|
|
# decides to update the port, please make sure 32-bit builds are tested!
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple C/C++ bitmap graphics library
|
|
|
|
BROKEN_mips= fails to compile: opcode not supported on this processor: mips3 (mips3) `madd $16,$6'
|
|
BROKEN_mips64= fails to compile: opcode not supported on this processor: mips3 (mips3) 'madd $4,$5'
|
|
|
|
USES= dos2unix gmake zip
|
|
DOS2UNIX_FILES= Source/LibOpenJPEG/opj_malloc.h \
|
|
Source/LibRawLite/dcraw/dcraw.c \
|
|
Source/LibRawLite/internal/dcraw_common.cpp
|
|
USE_LDCONFIG= yes
|
|
WRKSRC= ${WRKDIR}/FreeImage
|
|
MAKE_ARGS= CC="${CC}" CPP="${CPP}" CXX="${CXX}"
|
|
|
|
CFLAGS+= -DPNG_ARM_NEON_OPT=0 -fexceptions -fvisibility=hidden
|
|
CFLAGS_aarch64= -fPIC
|
|
CFLAGS_amd64= -fPIC
|
|
CFLAGS_armv7= -fPIC
|
|
|
|
PLIST_FILES= include/FreeImage.h \
|
|
include/FreeImagePlus.h \
|
|
lib/libfreeimage.a \
|
|
lib/libfreeimage-${PORTVERSION}.so \
|
|
lib/libfreeimage.so.3 \
|
|
lib/libfreeimage.so \
|
|
lib/libfreeimageplus.a \
|
|
lib/libfreeimageplus-${PORTVERSION}.so \
|
|
lib/libfreeimageplus.so.3 \
|
|
lib/libfreeimageplus.so
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == sparc64
|
|
USES+= compiler:c++0x
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-o root -g root ||' \
|
|
${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
|
|
|
|
post-build:
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile.fip ${_MAKE_JOBS} \
|
|
${MAKE_ARGS} -C ${BUILD_WRKSRC}
|
|
|
|
post-install:
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile.fip ${MAKE_ARGS} \
|
|
-C ${INSTALL_WRKSRC} ${INSTALL_TARGET}
|
|
${LN} -sf libfreeimageplus.so.3 \
|
|
${STAGEDIR}${PREFIX}/lib/libfreeimageplus.so
|
|
${LN} -sf libfreeimageplus-${PORTVERSION}.so \
|
|
${STAGEDIR}${PREFIX}/lib/libfreeimageplus.so.3
|
|
|
|
.include <bsd.port.mk>
|