2013-01-30 15:13:20 +01:00
|
|
|
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
|
2005-09-05 00:25:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= freeimage
|
2014-06-12 10:49:38 +02:00
|
|
|
PORTVERSION= 3.16.0
|
2005-09-05 00:25:41 +02:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
|
2005-09-05 00:25:41 +02:00
|
|
|
DISTNAME= FreeImage${PORTVERSION:S/.//g}
|
|
|
|
|
2014-12-10 23:29:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-05-09 18:46:32 +02:00
|
|
|
COMMENT= Simple C/C++ bitmap graphics library
|
2005-09-05 00:25:41 +02:00
|
|
|
|
2014-06-12 10:49:38 +02:00
|
|
|
USES= dos2unix gmake zip
|
2013-12-20 13:55:36 +01:00
|
|
|
DOS2UNIX_FILES= Source/LibOpenJPEG/opj_malloc.h
|
2008-04-02 00:11:32 +02:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-20 10:00:38 +01:00
|
|
|
WRKSRC= ${WRKDIR}/FreeImage
|
2014-05-20 21:32:39 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" CPP="${CPP}" CXX="${CXX}"
|
2010-12-20 10:00:38 +01:00
|
|
|
|
2013-05-09 18:46:32 +02:00
|
|
|
CFLAGS+= -fexceptions -fvisibility=hidden
|
2014-06-12 10:49:38 +02:00
|
|
|
CFLAGS_amd64= -fPIC
|
2012-02-06 12:44:40 +01:00
|
|
|
|
2010-12-20 10:00:38 +01:00
|
|
|
PLIST_FILES= include/FreeImage.h \
|
2013-05-09 18:46:32 +02:00
|
|
|
include/FreeImagePlus.h \
|
2010-12-20 10:00:38 +01:00
|
|
|
lib/libfreeimage.a \
|
|
|
|
lib/libfreeimage-${PORTVERSION}.so \
|
|
|
|
lib/libfreeimage.so.3 \
|
2013-05-09 18:46:32 +02:00
|
|
|
lib/libfreeimage.so \
|
|
|
|
lib/libfreeimageplus.a \
|
|
|
|
lib/libfreeimageplus-${PORTVERSION}.so \
|
|
|
|
lib/libfreeimageplus.so.3 \
|
|
|
|
lib/libfreeimageplus.so
|
2005-09-05 00:25:41 +02:00
|
|
|
|
2014-06-17 19:45:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == amd64
|
|
|
|
USES+= compiler:c++0x
|
|
|
|
.endif
|
|
|
|
|
2008-09-24 23:12:05 +02:00
|
|
|
post-patch:
|
2014-01-27 10:13:02 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-o root -g root ||' \
|
2013-05-09 18:46:32 +02:00
|
|
|
${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
|
|
|
|
|
|
|
|
post-build:
|
2014-06-12 10:49:38 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f Makefile.fip ${_MAKE_JOBS} \
|
|
|
|
${MAKE_ARGS} -C ${BUILD_WRKSRC}
|
2013-05-09 18:46:32 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-06-12 10:49:38 +02: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>
|