aboutsummaryrefslogtreecommitdiff
path: root/graphics/aview
diff options
context:
space:
mode:
authorMark Pulford <markp@FreeBSD.org>2001-08-29 11:42:46 +0000
committerMark Pulford <markp@FreeBSD.org>2001-08-29 11:42:46 +0000
commit421f9ce040824d65ec79d7901cd3a13db80a7d4f (patch)
tree38b55480ddfcc1246b1b9801a0a7d423c73d4187 /graphics/aview
parent52ad175276d4391f75fc3ed152c6e5efecaea49c (diff)
downloadports-421f9ce040824d65ec79d7901cd3a13db80a7d4f.tar.gz
ports-421f9ce040824d65ec79d7901cd3a13db80a7d4f.zip
Fixed MASTER_SITES and added WWW. Respect LOCALBASE.
PR: 29824 Submitted by: Kato Tsuguru <tkato@prontomail.com>
Notes
Notes: svn path=/head/; revision=47084
Diffstat (limited to 'graphics/aview')
-rw-r--r--graphics/aview/Makefile19
-rw-r--r--graphics/aview/distinfo2
-rw-r--r--graphics/aview/files/patch-aa19
-rw-r--r--graphics/aview/pkg-descr2
4 files changed, 15 insertions, 27 deletions
diff --git a/graphics/aview/Makefile b/graphics/aview/Makefile
index e85ce3a4445b..0586efc3bd7c 100644
--- a/graphics/aview/Makefile
+++ b/graphics/aview/Makefile
@@ -1,6 +1,6 @@
-# New ports collection Makefile for: aview
-# Date created: Dec 18 1997
-# Whom: frankch@waru.life.nthu.edu.tw
+# New ports collection Makefile for: aview
+# Date created: Dec 18 1997
+# Whom: frankch@waru.life.nthu.edu.tw
#
# $FreeBSD$
#
@@ -8,9 +8,8 @@
PORTNAME= aview
PORTVERSION= 1.2
CATEGORIES= graphics
-MASTER_SITES= ftp://ftp.ta.jcu.cz/pub/aa/ \
- ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= applications
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= aa-project
MAINTAINER= ports@FreeBSD.org
@@ -18,6 +17,12 @@ RUN_DEPENDS= anytopnm:${PORTSDIR}/graphics/netpbm \
convert:${PORTSDIR}/graphics/ImageMagick
LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib
-GNU_CONFIGURE= YES
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-x=no
+
+post-patch:
+ @${PERL} -pi -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \
+ 's|<malloc.h>|<stdlib.h>|g' \
.include <bsd.port.mk>
diff --git a/graphics/aview/distinfo b/graphics/aview/distinfo
index 1d2c16faf6bc..611005bd325f 100644
--- a/graphics/aview/distinfo
+++ b/graphics/aview/distinfo
@@ -1 +1 @@
-MD5 (aview-1.2.tar.gz) = 8c3bc5d64f8b8d290e4d7816a6201bca
+MD5 (aview-1.2.tar.gz) = fe292142753ac85d3994f5b5073993ab
diff --git a/graphics/aview/files/patch-aa b/graphics/aview/files/patch-aa
index ad72cf41075d..0c54ae68c345 100644
--- a/graphics/aview/files/patch-aa
+++ b/graphics/aview/files/patch-aa
@@ -5,22 +5,3 @@
# asciiview - an ascii art image browser script. Front end for aview/aaflip
clear()
{
---- image.c.orig Wed Apr 8 16:34:02 1998
-+++ image.c Wed Apr 8 16:34:43 1998
-@@ -1,5 +1,5 @@
- #include <stdio.h>
--#include <malloc.h>
-+#include <stdlib.h>
-
- int imgwidth, imgheight;
- unsigned char *imgdata;
---- ui.c.orig Wed Apr 8 16:34:09 1998
-+++ ui.c Wed Apr 8 16:34:26 1998
-@@ -1,6 +1,6 @@
- #include <stdio.h>
- #include <ctype.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include <string.h>
- #include <aalib.h>
- #include "shrink.h"
diff --git a/graphics/aview/pkg-descr b/graphics/aview/pkg-descr
index 4cad95303088..0c411b3a2850 100644
--- a/graphics/aview/pkg-descr
+++ b/graphics/aview/pkg-descr
@@ -14,3 +14,5 @@ aaflip: a program to view flip animation using ascii text. Works under X
You could press h to get help. You may also save the pics in various text
format. Thanks to aalib!
+
+WWW: http://aa-project.sourceforge.net/aview/