Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2005 04:33:20 GMT
From:      "Choe, Cheng-Dae" <whitekid@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/85552: new port: graphics/freeimage: open source graphic library
Message-ID:  <200509010433.j814XKFh017867@www.freebsd.org>
Resent-Message-ID: <200509010440.j814e3Qf061693@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         85552
>Category:       ports
>Synopsis:       new port: graphics/freeimage: open source graphic library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 01 04:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     "Choe, Cheng-Dae"
>Release:        FreeBSD 6.0-BETA3 i386
>Organization:
>Environment:
System: FreeBSD w.comdongin.com 6.0-BETA3 FreeBSD 6.0-BETA3 #0: Tue Aug 30 19:55:33 KST 2005 root@w.comdongin.com:/usr/obj/data/src/sys/CDI i386
>Description:
>From homepage:
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, compatible with all 32-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).

>How-To-Repeat:
      N/A
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	freeimage
#	freeimage/pkg-descr
#	freeimage/Makefile
#	freeimage/pkg-plist
#	freeimage/distinfo
#	freeimage/files
#	freeimage/files/patch-Makefile
#
echo c - freeimage
mkdir -p freeimage > /dev/null 2>&1
echo x - freeimage/pkg-descr
sed 's/^X//' >freeimage/pkg-descr << 'END-of-freeimage/pkg-descr'
XFreeImage is an Open Source library project for developers who would like to
Xsupport popular graphics image formats like PNG, BMP, JPEG, TIFF and others as
Xneeded by today's multimedia applications. FreeImage is easy to use, fast,
Xmultithreading safe, compatible with all 32-bit versions of Windows, and
Xcross-platform (works both with Linux and Mac OS X).
X
XWWW:	http://freeimage.sf.net
END-of-freeimage/pkg-descr
echo x - freeimage/Makefile
sed 's/^X//' >freeimage/Makefile << 'END-of-freeimage/Makefile'
X# New ports collection makefile for:	freeimage
X# Date created:		2005-09-01
X# Whom:			Choe, Cheng-Dae
X#
X# $FreeBSD$
X#
X
XPORTNAME=	freeimage
XPORTVERSION=	3.7.0
XCATEGORIES=	graphics
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	FreeImage${PORTVERSION:S/.//g}
X
XMAINTAINER=	root@w.comdongin.com
XCOMMENT=	An open source graphics library
X
XWRKSRC=		${WRKDIR}/FreeImage
XUSE_GMAKE=	yes
XUSE_ZIP=	yes
XUSE_REINPLACE=	yes
XINSTALLS_SHLIB=	yes
X
Xpre-install:
X	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
X
X.include <bsd.port.mk>
END-of-freeimage/Makefile
echo x - freeimage/pkg-plist
sed 's/^X//' >freeimage/pkg-plist << 'END-of-freeimage/pkg-plist'
X@comment $FreeBSD$
Xlib/libfreeimage.a
Xlib/libfreeimage-3.7.0.so
Xlib/libfreeimage.so.3
END-of-freeimage/pkg-plist
echo x - freeimage/distinfo
sed 's/^X//' >freeimage/distinfo << 'END-of-freeimage/distinfo'
XMD5 (FreeImage370.zip) = 3bfa59d6b6ea2a6fad024d9223d97dfb
XSIZE (FreeImage370.zip) = 2377410
END-of-freeimage/distinfo
echo c - freeimage/files
mkdir -p freeimage/files > /dev/null 2>&1
echo x - freeimage/files/patch-Makefile
sed 's/^X//' >freeimage/files/patch-Makefile << 'END-of-freeimage/files/patch-Makefile'
X
X$FreeBSD$
X
X--- Makefile.orig
X+++ Makefile
X@@ -8,7 +8,7 @@
X CXX = g++
X AR = ar
X 
X-INSTALLDIR = /usr/lib
X+INSTALLDIR = %%PREFIX%%/lib
X 
X # Converts cr/lf to just lf
X DOS2UNIX = dos2unix
X@@ -55,10 +55,9 @@
X 	$(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES)
X 
X install:
X-	install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
X-	install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
X+	install -m 644 -o root -g wheel $(STATICLIB) $(INSTALLDIR)
X+	install -m 755 -o root -g wheel $(SHAREDLIB) $(INSTALLDIR)
X 	ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
X-	ldconfig
X 
X clean:
X 	rm -f core Dist/*.* u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
END-of-freeimage/files/patch-Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



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