summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-12-16 22:31:46 +0000
committersbd <sbd@pkgsrc.org>2011-12-16 22:31:46 +0000
commit5d41fd5b4a061b6e9db65d0c7d67ddc6e181fa62 (patch)
tree2f2a42cec09508607c71c4283fd31bde8f6a742a /math
parent597e96f57759e1e2033491513fb82efa23043a71 (diff)
downloadpkgsrc-5d41fd5b4a061b6e9db65d0c7d67ddc6e181fa62.tar.gz
Respect CFLAGS and LDFLAGS form pkgsrc.
Bump PKGREVISION
Diffstat (limited to 'math')
-rw-r--r--math/aamath/Makefile4
-rw-r--r--math/aamath/distinfo3
-rw-r--r--math/aamath/patches/patch-Makefile21
3 files changed, 25 insertions, 3 deletions
diff --git a/math/aamath/Makefile b/math/aamath/Makefile
index c3f722c5a83..9a367757772 100644
--- a/math/aamath/Makefile
+++ b/math/aamath/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2011/09/05 20:20:27 cheusov Exp $
+# $NetBSD: Makefile,v 1.4 2011/12/16 22:31:46 sbd Exp $
#
DISTNAME= aamath-0.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= http://fuse.superglue.se/aamath/
diff --git a/math/aamath/distinfo b/math/aamath/distinfo
index 4c4ce0995fd..d55b42edf37 100644
--- a/math/aamath/distinfo
+++ b/math/aamath/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2011/11/25 22:04:43 joerg Exp $
+$NetBSD: distinfo,v 1.3 2011/12/16 22:31:46 sbd Exp $
SHA1 (aamath-0.3.tar.gz) = dc68abaf2131c73ddb1a520c95d65596e30f1b0a
RMD160 (aamath-0.3.tar.gz) = 396ce7213a30a5c133dc964e2a531fe28a24b6c0
Size (aamath-0.3.tar.gz) = 21894 bytes
+SHA1 (patch-Makefile) = cafb2a32db8fa0e93e0e177c2e67fdc6790c4390
SHA1 (patch-expr.cc) = efe3ee16970325c770c8e8e2fe200bbfada0cc1c
SHA1 (patch-expr.h) = 3d0382a90b8c88f18a639d87e7cc1253fafda4fb
diff --git a/math/aamath/patches/patch-Makefile b/math/aamath/patches/patch-Makefile
new file mode 100644
index 00000000000..d7c4464a9c8
--- /dev/null
+++ b/math/aamath/patches/patch-Makefile
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile,v 1.1 2011/12/16 22:31:47 sbd Exp $
+
+--- Makefile.orig 2005-06-22 20:12:18.000000000 +0000
++++ Makefile
+@@ -3,12 +3,13 @@ LD = g++
+ CXXFILES = parser.cc lexer.cc expr.cc canvas.cc aamath.cc
+ OBJS = $(CXXFILES:.cc=.o)
+ TARGET = aamath
+-CFLAGS = -Wall -O2 -g -DUSE_READLINE
+-LFLAGS = -g
++CFLAGS ?= -Wall -O2 -g
++CFLAGS += -DUSE_READLINE
++LDFLAGS ?= -g
+ LIBS = -lreadline -ltermcap
+
+ $(TARGET): $(OBJS)
+- $(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
++ $(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
+
+ parser.cc parser.h: parser.y
+ yacc -d parser.y && mv y.tab.c parser.cc && mv y.tab.h parser.h