diff options
author | wen <wen@FreeBSD.org> | 2010-03-03 20:05:05 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-03-03 20:05:05 +0800 |
commit | 77e712ee9bf564446e44509a9adc0296c2c04ca6 (patch) | |
tree | 7977e42df4e70c5fa178c3eecd40d89ccd29a8df /devel/loki/files | |
parent | 49807ee0d97231e4e555d72ed51b2d91b32ec397 (diff) | |
download | freebsd-ports-gnome-77e712ee9bf564446e44509a9adc0296c2c04ca6.tar.gz freebsd-ports-gnome-77e712ee9bf564446e44509a9adc0296c2c04ca6.tar.zst freebsd-ports-gnome-77e712ee9bf564446e44509a9adc0296c2c04ca6.zip |
- Update to 0.1.7
Added file(s):
- files/patch-Makefile.common
- files/patch-test_SingletonDll_Makefile
Removed file(s):
- files/patch-Makefile
- files/patch-include-loki-Threads.h
- files/patch-test-Makefile
- files/patch-test-SingletonDll-Makefile
- files/patch-test-SmartPtr-main.cpp
PR: ports/144062
Submitted by: "Charlie &" <snnn119@gmail.com> (maintainer)
Feature safe: yes
Diffstat (limited to 'devel/loki/files')
-rw-r--r-- | devel/loki/files/patch-Makefile | 20 | ||||
-rw-r--r-- | devel/loki/files/patch-Makefile.common | 11 | ||||
-rw-r--r-- | devel/loki/files/patch-include-loki-Threads.h | 13 | ||||
-rw-r--r-- | devel/loki/files/patch-src-Makefile | 33 | ||||
-rw-r--r-- | devel/loki/files/patch-test-Makefile | 12 | ||||
-rw-r--r-- | devel/loki/files/patch-test-SingletonDll-Makefile | 18 | ||||
-rw-r--r-- | devel/loki/files/patch-test-SmartPtr-main.cpp | 11 | ||||
-rw-r--r-- | devel/loki/files/patch-test_SingletonDll_Makefile | 25 |
8 files changed, 49 insertions, 94 deletions
diff --git a/devel/loki/files/patch-Makefile b/devel/loki/files/patch-Makefile deleted file mode 100644 index 852a2a2ddc92..000000000000 --- a/devel/loki/files/patch-Makefile +++ /dev/null @@ -1,20 +0,0 @@ ---- Makefile.orig Sun Jan 28 02:20:26 2007 -+++ Makefile Sun Jan 28 02:24:49 2007 -@@ -2,7 +2,7 @@ - export OS ?= $(shell uname -s) - - export CXXWARNFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic --export CXXFLAGS = $(CXXWARNFLAGS) -g -O2 -+export CXXFLAGS += $(CXXWARNFLAGS) -fPIC - - .PHONY: all build-static build-shared check clean distclean - all: build-static build-shared check -@@ -23,7 +23,7 @@ - $(MAKE) -C src distclean - - ifneq ($(OS),Windows) --export prefix ?= /usr -+export prefix ?= ${PREFIX} - - .PHONY: install install-static - install: diff --git a/devel/loki/files/patch-Makefile.common b/devel/loki/files/patch-Makefile.common new file mode 100644 index 000000000000..af7ef74c0c26 --- /dev/null +++ b/devel/loki/files/patch-Makefile.common @@ -0,0 +1,11 @@ +$FreeBSD$ + +--- Makefile.common.orig ++++ Makefile.common +@@ -4,4 +4,4 @@ + CXXWARNFLAGS := -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic + CXXFLAGS := $(CXXWARNFLAGS) -g -O2 + +-prefix := /usr ++prefix := ${PREFIX} + diff --git a/devel/loki/files/patch-include-loki-Threads.h b/devel/loki/files/patch-include-loki-Threads.h deleted file mode 100644 index d74da8b69bdf..000000000000 --- a/devel/loki/files/patch-include-loki-Threads.h +++ /dev/null @@ -1,13 +0,0 @@ ---- include/loki/Threads.h.orig Mon Nov 6 20:39:26 2006 -+++ include/loki/Threads.h Mon Nov 6 20:42:26 2006 -@@ -51,8 +51,8 @@ - - #include <cassert> - --#if defined(LOKI_CLASS_LEVEL_THREADING) || defined(LOKI_OBJECT_LEVEL_THREADING) -- -+//#if defined(LOKI_CLASS_LEVEL_THREADING) || defined(LOKI_OBJECT_LEVEL_THREADING) -+#if 0 - #define LOKI_DEFAULT_THREADING_NO_OBJ_LEVEL ::Loki::ClassLevelLockable - - #if defined(LOKI_CLASS_LEVEL_THREADING) && !defined(LOKI_OBJECT_LEVEL_THREADING) diff --git a/devel/loki/files/patch-src-Makefile b/devel/loki/files/patch-src-Makefile index bd786736ef51..8c30b94fab1c 100644 --- a/devel/loki/files/patch-src-Makefile +++ b/devel/loki/files/patch-src-Makefile @@ -1,21 +1,14 @@ ---- src/Makefile.orig Sun Jan 28 01:57:12 2007 -+++ src/Makefile Sun Jan 28 01:59:57 2007 -@@ -20,10 +20,18 @@ - LDLIBS = -lpthread - RESULT_DIR = ../lib/ + +$FreeBSD$ + +--- src/Makefile.orig ++++ src/Makefile +@@ -20,7 +20,7 @@ + override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC + LDLIBS := -lpthread else -+ifeq ($(OS), FreeBSD) -+ SHARED_LIB_BASE = libloki.so -+ SHARED_LIB_VERSIONED = libloki.so.0 -+ LDFLAGS = --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -+ LDLIBS = -pthread -+ RESULT_DIR = ../lib/ -+else - SHARED_LIB_BASE = libloki.dll - LDFLAGS = --shared - LDLIBS = - RESULT_DIR = ../lib/ -+endif - endif - endif - +-ifeq ($(OS), GNU/kFreeBSD) ++ifeq ($(OS), $(filter $(OS),GNU/kFreeBSD FreeBSD)) + SHARED_LIB_BASE := libloki.so + SHARED_LIB_VERSIONED := libloki.so.$(VERSION) + override LDFLAGS += --shared -Wl,-soname=$(SHARED_LIB_VERSIONED) -fPIC diff --git a/devel/loki/files/patch-test-Makefile b/devel/loki/files/patch-test-Makefile deleted file mode 100644 index 2f66708ab1b3..000000000000 --- a/devel/loki/files/patch-test-Makefile +++ /dev/null @@ -1,12 +0,0 @@ ---- test/Makefile.orig Mon Nov 6 20:45:11 2006 -+++ test/Makefile Mon Nov 6 20:49:04 2006 -@@ -1,5 +1,9 @@ - export CPPFLAGS = -I../../include -DNDEBUG -+ifeq ($(OS),FreeBSD) -+export LDFLAGS = -L../../lib -pthread -+else - export LDFLAGS = -L../../lib -+endif - export LDLIBS = -lloki - - ifeq ($(OS),Windows) diff --git a/devel/loki/files/patch-test-SingletonDll-Makefile b/devel/loki/files/patch-test-SingletonDll-Makefile deleted file mode 100644 index 08414f1242a3..000000000000 --- a/devel/loki/files/patch-test-SingletonDll-Makefile +++ /dev/null @@ -1,18 +0,0 @@ ---- test/SingletonDll/Makefile.orig Sun Jan 28 02:00:34 2007 -+++ test/SingletonDll/Makefile Sun Jan 28 02:05:49 2007 -@@ -8,9 +8,15 @@ - LIB2 = libsingletondll.so - SHARED_LIB_FLAG = --shared - else -+ifeq ($(OS),FreeBSD) -+ LIB1 = libfoo.so -+ LIB2 = libsingletondll.so -+ SHARED_LIB_FLAG = --shared -+else - LIB1 = foo.dll - LIB2 = singletondll.dll - SHARED_LIB_FLAG = --shared -+endif - endif - endif - diff --git a/devel/loki/files/patch-test-SmartPtr-main.cpp b/devel/loki/files/patch-test-SmartPtr-main.cpp deleted file mode 100644 index b13c415963db..000000000000 --- a/devel/loki/files/patch-test-SmartPtr-main.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- test/SmartPtr/main.cpp.orig Mon Nov 6 20:25:41 2006 -+++ test/SmartPtr/main.cpp Mon Nov 6 20:26:02 2006 -@@ -998,7 +998,7 @@ - - // ---------------------------------------------------------------------------- - --int main( unsigned int , const char * [] ) -+int main( int , const char * [] ) - { - - DoRefLinkTests(); diff --git a/devel/loki/files/patch-test_SingletonDll_Makefile b/devel/loki/files/patch-test_SingletonDll_Makefile new file mode 100644 index 000000000000..fd96968efbaa --- /dev/null +++ b/devel/loki/files/patch-test_SingletonDll_Makefile @@ -0,0 +1,25 @@ + +$FreeBSD$ + +--- test/SingletonDll/Makefile.orig ++++ test/SingletonDll/Makefile +@@ -5,6 +5,11 @@ + LIB2 := libsingletondll.dylib + SHARED_LIB_FLAG := -dynamiclib -fPIC + else ++ifeq ($(OS),FreeBSD) ++ LIB1 := libfoo.so ++ LIB2 := libsingletondll.so ++ SHARED_LIB_FLAG := --shared -fPIC ++else + ifeq ($(OS),Linux) + LIB1 := libfoo.so + LIB2 := libsingletondll.so +@@ -15,6 +20,7 @@ + SHARED_LIB_FLAG := --shared + endif + endif ++endif + + BIN1 := client$(BIN_SUFFIX) + SRC1 := client.cpp |