summaryrefslogtreecommitdiff
path: root/package/mongrel2/patches/patch-Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-05-06 18:14:37 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-05-06 18:15:00 +0200
commit3cc94763bb88c03ac860d0021d8f1a91a1e70468 (patch)
tree7b8bc2bd5425c09cea378ef46334b03c1c595b05 /package/mongrel2/patches/patch-Makefile
parent6d8b481fa2bb6b4331f65377285c521c6bac0262 (diff)
add basic mongrel2 package and dependencies
Diffstat (limited to 'package/mongrel2/patches/patch-Makefile')
-rw-r--r--package/mongrel2/patches/patch-Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mongrel2/patches/patch-Makefile b/package/mongrel2/patches/patch-Makefile
new file mode 100644
index 000000000..635bfe5fa
--- /dev/null
+++ b/package/mongrel2/patches/patch-Makefile
@@ -0,0 +1,32 @@
+--- mongrel2-v1.9.1.orig/Makefile 2014-04-09 18:13:27.000000000 +0200
++++ mongrel2-v1.9.1/Makefile 2015-05-05 21:57:55.000000000 +0200
+@@ -1,6 +1,7 @@
+-CFLAGS=-g -O2 -Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
++CFLAGS?=
++CFLAGS+=-Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
+ LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)
+-PREFIX?=/usr/local
++PREFIX?=/usr
+
+ get_objs = $(addsuffix .o,$(basename $(wildcard $(1))))
+
+@@ -18,7 +19,7 @@ MAKEOPTS=OPTFLAGS="${NOEXTCFLAGS} ${OPTF
+ ifdef $($(shell sh init.sh))
+ endif
+
+-all: bin/mongrel2 tests m2sh procer
++all: bin/mongrel2
+
+ dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
+ dev: all
+@@ -106,10 +107,6 @@ install: all
+ install bin/mongrel2 $(DESTDIR)/$(PREFIX)/bin/ \
+ || ( install -d $(DESTDIR)/$(PREFIX)/bin/ \
+ && install bin/mongrel2 $(DESTDIR)/$(PREFIX)/bin/ )
+- ${MAKE} ${MAKEOPTS} -C tools/m2sh install
+- ${MAKE} ${MAKEOPTS} -C tools/config_modules install
+- ${MAKE} ${MAKEOPTS} -C tools/filters install
+- ${MAKE} ${MAKEOPTS} -C tools/procer install
+
+ examples/python/mongrel2/sql/config.sql: src/config/config.sql src/config/mimetypes.sql
+ cat src/config/config.sql src/config/mimetypes.sql > $@