[60542] trunk/dports/math/aamath
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 14 23:37:02 PST 2009
Revision: 60542
http://trac.macports.org/changeset/60542
Author: ryandesign at macports.org
Date: 2009-11-14 23:36:59 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
aamath: use MacPorts readline (though we're still not using MacPorts ncurses), make sure we're UsingTheRightCompiler, add license info
Modified Paths:
--------------
trunk/dports/math/aamath/Portfile
trunk/dports/math/aamath/files/patch-Makefile.diff
Modified: trunk/dports/math/aamath/Portfile
===================================================================
--- trunk/dports/math/aamath/Portfile 2009-11-15 07:26:03 UTC (rev 60541)
+++ trunk/dports/math/aamath/Portfile 2009-11-15 07:36:59 UTC (rev 60542)
@@ -5,9 +5,10 @@
name aamath
version 0.3
+revision 1
categories math textproc
platforms darwin
-#license GPLv2
+license GPLv2
maintainers snc openmaintainer
description renders ASCII art from mathematical expressions
long_description Aamath is a program that reads mathematical expressions in \
@@ -18,20 +19,22 @@
homepage http://fuse.superglue.se/aamath/
master_sites ${homepage}
checksums md5 f0e835bd06069b1bdaddd9e9c3447c12
+
+depends_lib port:readline
+
patchfiles patch-Makefile.diff
worksrcdir aamath
use_configure no
-build.env CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+# Override these values in the Makefile.
+build.args CXX=${configure.cxx} \
+ LD=${configure.cxx}
+# The Makefile appends to these values.
+build.env CFLAGS="${configure.cppflags} ${configure.cxxflags}" \
+ LFLAGS="${configure.ldflags}"
-# will be reveiwing this for a port deps on gcc
-# also, readline is a dep
-platform darwin 8 {
- build.args CXX=/usr/bin/g++-4.0 LD=/usr/bin/g++-4.0
-}
-
destroot {
xinstall -m 755 ${worksrcpath}/aamath ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/aamath.1 ${destroot}${prefix}/share/man/man1
Modified: trunk/dports/math/aamath/files/patch-Makefile.diff
===================================================================
--- trunk/dports/math/aamath/files/patch-Makefile.diff 2009-11-15 07:26:03 UTC (rev 60541)
+++ trunk/dports/math/aamath/files/patch-Makefile.diff 2009-11-15 07:36:59 UTC (rev 60542)
@@ -1,20 +1,16 @@
---- Makefile 2005-06-22 22:12:18.000000000 +0200
-+++ Makefile 2005-11-30 22:00:39.000000000 +0100
-@@ -1,11 +1,11 @@
- CXX = g++
--LD = g++
-+LD = $(CXX)
+--- Makefile.orig 2005-06-22 15:12:18.000000000 -0500
++++ Makefile 2009-11-15 01:24:01.000000000 -0600
+@@ -3,8 +3,8 @@
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 -DUSE_READLINE
- LFLAGS = -g
--LIBS = -lreadline -ltermcap
-+LIBS += -lreadline -ltermcap
++LFLAGS += -g
+ LIBS = -lreadline -ltermcap
$(TARGET): $(OBJS)
- $(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
@@ -21,3 +21,6 @@
clean:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/ab429539/attachment-0001.html>
More information about the macports-changes
mailing list