Skip to content

Commit

Permalink
Second attempt to fix build on 11.0-CURRENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaupt committed Jul 21, 2014
1 parent 7b174da commit 397633a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions math/aamath/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}

PLIST_FILES= bin/aamath man/man1/aamath.1.gz

CFLAGS+= -I${LOCALBASE}/include

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
Expand Down
7 changes: 4 additions & 3 deletions math/aamath/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Makefile.orig
+++ Makefile
--- ./Makefile.orig 2005-06-22 22:12:18.000000000 +0200
+++ ./Makefile 2014-07-22 01:12:20.000000000 +0200
@@ -1,17 +1,22 @@
-CXX = g++
-LD = g++
Expand All @@ -14,7 +14,8 @@
LIBS = -lreadline -ltermcap

$(TARGET): $(OBJS)
$(LD) $(LFLAGS) $(OBJS) -o $@ $(LIBS)
- $(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
Expand Down

0 comments on commit 397633a

Please sign in to comment.