2013-01-30 14:13:20 +00:00
|
|
|
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
|
2005-09-04 22:25:41 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= freeimage
|
2018-09-06 19:39:45 +00:00
|
|
|
PORTVERSION= 3.18.0
|
2018-09-07 17:14:41 +00:00
|
|
|
PORTREVISION= 1
|
2005-09-04 22:25:41 +00:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
2005-09-04 22:25:41 +00:00
|
|
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
|
|
|
|
2014-12-10 22:29:14 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-05-09 16:46:32 +00:00
|
|
|
COMMENT= Simple C/C++ bitmap graphics library
|
2005-09-04 22:25:41 +00:00
|
|
|
|
2018-09-06 19:39:45 +00:00
|
|
|
LICENSE= FIPL GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_NAME_FIPL= FreeImage Public License
|
|
|
|
LICENSE_FILE_FIPL= ${WRKSRC}/license-fi.txt
|
|
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/license-gplv2.txt
|
|
|
|
LICENSE_FILE_GPLv3= ${WRKSRC}/license-gplv3.txt
|
|
|
|
LICENSE_PERMS_FIPL= dist-mirror pkg-mirror auto-accept
|
|
|
|
|
|
|
|
BROKEN_mips= fails to compile: section referenced in discarded section
|
2018-07-01 09:17:45 +00:00
|
|
|
BROKEN_mips64= fails to compile: opcode not supported on this processor: mips3 (mips3) 'madd $4,$5'
|
|
|
|
|
2014-06-12 08:49:38 +00:00
|
|
|
USES= dos2unix gmake zip
|
2018-09-06 19:39:45 +00:00
|
|
|
USE_LDCONFIG= yes
|
2015-12-13 20:26:24 +00:00
|
|
|
DOS2UNIX_FILES= Source/LibOpenJPEG/opj_malloc.h \
|
|
|
|
Source/LibRawLite/dcraw/dcraw.c \
|
|
|
|
Source/LibRawLite/internal/dcraw_common.cpp
|
2018-09-06 19:39:45 +00:00
|
|
|
|
2010-12-20 09:00:38 +00:00
|
|
|
WRKSRC= ${WRKDIR}/FreeImage
|
2014-05-20 19:32:39 +00:00
|
|
|
MAKE_ARGS= CC="${CC}" CPP="${CPP}" CXX="${CXX}"
|
2018-09-06 19:39:45 +00:00
|
|
|
CFLAGS+= -DPNG_ARM_NEON_OPT=0 -fexceptions -fvisibility=hidden -fPIC
|
|
|
|
CXXFLAGS+= -DPNG_ARM_NEON_OPT=0 -fexceptions -fvisibility=hidden -fPIC
|
2012-02-06 11:44:40 +00:00
|
|
|
|
2010-12-20 09:00:38 +00:00
|
|
|
PLIST_FILES= include/FreeImage.h \
|
2013-05-09 16:46:32 +00:00
|
|
|
include/FreeImagePlus.h \
|
2010-12-20 09:00:38 +00:00
|
|
|
lib/libfreeimage.a \
|
|
|
|
lib/libfreeimage-${PORTVERSION}.so \
|
|
|
|
lib/libfreeimage.so.3 \
|
2013-05-09 16:46:32 +00:00
|
|
|
lib/libfreeimage.so \
|
|
|
|
lib/libfreeimageplus.a \
|
|
|
|
lib/libfreeimageplus-${PORTVERSION}.so \
|
|
|
|
lib/libfreeimageplus.so.3 \
|
|
|
|
lib/libfreeimageplus.so
|
2005-09-04 22:25:41 +00:00
|
|
|
|
2008-09-24 21:12:05 +00:00
|
|
|
post-patch:
|
2018-09-06 19:39:45 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-o root -g root || ; \
|
|
|
|
/^-fPIC/d' ${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
|
2013-05-09 16:46:32 +00:00
|
|
|
|
|
|
|
post-build:
|
2014-06-12 08:49:38 +00:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile.fip ${_MAKE_JOBS} \
|
|
|
|
${MAKE_ARGS} -C ${BUILD_WRKSRC}
|
2013-05-09 16:46:32 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-06-12 08:49:38 +00:00
|
|
|
${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>
|