SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
38
net/ntopng/patches/patch-nDPI_src_lib_Makefile_in
Normal file
38
net/ntopng/patches/patch-nDPI_src_lib_Makefile_in
Normal file
|
@ -0,0 +1,38 @@
|
|||
Index: nDPI/src/lib/Makefile.in
|
||||
--- nDPI/src/lib/Makefile.in.orig
|
||||
+++ nDPI/src/lib/Makefile.in
|
||||
@@ -23,7 +23,7 @@ HEADERS = $(wildcard ../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_LIB_SHARED = $(NDPI_LIB_SHARED_BASE).$(LIBndpi_VERSION)
|
||||
NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED)
|
||||
|
||||
ifneq ($(OS),Windows_NT)
|
||||
@@ -39,7 +39,7 @@ ifneq ($(BUILD_MINGW),)
|
||||
NDPI_LIB_SHARED_BASE = libndpi
|
||||
NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE)-@NDPI_VERSION_SHORT@.dll
|
||||
else
|
||||
-SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
||||
+SONAME_FLAG=-Wl,-soname,$(NDPI_LIB_SHARED_BASE).$(LIBndpi_VERSION)
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -53,8 +53,6 @@ $(NDPI_LIB_STATIC): $(OBJECTS)
|
||||
|
||||
$(NDPI_LIB_SHARED): $(OBJECTS)
|
||||
$(CC) -shared -fPIC $(SONAME_FLAG) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
|
||||
- ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE)
|
||||
- ln -fs $(NDPI_LIB_SHARED) $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR)
|
||||
|
||||
%.o: %.c $(HEADERS) Makefile
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||
@@ -77,7 +75,5 @@ cppcheck:
|
||||
install: $(NDPI_LIBS)
|
||||
mkdir -p $(DESTDIR)$(libdir)
|
||||
cp $(NDPI_LIBS) $(DESTDIR)$(libdir)/
|
||||
- cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)$(libdir)/
|
||||
- cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)$(libdir)/
|
||||
mkdir -p $(DESTDIR)$(includedir)
|
||||
cp ../include/*.h $(DESTDIR)$(includedir)
|
Loading…
Add table
Add a link
Reference in a new issue