aboutsummaryrefslogtreecommitdiffstats
path: root/math/abs
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-02-17 08:32:48 +0800
committerleeym <leeym@FreeBSD.org>2003-02-17 08:32:48 +0800
commitbb7a355e1afb8af9c1fe7533eb8cd3d4918d0bf4 (patch)
tree5b7e1d0376585cb8945fd1c6b5dfe01a0ad57026 /math/abs
parent038c92aa06707286e120c59ea2cd65d0ff5e572b (diff)
downloadfreebsd-ports-gnome-bb7a355e1afb8af9c1fe7533eb8cd3d4918d0bf4.tar.gz
freebsd-ports-gnome-bb7a355e1afb8af9c1fe7533eb8cd3d4918d0bf4.tar.zst
freebsd-ports-gnome-bb7a355e1afb8af9c1fe7533eb8cd3d4918d0bf4.zip
update to abs-0908
PR: 48337 Submitted by: Gianmarco Giovannelli <gmarco@giovannelli.it>
Diffstat (limited to 'math/abs')
-rw-r--r--math/abs/Makefile7
-rw-r--r--math/abs/distinfo2
-rw-r--r--math/abs/files/patch-aa22
-rw-r--r--math/abs/files/patch-ad6
-rw-r--r--math/abs/files/patch-ae6
-rw-r--r--math/abs/pkg-descr2
6 files changed, 25 insertions, 20 deletions
diff --git a/math/abs/Makefile b/math/abs/Makefile
index a6018e965aaf..8bc1d8ac05b5 100644
--- a/math/abs/Makefile
+++ b/math/abs/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= abs
-PORTVERSION= 0.8
+PORTVERSION= 0908
CATEGORIES= math
MASTER_SITES= http://www.ping.be/bertin/ \
http://www.giovannelli.it/~gmarco/files/
@@ -16,9 +16,12 @@ MAINTAINER= gmarco@giovannelli.it
USE_XLIB= yes
USE_XPM= yes
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/abs-src-0.908
post-patch:
- @${PERL} -pi -e 's,strcasestr,strcasestr_,' ${WRKSRC}/Database/cell.c
+ @${REINPLACE_CMD} -e 's/trcasestr/strcasestr_/g' < ${WRKSRC}/Database/cell.c >${WRKSRC}/Database/cell.c.new
+ @${MV} ${WRKSRC}/Database/cell.c.new ${WRKSRC}/Database/cell.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/abs ${PREFIX}/bin
diff --git a/math/abs/distinfo b/math/abs/distinfo
index a4e9c44cbafd..984b347ee6eb 100644
--- a/math/abs/distinfo
+++ b/math/abs/distinfo
@@ -1 +1 @@
-MD5 (abs-src-0.8.tar.gz) = 421faf4cc2f3a82907cfe012e35e3d37
+MD5 (abs-src-0908.tar.gz) = 5a57fe5fa0d7cfaff988ad28fefe13f7
diff --git a/math/abs/files/patch-aa b/math/abs/files/patch-aa
index c249b8625313..acecf1c110ea 100644
--- a/math/abs/files/patch-aa
+++ b/math/abs/files/patch-aa
@@ -1,14 +1,15 @@
---- Makefile.orig Thu Nov 16 04:59:20 2000
-+++ Makefile Fri Nov 17 03:29:05 2000
-@@ -1,28 +1,28 @@
+--- Makefile.orig Sun Nov 11 20:24:35 2001
++++ Makefile Sun Feb 9 17:46:02 2003
+@@ -1,29 +1,28 @@
CURRENT_DIR = .
--SUBDIRS = Xpm ABV X11 Kernel Plot Database Fig Interface X11/xedit SAMCEF
+-SUBDIRS = Xpm ABV X11 Kernel Plot Database Fig Interface X11/xedit
+SUBDIRS = ABV X11 Kernel Plot Database Fig Interface X11/xedit SAMCEF
- SUBDIRS2 = ABV X11 Kernel Plot Database Fig Interface
+-SUBDIRS2 = ABV X11 Kernel Plot Database Fig Interface
-MAKE = make
++SUBDIRS2 = ABV X11 Kernel Plot Database Fig Interface
+MAKE ?= make
#for linux and aix LIBS = -L /lib/X11 -L /usr/X11R6/lib -lXaw -lX11 -lm -lXt -lXmu -lXext
@@ -19,9 +20,10 @@
+LIBS = -L${X11BASE}/lib -lXaw -lX11 -lm -lXt -lXmu -lXext -lXpm
#for hp DEFINE = -D_HPUX_SOURCE
+-#for AIX DEFINE = -D_AIX_SOURCE
DEFINE =
--CFLAGS = -O2
+-CFLAGS = '-O2 -Wall '
+CFLAGS ?= -O2
#for hp IncludeDir = /usr/contrib/X11R6/include
@@ -30,23 +32,23 @@
+IncludeDir = ${X11BASE}/include
#for hp Ccompiler = c89
--Ccompiler = cc
+-Ccompiler = cc
+Ccompiler = ${CC}
all::
rm -f ./abs;\
-@@ -31,12 +31,12 @@
+@@ -32,12 +31,12 @@
if [ -d $$i ] ; \
then \
(cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
-- $(MAKE) TOPCFLAGS=$(CFLAGS) IncludeDir=$(IncludeDir) Ccompiler=$(Ccompiler) DEFINE=$(DEFINE) all); \
+- $(MAKE) TOPCFLAGS=$(CFLAGS) IncludeDir=$(IncludeDir) Ccompiler=$(Ccompiler) DEFINE=$(DEFINE) ); \
+ $(MAKE) TOPCFLAGS="$(CFLAGS)" IncludeDir="$(IncludeDir)" Ccompiler="$(Ccompiler)" DEFINE="$(DEFINE)" all); \
fi \
done
- cc -o abs ./Plot/*.o ./ABV/*.o \
+ ${CC} -o abs ./Plot/*.o ./ABV/*.o \
Fig/*.o Interface/*.o X11/xedit/*.o \
-- ./Kernel/*.o ./X11/*.o ./Database/*.o ./Xpm/libxpm.a\
+- ./Kernel/*.o ./X11/*.o ./Database/*.o ./Xpm/libxpm.a \
+ ./Kernel/*.o ./X11/*.o ./Database/*.o\
$(LIBS) $(DEFINE)
diff --git a/math/abs/files/patch-ad b/math/abs/files/patch-ad
index 1c9cd4cb738e..5ff670f5d79c 100644
--- a/math/abs/files/patch-ad
+++ b/math/abs/files/patch-ad
@@ -1,6 +1,6 @@
---- X11/button.h.orig Thu Nov 16 06:10:42 2000
-+++ X11/button.h Fri Nov 17 03:19:31 2000
-@@ -28,7 +28,7 @@
+--- X11/button.h.orig Sun Nov 11 20:24:37 2001
++++ X11/button.h Sun Feb 9 15:05:21 2003
+@@ -52,7 +52,7 @@
#define WIDGET_BUTTON_H
#include "param.h"
diff --git a/math/abs/files/patch-ae b/math/abs/files/patch-ae
index 33cd135015c9..5d72111c4c70 100644
--- a/math/abs/files/patch-ae
+++ b/math/abs/files/patch-ae
@@ -1,6 +1,6 @@
---- X11/popnindex.h.orig Thu Nov 16 06:10:42 2000
-+++ X11/popnindex.h Fri Nov 17 03:20:13 2000
-@@ -29,7 +29,7 @@
+--- X11/popnindex.h.orig Sun Nov 11 20:24:37 2001
++++ X11/popnindex.h Sun Feb 9 15:05:54 2003
+@@ -53,7 +53,7 @@
#include <stdio.h>
#include "param.h"
diff --git a/math/abs/pkg-descr b/math/abs/pkg-descr
index 2f2dc555b652..40634cd63bdb 100644
--- a/math/abs/pkg-descr
+++ b/math/abs/pkg-descr
@@ -5,7 +5,7 @@ syntax as Microsoft Visual Basic.
Author : Andre.Bertin@ping.be
WWW: http://www.ping.be/bertin/abs.shtml
-Distfile: abs-src-0.8.tar.gz (287 kb)
+Distfile: abs-src-0.908.tar.gz (288 kb)
Ported to FreeBSD by:
- Gianmarco Giovannelli (gmarco@giovannelli.it)