aboutsummaryrefslogtreecommitdiffstats
path: root/math/moo
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2017-06-02 02:29:19 +0800
committerskreuzer <skreuzer@FreeBSD.org>2017-06-02 02:29:19 +0800
commit79f667a9cb4bb597ce521b9b2dd4a9bba67717d0 (patch)
tree084a1bebce6e7c6e7817bbd4dcf40b6c10c1d3cc /math/moo
parenta2f165e471fe270ae868a4d4c7ad0c2f5ac54af1 (diff)
downloadfreebsd-ports-gnome-79f667a9cb4bb597ce521b9b2dd4a9bba67717d0.tar.gz
freebsd-ports-gnome-79f667a9cb4bb597ce521b9b2dd4a9bba67717d0.tar.zst
freebsd-ports-gnome-79f667a9cb4bb597ce521b9b2dd4a9bba67717d0.zip
Define LICENSE
Change COPTS to CFLAGS in Makefile Fix 'Inconsistent operator' error for regress target
Diffstat (limited to 'math/moo')
-rw-r--r--math/moo/Makefile2
-rw-r--r--math/moo/files/patch-Makefile19
2 files changed, 21 insertions, 0 deletions
diff --git a/math/moo/Makefile b/math/moo/Makefile
index 3902ad3187b2..8da7f1b2f7ba 100644
--- a/math/moo/Makefile
+++ b/math/moo/Makefile
@@ -8,6 +8,8 @@ CATEGORIES= math
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Calculator that accepts C-like syntax as input
+LICENSE= PD
+
USE_GITHUB= yes
GH_ACCOUNT= raylai
GH_TAGNAME= ${PORTVERSION}
diff --git a/math/moo/files/patch-Makefile b/math/moo/files/patch-Makefile
new file mode 100644
index 000000000000..82a526073e7e
--- /dev/null
+++ b/math/moo/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig 2017-06-01 18:24:01 UTC
++++ Makefile
+@@ -1,14 +1,14 @@
+ PROG= moo
+ SRCS= moo.c scan.c
+ CPPFLAGS+= -I${.CURDIR}
+-COPTS+= -Wall -W -Wno-unused -Wshadow -pedantic -std=c99
++CFLAGS+= -Wall -W -Wno-unused -Wshadow -pedantic -std=c99
+ CLEANFILES+= moo.c y.tab.h scan.c lex.yy.c
+
+ LOCALBASE?=/usr/local
+ BINDIR=${LOCALBASE}/bin
+ MANDIR=${LOCALBASE}/man/cat
+
+-regress::
++regress:
+ cd ${.CURDIR}/regress && ${MAKE} MOO=${.OBJDIR}/moo
+
+ .include <bsd.prog.mk>