freebsd-ports/textproc/jq/files/patch-Makefile
Pawel Pekala 9603f67978 jq is like sed for JSON data - you can use it to slice and
filter and map and transform structured data with the same
ease that sed, awk, grep and friends let you play with text.

WWW: http://stedolan.github.com/jq/

PR:		ports/173256
Submitted by:	Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
Feature safe:	yes
2012-11-19 21:16:42 +00:00

18 lines
689 B
Text

--- ./Makefile.orig 2012-11-19 22:03:44.000000000 +0100
+++ ./Makefile 2012-11-19 22:05:13.000000000 +0100
@@ -1,4 +1,5 @@
-CC=gcc -Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
+CC?=gcc
+CFLAGS?=-Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
prefix=/usr/local
.PHONY: all clean releasedep tarball install uninstall test releasetag
@@ -33,7 +34,7 @@
$(CC) -DJQ_DEBUG=1 -o $@ $^
jq: $(JQ_SRC) main.c
- $(CC) -O -DJQ_DEBUG=0 -o $@ $^
+ $(CC) $(CFLAGS) -DJQ_DEBUG=0 -o $@ $^
test: jq_test
valgrind --error-exitcode=1 -q --leak-check=full ./jq_test >/dev/null