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>
This commit is contained in:
Pav Lucistnik 2004-08-21 13:26:23 +00:00
parent 2fedd9011a
commit 9e1e7be801
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116938
7 changed files with 99 additions and 0 deletions

View file

@ -165,6 +165,7 @@
SUBDIR += icoconvert
SUBDIR += icod
SUBDIR += icontact
SUBDIR += ida
SUBDIR += imageindex
SUBDIR += imagesort
SUBDIR += imageviewer

51
graphics/ida/Makefile Normal file
View file

@ -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>

2
graphics/ida/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (ida_0.21.tar.gz) = 7a6eeb587508a8b333a7102beeb9a544
SIZE (ida_0.21.tar.gz) = 178043

View file

@ -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 ...

View file

@ -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))

View file

@ -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 :=

4
graphics/ida/pkg-descr Normal file
View file

@ -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/