summaryrefslogtreecommitdiff
path: root/ftp/fastdfs/files/patch-client-Makefile.in
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2016-10-27 05:49:09 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2016-10-27 05:49:09 +0000
commit0602db1835f35f9e8c51b13bcbca9254f8974c44 (patch)
treed720e37f939e7ec51f3191db3bea0a027966b860 /ftp/fastdfs/files/patch-client-Makefile.in
parentdevel/py-raven: update 5.13.0 -> 5.31.0 (diff)
New ports: devel/libfastcommon, ftp/fastdfs, ftp/php(56|70)-fastdfs
FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. WWW: https://github.com/happyfish100/fastdfs PR: 213311 Submitted by: Daniel Ylitalo <daniel@blodan.se>
Notes
Notes: svn path=/head/; revision=424743
Diffstat (limited to 'ftp/fastdfs/files/patch-client-Makefile.in')
-rw-r--r--ftp/fastdfs/files/patch-client-Makefile.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/ftp/fastdfs/files/patch-client-Makefile.in b/ftp/fastdfs/files/patch-client-Makefile.in
new file mode 100644
index 000000000000..9d31939b16f8
--- /dev/null
+++ b/ftp/fastdfs/files/patch-client-Makefile.in
@@ -0,0 +1,38 @@
+--- client/Makefile.in.orig 2016-08-08 07:17:50 UTC
++++ client/Makefile.in
+@@ -3,10 +3,10 @@
+ COMPILE = $(CC) $(CFLAGS)
+ ENABLE_STATIC_LIB = $(ENABLE_STATIC_LIB)
+ ENABLE_SHARED_LIB = $(ENABLE_SHARED_LIB)
+-INC_PATH = -I../common -I../tracker -I/usr/include/fastcommon
++INC_PATH = -I../common -I../tracker -I$(LOCALBASE)/include/fastcommon
+ LIB_PATH = $(LIBS) -lfastcommon
+ TARGET_PATH = $(TARGET_PREFIX)/bin
+-TARGET_LIB = $(TARGET_PREFIX)/lib64
++TARGET_LIB = $(TARGET_PREFIX)/lib
+ TARGET_INC = $(TARGET_PREFIX)/include
+ CONFIG_PATH = $(TARGET_CONF_PATH)
+
+@@ -50,7 +50,8 @@ ALL_LIBS = $(STATIC_LIBS) $(SHARED_LIBS)
+
+ all: $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)
+ libfdfsclient.so:
+- $(COMPILE) -o $@ $< -shared $(FDFS_SHARED_OBJS) $(LIB_PATH)
++ $(COMPILE) -o $@ $< -shared $(FDFS_SHARED_OBJS) $(LIB_PATH) \
++ -Wl,-soname,libfdfsclient.so
+ libfdfsclient.a:
+ ar cru $@ $< $(FDFS_STATIC_OBJS)
+ .o:
+@@ -66,9 +67,9 @@ install:
+ mkdir -p $(CONFIG_PATH)
+ mkdir -p $(TARGET_LIB)
+ mkdir -p $(TARGET_PREFIX)/lib
+- cp -f $(ALL_PRGS) $(TARGET_PATH)
+- if [ $(ENABLE_STATIC_LIB) -eq 1 ]; then cp -f $(STATIC_LIBS) $(TARGET_LIB); cp -f $(STATIC_LIBS) $(TARGET_PREFIX)/lib/;fi
+- if [ $(ENABLE_SHARED_LIB) -eq 1 ]; then cp -f $(CLIENT_SHARED_LIBS) $(TARGET_LIB); cp -f $(CLIENT_SHARED_LIBS) $(TARGET_PREFIX)/lib/;fi
++ install -s $(ALL_PRGS) $(TARGET_PATH)
++ if [ $(ENABLE_STATIC_LIB) -eq 1 ]; then install -s $(STATIC_LIBS) $(TARGET_LIB); install -s $(STATIC_LIBS) $(TARGET_PREFIX)/lib/;fi
++ if [ $(ENABLE_SHARED_LIB) -eq 1 ]; then install -s $(CLIENT_SHARED_LIBS) $(TARGET_LIB); install -s $(CLIENT_SHARED_LIBS) $(TARGET_PREFIX)/lib/;fi
+
+ mkdir -p $(TARGET_INC)/fastdfs
+ cp -f $(FDFS_HEADER_FILES) $(TARGET_INC)/fastdfs