summaryrefslogtreecommitdiff
path: root/net/ndpi/files/patch-src_lib_Makefile.in
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2018-12-22 20:06:52 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2018-12-22 20:06:52 +0000
commita1b4f359a98e3e6d9a6c651d2fbad860e7aba43e (patch)
tree3ec9c854599e8aeff3b5c6368a6ef864d1732db2 /net/ndpi/files/patch-src_lib_Makefile.in
parentUpdate to RC3 of Wine 4.0 which brings about two dozen bugfixes. (diff)
- Update ndpi to 2.6.d20181221
- Update ntopng to 3.8.d20181221 - Add USES=localbase to ndpi - Silence portlint warnings - Update WWW links - Add UPDATING note about data directory change nDPI changelog: https://github.com/ntop/nDPI/blob/dev/CHANGELOG.md ntopng changelog: https://github.com/ntop/ntopng/blob/dev/CHANGELOG.md
Notes
Notes: svn path=/head/; revision=488125
Diffstat (limited to 'net/ndpi/files/patch-src_lib_Makefile.in')
-rw-r--r--net/ndpi/files/patch-src_lib_Makefile.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/ndpi/files/patch-src_lib_Makefile.in b/net/ndpi/files/patch-src_lib_Makefile.in
new file mode 100644
index 000000000000..46cc8c79158d
--- /dev/null
+++ b/net/ndpi/files/patch-src_lib_Makefile.in
@@ -0,0 +1,31 @@
+- /bin/rm -f libndpi.a $(OBJECTS)
+new file mode 100644
+--- src/lib/Makefile.in.orig 2018-12-21 16:33:57 UTC
++++ src/lib/Makefile.in
+@@ -17,24 +17,15 @@ CC = @CC@
+ CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION -O2 -g
+ RANLIB = ranlib
+
+-OBJECTS = $(patsubst protocols/%.c, protocols/%.o, $(wildcard protocols/*.c)) $(patsubst third_party/src/%.c, third_party/src/%.o, $(wildcard third_party/src/*.c)) ndpi_main.o
+-HEADERS = $(wildcard ../include/*.h)
++OBJECTS != ls protocols/*.c | sed 's/\(.*\)\.c$$/\1.o/' && ls third_party/src/*.c | sed 's/\(.*\)\.c$$/\1.o/' && echo ndpi_main.o
++HEADERS != ls ../include/*.h
+ NDPI_VERSION_MAJOR = @NDPI_MAJOR@
+ NDPI_LIB_STATIC = libndpi.a
+ NDPI_LIB_SHARED_BASE = libndpi.so
+ NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE).@NDPI_VERSION_SHORT@
+ NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
+
+-ifneq ($(OS),Windows_NT)
+-OS := $(shell uname)
+-endif
+-
+-ifeq ($(OS),Darwin)
+-CC=clang
+-SONAME_FLAG=
+-else
+ SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
+-endif
+
+ all: $(NDPI_LIBS)
+