From 9e1e7be8012348fa469779175cb15e6996926d90 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 21 Aug 2004 13:26:23 +0000 Subject: Add ida, a small and fast image viewer, motif-based. Some basic editing functions are available too. PR: ports/70741 Submitted by: Andrey Slusar --- graphics/Makefile | 1 + graphics/ida/Makefile | 51 +++++++++++++++++++++++++++++++ graphics/ida/distinfo | 2 ++ graphics/ida/files/patch-GNUmakefile | 13 ++++++++ graphics/ida/files/patch-mk::Autoconf.mk | 11 +++++++ graphics/ida/files/patch-mk::Variables.mk | 17 +++++++++++ graphics/ida/pkg-descr | 4 +++ 7 files changed, 99 insertions(+) create mode 100644 graphics/ida/Makefile create mode 100644 graphics/ida/distinfo create mode 100644 graphics/ida/files/patch-GNUmakefile create mode 100644 graphics/ida/files/patch-mk::Autoconf.mk create mode 100644 graphics/ida/files/patch-mk::Variables.mk create mode 100644 graphics/ida/pkg-descr (limited to 'graphics') diff --git a/graphics/Makefile b/graphics/Makefile index 187350025f8b..1f80ecd14436 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -165,6 +165,7 @@ SUBDIR += icoconvert SUBDIR += icod SUBDIR += icontact + SUBDIR += ida SUBDIR += imageindex SUBDIR += imagesort SUBDIR += imageviewer diff --git a/graphics/ida/Makefile b/graphics/ida/Makefile new file mode 100644 index 000000000000..5eee798be477 --- /dev/null +++ b/graphics/ida/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: ida +# Date created: Thu Aug 19 21:13:58 UTC 2004 +# Whom: Andrey Slusar +# +# $FreeBSD$ +# + +PORTNAME= ida +PORTVERSION= 0.21 +CATEGORIES= graphics +MASTER_SITES= http://dl.bytesex.org/releases/fbida/ +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= anray@inet.ua +COMMENT= Small and fast motif-based image viewer and editor + +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png \ + tiff.4:${PORTSDIR}/graphics/tiff \ + ungif.5:${PORTSDIR}/graphics/libungif + +USE_GMAKE= yes +USE_X_PREFIX= yes +USE_MOTIF= yes +USE_PERL5_BUILD=yes +USE_REINPLACE= yes +WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} +MAKEFILE= ${WRKSRC}/GNUmakefile + +MAN1= ida.1 +PORTDOCS= README TODO INSTALL + +PLIST_FILES= bin/ida lib/X11/app-defaults/Ida + +.include + +post-patch: +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's|PRId32|"d"|g' -e 's|PRIx32|"x"|g' \ + ${WRKSRC}/tiff.c ${WRKSRC}/xwd.c +.endif + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} +.for a in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${a} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/graphics/ida/distinfo b/graphics/ida/distinfo new file mode 100644 index 000000000000..3d6776e15ede --- /dev/null +++ b/graphics/ida/distinfo @@ -0,0 +1,2 @@ +MD5 (ida_0.21.tar.gz) = 7a6eeb587508a8b333a7102beeb9a544 +SIZE (ida_0.21.tar.gz) = 178043 diff --git a/graphics/ida/files/patch-GNUmakefile b/graphics/ida/files/patch-GNUmakefile new file mode 100644 index 000000000000..a1462656531f --- /dev/null +++ b/graphics/ida/files/patch-GNUmakefile @@ -0,0 +1,13 @@ +--- GNUmakefile.old Fri Aug 20 18:02:55 2004 ++++ GNUmakefile Fri Aug 20 18:03:28 2004 +@@ -11,8 +11,8 @@ + LDLIBS += -lm + + # for X11 + Motif +-CFLAGS += -I/usr/X11R6/include +-LDFLAGS += -L/usr/X11R6/$(LIB) ++CFLAGS += -I$(X11BASE)/include ++LDFLAGS += -L$(X11BASE)/$(LIB) + LDLIBS += -lXm -lXpm -lXt -lXext -lX11 + + # RegEdit.c is good old K&R ... diff --git a/graphics/ida/files/patch-mk::Autoconf.mk b/graphics/ida/files/patch-mk::Autoconf.mk new file mode 100644 index 000000000000..ecf94ea14a10 --- /dev/null +++ b/graphics/ida/files/patch-mk::Autoconf.mk @@ -0,0 +1,11 @@ +--- mk/Autoconf.mk.old Fri Aug 20 21:07:52 2004 ++++ mk/Autoconf.mk Fri Aug 20 21:08:23 2004 +@@ -107,7 +107,7 @@ + ac_resdir = $(shell \ + $(call ac_init,for X11 app-defaults prefix);\ + $(call ac_s_cmd, test -d /etc/X11/app-defaults &&\ +- echo "/etc/X11" || echo "/usr/X11R6/lib/X11");\ ++ echo "/etc/X11" || echo "$(PREFIX)/lib/X11");\ + $(call ac_fini)) + + diff --git a/graphics/ida/files/patch-mk::Variables.mk b/graphics/ida/files/patch-mk::Variables.mk new file mode 100644 index 000000000000..bcfb6bda998b --- /dev/null +++ b/graphics/ida/files/patch-mk::Variables.mk @@ -0,0 +1,17 @@ +--- mk/Variables.mk.orig Sun Feb 22 14:27:19 2004 ++++ mk/Variables.mk Fri Aug 20 19:15:12 2004 +@@ -4,10 +4,10 @@ + # directories + DESTDIR = + srcdir ?= . +-prefix ?= /usr/local +-bindir = $(DESTDIR)$(prefix)/bin +-mandir = $(DESTDIR)$(prefix)/share/man +-locdir = $(DESTDIR)$(prefix)/share/locale ++prefix ?= $(PREFIX) ++bindir = $(DESTDIR)$(PREFIX)/bin ++mandir = $(DESTDIR)$(PREFIX)/man ++locdir = $(DESTDIR)$(PREFIX)/share/locale + + # package + version + empty := diff --git a/graphics/ida/pkg-descr b/graphics/ida/pkg-descr new file mode 100644 index 000000000000..84fa634f4beb --- /dev/null +++ b/graphics/ida/pkg-descr @@ -0,0 +1,4 @@ +Ida is a small and fast image viewer, motif-based. For people who don't want +the KDE/GNOME overhead. Some basic editing functions are available too. + +WWW: http://linux.bytesex.org/fbida/ -- cgit v1.2.3