Respect CC/CFLAGS; add missing bison build dep.

This commit is contained in:
Dmitry Sivachenko 2014-05-16 10:44:03 +00:00
parent 6b54b471d8
commit 45e0d637c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354209
2 changed files with 21 additions and 1 deletions

View File

@ -11,7 +11,7 @@ COMMENT= A toolkit for constructing finite-state automata and transducers
LICENSE= GPLv2
USES= gmake
USES= bison gmake
USE_GCC= yes
USE_LDCONFIG= yes

View File

@ -0,0 +1,20 @@
--- Makefile.orig 2012-11-17 16:21:50.000000000 +0400
+++ Makefile 2014-05-16 14:41:24.000000000 +0400
@@ -5,7 +5,7 @@
includedir = $(prefix)/include
VERSION = 0.9.17
-CC = gcc
+CC ?= gcc
RANLIB = ranlib
YACC = bison -d -t -v
LEX = flex -8
@@ -15,7 +15,7 @@
RM = /bin/rm -f
LDFLAGS = -lreadline -lz -ltermcap
FLOOKUPLDFLAGS = libfoma.a -lz
-CFLAGS = -O3 -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC
+CFLAGS += -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC
FOMAOBJS = foma.o stack.o iface.o lex.interface.o
LIBOBJS = int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.tab.o