pascal 6f33cbf65b Update freeimage to 3.15.2, including many SECURITY fixes to the included image
libraries.  Also respect CC, CXX, CFLAGS and CXXFLAGS, get rid of ^M line
endings in the patch and fix "make regress".

ok eric@ (maintainer)
2012-02-27 10:16:26 +00:00

42 lines
893 B
Makefile

# $OpenBSD: Makefile,v 1.2 2012/02/27 10:16:26 pascal Exp $
COMMENT= c++ library for common image format
DISTNAME= FreeImage3152
PKGNAME= freeimage-3.15.2
CATEGORIES= graphics
SHARED_LIBS+= freeimage 2.0
HOMEPAGE= http://freeimage.sourceforge.net/
MAINTAINER= Eric Faurot <eric@openbsd.org>
# GPL / "FreeImage Public Nons^WLicense"
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= stdc++
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freeimage/}
EXTRACT_SUFX= .zip
WRKDIST= ${WRKDIR}/FreeImage
USE_GMAKE= Yes
MAKE_ENV= LIBfreeimage_VERSION=${LIBfreeimage_VERSION} \
CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
MAKE_TARGET= Makefile.gnu
post-extract:
perl -pi -e 's/\015//g' ${WRKSRC}/Makefile.gnu
do-regress:
cd ${WRKSRC}/TestAPI && ${MAKE_PROGRAM}
.include <bsd.port.mk>