Help wanted for a new port: graphics/iv
Eric P. Scott
eps+preq0612 at ana.com
Sun Dec 17 14:28:52 PST 2006
Here's a not-quite-finished port for WolfPack Entertainment's
Image Viewer. Note this is *not* the same as graphics/imageviewer.
Since FreeBSD appeared to be one of its intended target platforms,
and it wasn't already in the Ports Collection, I thought I'd give
it a shot. I got mired in the whole X11BASE vs. LOCALBASE
confusion, and gave up in frustration...
If someone smarter and/or more patient can whip this into shape,
it's all yours.
Notes:
1. It's probably necessary to add -DUSE_BIG_ENDIAN to CFLAGS on
big-endian architectures. The only file this affects is
iv/imgview.c.
2. .bmp (Windows Bitmap) files display as garbage. This might
actually be an imlib problem.
3. IV comes with a 48x48 icon (iv/iv.xpm). Does it make sense to
install it?
-=EPS=-
-------
# 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:
#
# graphics/iv
# graphics/iv/Makefile
# graphics/iv/distinfo
# graphics/iv/pkg-descr
# graphics/iv/files
# graphics/iv/files/patch-aa
# graphics/iv/files/patch-ab
#
echo c - graphics/iv
mkdir -p graphics/iv > /dev/null 2>&1
echo x - graphics/iv/Makefile
sed 's/^X//' >graphics/iv/Makefile << 'END-of-graphics/iv/Makefile'
X# New ports collection makefile for: iv
X# Date created: 17 December 2006
X# Whom: Your Name Here <yourname at example.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= iv
XPORTVERSION= 2.1.2
XCATEGORIES= graphics
XMASTER_SITES= http://wolfpack.twu.net/users/wolfpack/
X
XMAINTAINER= ports at FreeBSD.org
XCOMMENT= Image Viewer Using GTK and Imlib
X
XLIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
X png.5:${PORTSDIR}/graphics/png \
X ungif.5:${PORTSDIR}/graphics/libungif
X
XUSE_BZIP2= yes
XUSE_GMAKE= yes
XUSE_XLIB= yes
XUSE_XPM= yes
XUSE_GNOME= gtk12 imlib
XMAN1= iv.1
XHAS_CONFIGURE= yes
XCONFIGURE_ARGS= FreeBSD --no-colors --prefix=${PREFIX} --disable=libendeavour2
XPLIST_FILES= bin/iv
X
Xpre-patch:
X ${BZIP2_CMD} -dk ${WRKSRC}/iv/iv.1.bz2
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|' ${WRKSRC}/iv/iv.1
X @${REINPLACE_CMD} -e 's|echo -n -e|printf|' \
X ${WRKSRC}/iv/makefile_append.ini
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/iv/iv ${PREFIX}/bin
X ${INSTALL_MAN} ${WRKSRC}/iv/iv.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-graphics/iv/Makefile
echo x - graphics/iv/distinfo
sed 's/^X//' >graphics/iv/distinfo << 'END-of-graphics/iv/distinfo'
XMD5 (iv-2.1.2.tar.bz2) = 2208a2f3d4dfc9ad93205af644550895
XSHA256 (iv-2.1.2.tar.bz2) = 7ca44f3d9dc1f24acd71f7fceeb166c297f52053b16220306416236791bf98c7
XSIZE (iv-2.1.2.tar.bz2) = 708928
END-of-graphics/iv/distinfo
echo x - graphics/iv/pkg-descr
sed 's/^X//' >graphics/iv/pkg-descr << 'END-of-graphics/iv/pkg-descr'
XAn image viewer using the GIMP Toolkit (GTK) and Image Library
X(Imlib).
X
XImage Viewer (also known as IV) allows you to: view any image
Xsupported by Imlib, view text files, view binary files, save
Ximages (convert formats), grab (screenshot), print, rotate, crop,
Xresize, display on desktop, add text (annotate), add/edit/remove
Xcomments (and other embedded content), and open/edit/save
Xanimated images.
X
XAdditional viewing features include pan & zoom with just a click
Xand a drag.
X
XWWW: http://wolfpack.twu.net/IV/
END-of-graphics/iv/pkg-descr
echo c - graphics/iv/files
mkdir -p graphics/iv/files > /dev/null 2>&1
echo x - graphics/iv/files/patch-aa
sed 's/^X//' >graphics/iv/files/patch-aa << 'END-of-graphics/iv/files/patch-aa'
X--- iv/iv.1.orig Thu Dec 14 00:00:00 2006
X+++ iv/iv.1
X@@ -114,12 +114,6 @@
X .TP
X \fB/usr/bin/iv\fR
X Program.
X-.TP
X-\fB/usr/man/man1/iv.1.bz2\fR
X-Manual page.
X-.TP
X-\fB/usr/shared/icons/iv.xpm\fR
X-Icon.
X .SH "ENVIRONMENT VARIABLES"
X .LP
X .TP
END-of-graphics/iv/files/patch-aa
echo x - graphics/iv/files/patch-ab
sed 's/^X//' >graphics/iv/files/patch-ab << 'END-of-graphics/iv/files/patch-ab'
X--- iv/platforms.ini.orig Thu Dec 14 00:00:00 2006
X+++ iv/platforms.ini
X@@ -174,15 +174,18 @@
X CPP = c++
X PlatformSearchPathInclude = /usr/include/
X PlatformSearchPathInclude = /usr/X11R6/include/
X+ PlatformSearchPathInclude = /usr/local/include/
X PlatformSearchPathLib = /lib/
X PlatformSearchPathLib = /usr/lib/
X PlatformSearchPathLib = /usr/X11R6/lib/
X+ PlatformSearchPathLib = /usr/local/lib/
X PlatformSearchPathEtc = /etc/
X PlatformSearchPathEtc = /usr/etc/
X PlatformSearchPathBin = /bin/
X PlatformSearchPathBin = /usr/bin/
X PlatformSearchPathBin = /usr/X11R6/bin/
X- PlatformSearchPathData = /usr/share/icons/
X+ PlatformSearchPathBin = /usr/local/bin/
X+ PlatformSearchPathData = /usr/local/share/icons/
X PlatformFeature = debug
X Description = Just adds -g to the CFLAGS for debugging
X MustExist = No
X@@ -196,7 +199,7 @@
X Description = Uncompressed GIF Library
X MustExist = Preffered
X FeatureCFLAGS = -DHAVE_LIBGIF
X- FeatureLIBS = -lgif
X+ FeatureLIBS = -lungif
X FeatureDepend = libgif-devel
X DependType = Header
X MustExist = Yes
END-of-graphics/iv/files/patch-ab
exit
More information about the freebsd-ports
mailing list