Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 16:46:33 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317740 - head/graphics/freeimage
Message-ID:  <201305091646.r49GkXUq046441@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Thu May  9 16:46:32 2013
New Revision: 317740
URL: http://svnweb.freebsd.org/changeset/ports/317740

Log:
  - Install the C++ wrapper FreeImagePlus as well
  - Fix COMMENT and pkg-descr
  - Bump PORTREVISION
  
  PR:		178450
  Submitted by:	thierry

Modified:
  head/graphics/freeimage/Makefile
  head/graphics/freeimage/pkg-descr   (contents, props changed)

Modified: head/graphics/freeimage/Makefile
==============================================================================
--- head/graphics/freeimage/Makefile	Thu May  9 16:45:46 2013	(r317739)
+++ head/graphics/freeimage/Makefile	Thu May  9 16:46:32 2013	(r317740)
@@ -3,12 +3,13 @@
 
 PORTNAME=	freeimage
 PORTVERSION=	3.15.4
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
 DISTNAME=	FreeImage${PORTVERSION:S/.//g}
 
 MAINTAINER=	gahr@FreeBSD.org
-COMMENT=	An open source graphics library
+COMMENT=	Simple C/C++ bitmap graphics library
 
 USE_ZIP=	yes
 USE_DOS2UNIX=	Source/LibOpenJPEG/opj_malloc.h
@@ -16,13 +17,18 @@ USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 WRKSRC=		${WRKDIR}/FreeImage
 
-CFLAGS+= -fexceptions -fvisibility=hidden
+CFLAGS+=	-fexceptions -fvisibility=hidden
 
 PLIST_FILES=	include/FreeImage.h \
+		include/FreeImagePlus.h \
 		lib/libfreeimage.a \
 		lib/libfreeimage-${PORTVERSION}.so \
 		lib/libfreeimage.so.3 \
-		lib/libfreeimage.so
+		lib/libfreeimage.so \
+		lib/libfreeimageplus.a \
+		lib/libfreeimageplus-${PORTVERSION}.so \
+		lib/libfreeimageplus.so.3 \
+		lib/libfreeimageplus.so
 
 .include <bsd.port.pre.mk>
 
@@ -32,6 +38,14 @@ CFLAGS+=	-fPIC
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
-		${WRKSRC}/Makefile.gnu
+		${WRKSRC}/Makefile.gnu ${WRKSRC}/Makefile.fip
+
+post-build:
+	cd ${WRKSRC} && ${GMAKE} -f Makefile.fip
+
+post-install:
+	cd ${WRKSRC} && ${GMAKE} -f Makefile.fip ${INSTALL_TARGET}
+	${LN} -s libfreeimageplus-${PORTVERSION} ${PREFIX}/lib/libfreeimageplus.so.3
+	${LN} -s libfreeimageplus-${PORTVERSION} ${PREFIX}/lib/libfreeimageplus.so
 
 .include <bsd.port.post.mk>

Modified: head/graphics/freeimage/pkg-descr
==============================================================================
--- head/graphics/freeimage/pkg-descr	Thu May  9 16:45:46 2013	(r317739)
+++ head/graphics/freeimage/pkg-descr	Thu May  9 16:46:32 2013	(r317740)
@@ -1,6 +1,7 @@
 FreeImage is an open source library project for developers who would like to
 support popular graphics image formats like PNG, BMP, JPEG, TIFF, and others
 as needed by today's multimedia applications.  FreeImage is easy to use,
-fast, multithreading safe, and cross-platform.
+fast, multithreading safe, and cross-platform. This port includes both the
+original C interface and the C++ wrapper FreeImagePlus.
 
 WWW: http://freeimage.sourceforge.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305091646.r49GkXUq046441>