diff options
author | danfe <danfe@FreeBSD.org> | 2009-03-31 19:08:44 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2009-03-31 19:08:44 +0800 |
commit | 101a6f474762b8f91501a52cb4ae510baf25c6d8 (patch) | |
tree | 2daff451b89fbd64860e0a01aa5465a8fcd10475 /math/aamath | |
parent | ad5b652645d2f4fd58d066967d438496b82fc135 (diff) | |
download | freebsd-ports-gnome-101a6f474762b8f91501a52cb4ae510baf25c6d8.tar.gz freebsd-ports-gnome-101a6f474762b8f91501a52cb4ae510baf25c6d8.tar.zst freebsd-ports-gnome-101a6f474762b8f91501a52cb4ae510baf25c6d8.zip |
- Fix parallel build, mark port as MAKE_JOBS_SAFE
- Cleanup Makefile while here
Diffstat (limited to 'math/aamath')
-rw-r--r-- | math/aamath/Makefile | 15 | ||||
-rw-r--r-- | math/aamath/files/patch-Makefile | 33 |
2 files changed, 32 insertions, 16 deletions
diff --git a/math/aamath/Makefile b/math/aamath/Makefile index 2ddf9a7d85e0..75dc582b7fb1 100644 --- a/math/aamath/Makefile +++ b/math/aamath/Makefile @@ -1,6 +1,6 @@ # New ports collection makefile for: aamath -# Date created: 2005-06-23 -# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru> +# Date created: 2005-06-23 +# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru> # # $FreeBSD$ # @@ -12,17 +12,16 @@ CATEGORIES= math textproc MASTER_SITES= http://fuse.superglue.se/aamath/ MAINTAINER= ports@FreeBSD.org -COMMENT= Aamath is a tool for rendering mathematical expressions to ascii art +COMMENT= Renders ASCII art from mathematical expressions WRKSRC= ${WRKDIR}/${PORTNAME} +MAKE_JOBS_SAFE= yes PLIST_FILES+= bin/${PORTNAME} MAN1= aamath.1 -MAKE_ENV+= LDFLAGS="${LDFLAGS}" -LDFLAGS= -lreadline - do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/aamath ${PREFIX}/bin - @${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/aamath ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 + .include <bsd.port.mk> diff --git a/math/aamath/files/patch-Makefile b/math/aamath/files/patch-Makefile index a3476d1e8e37..1557574f9a77 100644 --- a/math/aamath/files/patch-Makefile +++ b/math/aamath/files/patch-Makefile @@ -1,18 +1,35 @@ ---- Makefile Wed Jun 22 22:12:18 2005 -+++ Makefile.port Tue Sep 6 13:29:09 2005 -@@ -3,9 +3,9 @@ +--- Makefile.orig ++++ Makefile +@@ -1,17 +1,22 @@ +-CXX = g++ +-LD = g++ ++CXX ?= g++ ++LD = $(CXX) CXXFILES = parser.cc lexer.cc expr.cc canvas.cc aamath.cc OBJS = $(CXXFILES:.cc=.o) TARGET = aamath -CFLAGS = -Wall -O2 -g -DUSE_READLINE -+CFLAGS += -Wall -g -DUSE_READLINE - LFLAGS = -g --LIBS = -lreadline -ltermcap -+LIBS = $(LDFLAGS) -ltermcap +-LFLAGS = -g ++CFLAGS += -Wall -DUSE_READLINE + LIBS = -lreadline -ltermcap $(TARGET): $(OBJS) $(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS) -@@ -21,3 +21,5 @@ + +-parser.cc parser.h: parser.y +- yacc -d parser.y && mv y.tab.c parser.cc && mv y.tab.h parser.h ++yacc: parser.y ++ yacc -d parser.y ++ ++parser.cc: yacc ++ mv y.tab.c parser.cc ++ ++parser.h: yacc ++ mv y.tab.h parser.h + + lexer.cc: lexer.l parser.h + lex lexer.l && mv lex.yy.c lexer.cc +@@ -21,3 +26,5 @@ clean: rm -f *.o lexer.cc parser.h parser.cc $(TARGET) |