summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-02-13 17:07:52 +0000
committerjperkin <jperkin@pkgsrc.org>2015-02-13 17:07:52 +0000
commit9baabd09dd404626672c9e54de3c2cbb87a73429 (patch)
tree1ae278735fce842d70baa6aee9fcda8c1e8ef716 /converters
parentfcb85b386e0569d068c74e62d0f9085054cef3b1 (diff)
downloadpkgsrc-9baabd09dd404626672c9e54de3c2cbb87a73429.tar.gz
Don't use GNU ld arguments on SunOS.
Diffstat (limited to 'converters')
-rw-r--r--converters/opencc/distinfo3
-rw-r--r--converters/opencc/patches/patch-src_symbols.cmake22
2 files changed, 24 insertions, 1 deletions
diff --git a/converters/opencc/distinfo b/converters/opencc/distinfo
index 652a4d8419d..c40788f3cab 100644
--- a/converters/opencc/distinfo
+++ b/converters/opencc/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2014/12/01 00:05:38 obache Exp $
+$NetBSD: distinfo,v 1.2 2015/02/13 17:07:52 jperkin Exp $
SHA1 (opencc-0.4.2.tar.gz) = 1e4216e5fe21b16836063f23d0341cb54dbce97c
RMD160 (opencc-0.4.2.tar.gz) = 9aed1e700250601d653baf2a7284b489441a08be
Size (opencc-0.4.2.tar.gz) = 725353 bytes
+SHA1 (patch-src_symbols.cmake) = e7ef6f750532e8a6cbdc9ad003d76853336e9bd7
diff --git a/converters/opencc/patches/patch-src_symbols.cmake b/converters/opencc/patches/patch-src_symbols.cmake
new file mode 100644
index 00000000000..580962adcc0
--- /dev/null
+++ b/converters/opencc/patches/patch-src_symbols.cmake
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_symbols.cmake,v 1.1 2015/02/13 17:07:52 jperkin Exp $
+
+Don't use GNU ld arguments on SunOS.
+
+--- src/symbols.cmake.orig 2013-04-11 17:23:05.000000000 +0000
++++ src/symbols.cmake
+@@ -21,7 +21,7 @@ if (APPLE)
+ set(LINK_FLAGS
+ "${LINK_FLAGS} -Wl,-exported_symbols_list,'${_symbols_list}'")
+
+-elseif (CMAKE_C_COMPILER_ID STREQUAL GNU)
++elseif (CMAKE_C_COMPILER_ID STREQUAL GNU AND NOT CPACK_SYSTEM_NAME STREQUAL SunOS)
+ # Create a version script for GNU ld.
+ set(_symbols "{ global: ${OPENCC_SYMBOLS}; local: *; };")
+ set(_version_script "${CMAKE_CURRENT_BINARY_DIR}/version.script")
+@@ -37,4 +37,4 @@ set_target_properties(
+ PROPERTIES
+ LINK_FLAGS
+ "${LINK_FLAGS}"
+-)
+\ No newline at end of file
++)