Commits

Joshua Root authored f9d9a18e92e
lws: update to 0.6.1
No tags

www/lws/files/patch-GNUmakefile

Modified
1 ---- GNUmakefile.orig Tue Dec 14 12:43:46 2004
2 -+++ GNUmakefile Mon Jan 31 03:12:40 2005
3 -@@ -5,10 +5,10 @@
4 - #
5 - srcdir = .
6 - top_srcdir = .
7 --prefix = /usr/local
8 -+prefix = __PREFIX__
9 - exec_prefix = ${prefix}
10 - bindir = ${exec_prefix}/bin
11 --mandir = ${prefix}/man
12 -+mandir = ${prefix}/share/man
13 - etcdir = ${prefix}/etc
14 - cc = cc
15 -
16 -@@ -30,7 +30,7 @@
17 - PROG= lws
18 - VERSION= 0.2.1
1 +--- GNUmakefile.orig 2009-05-14 07:57:08.000000000 +1000
2 ++++ GNUmakefile 2018-04-21 02:53:51.000000000 +1000
3 +@@ -40,7 +40,7 @@
4 + PROG= lws$(exe_sfx)
5 + VERSION= 0.6.1
19 6 SRCS= lws_config.c lws_server_subsystem.c lws_tmpl.c lws_tmpl_auth.c lws_tmpl_config.c lws_tmpl_http.c lws_tmpl_logs.c lws_tmpl_memstats.c lws_tmpl_misc.c lws_tmpl_object.c lws_tmpl_passwd.c lws_tmpl_string.c main.c
20 --CFLAGS= -O -pipe -DLWS_SERVER_VERSION=\"0.2.1\" -DPREFIX=\"/usr/local\" -I/usr/local/include -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Wwrite-strings -include $(srcdir)/linuxhacks.h -DOPENSSL_NO_KRB5
21 -+CFLAGS= -O -pipe -DLWS_SERVER_VERSION=\"0.2.1\" -DPREFIX=\"__PREFIX__\" -I__PREFIX__/include -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Wwrite-strings -DOPENSSL_NO_KRB5
7 +-CFLAGS= -O2 -fno-strict-aliasing -pipe -DLWS_SERVER_VERSION=\"0.2.1\" -DNEED_VA_UNDERSCORE=1 -DPREFIX=\"/usr/local\" -I/usr/local/include -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Wwrite-strings $(HACKARG) -DOPENSSL_NO_KRB5
8 ++CFLAGS= $(MP_CFLAGS) -fno-strict-aliasing -pipe -DLWS_SERVER_VERSION=\"0.2.1\" -DNEED_VA_UNDERSCORE=1 -DPREFIX=\"$(prefix)\" -I$(prefix)/include -Wall -Wbad-function-cast -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wunused -Wwrite-strings $(HACKARG) -DOPENSSL_NO_KRB5
22 9 MAN= lws.1
23 10 SFILES= default-config.xml docroot admin ca
24 11
25 -@@ -51,7 +51,7 @@
12 +@@ -78,13 +78,13 @@
13 + gzip < $+ > $@
14 +
15 + $(objdir)/%.o: %.c
16 +- $(cc) -c $(OBJOUT) $(CFLAGS) $(DFLAGS) -I$(srcdir) $(EXTRAINCS) $+ $(PPOUT)
17 ++ $(cc) -c $(OBJOUT) -I$(srcdir) $(CFLAGS) $(DFLAGS) $(EXTRAINCS) $+ $(PPOUT)
18 +
19 + lws.1: lws.1.in
26 20 sed 's,@PREFIX@,${prefix},g' < $+ > $@
27 21
28 22 $(prog): $(objs)
29 -- $(cc) -o $@ $+ -lpdel -lexpat -lssl -lcrypto -lcrypt -lpthread
30 -+ $(cc) -o $@ $+ -L__PREFIX__/lib -lpdel -lexpat -lssl -lcrypto
23 +- $(cc) -o $@ $+ $(pdellink_static) $(CRYPTLIB)
24 ++ $(cc) -o $@ $+ $(LDFLAGS) $(pdellink_static) $(CRYPTLIB)
31 25
32 26 clean:
33 27 rm -rf $(objs) $(prog) $(cman) \

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut