1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/databases/fastdb/files/patch-makefile
2009-05-20 07:53:07 +00:00

71 lines
2.0 KiB
Plaintext

--- makefile.orig 2009-03-01 20:30:50.000000000 +0800
+++ makefile 2009-05-20 15:47:02.000000000 +0800
@@ -37,8 +37,8 @@
THRLIBS=
SUFF=
else
-TFLAGS=-pthread
-THRLIBS=-pthread
+TFLAGS=-D_REENTRANT ${PTHREAD_CFLAGS}
+THRLIBS=${PTHREAD_LIBS}
SUFF=_r
endif
@@ -67,21 +67,21 @@
WEB_EXAMPLES = cgistub bugdb clidb
-CC = g++
+CC = ${CXX}
# DEFS macro is deprecatred, edit config.h file instead
DEFS = -Wno-invalid-offsetof
#CFLAGS = $(TFLAGS) -Iinc -c -Wall -O5 -g -fPIC $(DEFS)
-CFLAGS = -c -Iinc -Wall -O0 -g -fPIC $(DEFS) $(TFLAGS)
+CFLAGS = -c -Iinc ${CXXFLAGS} -fPIC $(DEFS) $(TFLAGS)
#CFLAGS = -c -Iinc -Wall -O0 -fPIC -DFASTDB_DEBUG=DEBUG_TRACE -g $(DEFS) $(TFLAGS)
-#SHFLAGS=-shared -Wl,-soname,$@
-SHFLAGS=-shared
+SHFLAGS=-shared -Wl,-soname,$@
+#SHFLAGS=-shared
LD = $(CC)
-LDFLAGS = -g $(TFLAGS)
+LDFLAGS = $(TFLAGS)
AR = ar
ARFLAGS = -cru
@@ -389,24 +389,20 @@
install: subsql cleanupsem installlib
mkdir -p $(BINSPATH)
- cp subsql $(BINSPATH)
- strip $(BINSPATH)/subsql
- cp cleanupsem $(BINSPATH)
- strip $(BINSPATH)/cleanupsem
+ ${BSD_INSTALL_PROGRAM} subsql $(BINSPATH)
+ ${BSD_INSTALL_PROGRAM} cleanupsem $(BINSPATH)
installlib: $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED)
mkdir -p $(INCSPATH)
- cp $(INCS) $(INCSPATH)
+ ${BSD_INSTALL_DATA} $(INCS) $(INCSPATH)
mkdir -p $(LIBSPATH)
- cp $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)
+ ${BSD_INSTALL_PROGRAM} $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)
(cd $(LIBSPATH) && ln -f -s $(FASTDB_SHARED) libfastdb$(SUFF).so \
&& ln -f -s $(CLI_SHARED) libcli$(SUFF).so)
- if [ -f $(JNI_LIB) ]; then cp $(JNI_LIB) $(LIBSPATH); \
- cd $(LIBSPATH) && ln -f -s $(JNI_LIB) libjnicli.so; fi
uninstall:
rm -fr $(INCSPATH)
- cd $(LIBSPATH); rm -f $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(JNI_LIB) libfastdb$(SUFF).so libjnicli.so libcli$(SUFF).so
+ cd $(LIBSPATH); rm -f $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) libfastdb$(SUFF).so libcli$(SUFF).so
rm $(BINSPATH)/subsql
cleanobj: