summaryrefslogtreecommitdiff
path: root/graphics/ida
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-21 13:26:23 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-21 13:26:23 +0000
commit9e1e7be8012348fa469779175cb15e6996926d90 (patch)
tree1669f5ad02b03c98510d4b3fb4f42607c917c2d4 /graphics/ida
parent- update to 1.25 (diff)
Add ida, a small and fast image viewer, motif-based. Some basic editing
functions are available too. PR: ports/70741 Submitted by: Andrey Slusar <anray@inet.ua>
Notes
Notes: svn path=/head/; revision=116938
Diffstat (limited to 'graphics/ida')
-rw-r--r--graphics/ida/Makefile51
-rw-r--r--graphics/ida/distinfo2
-rw-r--r--graphics/ida/files/patch-GNUmakefile13
-rw-r--r--graphics/ida/files/patch-mk::Autoconf.mk11
-rw-r--r--graphics/ida/files/patch-mk::Variables.mk17
-rw-r--r--graphics/ida/pkg-descr4
6 files changed, 98 insertions, 0 deletions
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 <anray@inet.ua>
+#
+# $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 <bsd.port.pre.mk>
+
+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 <bsd.port.post.mk>
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/