aboutsummaryrefslogtreecommitdiff
path: root/chinese/libchewing
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2016-05-09 16:47:45 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2016-05-09 16:47:45 +0000
commit8523a8b06b9733b49dd896a1cd0e6f575d14fd36 (patch)
tree24ba3c493d79ff5c54fdb8052b290d93f5d1d949 /chinese/libchewing
parenta6bd74cab9b1768c5d2dc74b0750ecad39bd3bf0 (diff)
downloadports-8523a8b06b9733b49dd896a1cd0e6f575d14fd36.tar.gz
ports-8523a8b06b9733b49dd896a1cd0e6f575d14fd36.zip
- Fix runtime error caused by wrong CHEWING_DATADIR
Submitted by: Ting-Wei Lan <lantw44@gmail.com>
Notes
Notes: svn path=/head/; revision=414867
Diffstat (limited to 'chinese/libchewing')
-rw-r--r--chinese/libchewing/Makefile1
-rw-r--r--chinese/libchewing/files/patch-CMakeLists.txt11
2 files changed, 11 insertions, 1 deletions
diff --git a/chinese/libchewing/Makefile b/chinese/libchewing/Makefile
index 90e9f5756086..04cb097f1b12 100644
--- a/chinese/libchewing/Makefile
+++ b/chinese/libchewing/Makefile
@@ -4,6 +4,7 @@
PORTNAME= libchewing
PORTVERSION= 0.5.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= chinese textproc
MAINTAINER= ports@FreeBSD.org
diff --git a/chinese/libchewing/files/patch-CMakeLists.txt b/chinese/libchewing/files/patch-CMakeLists.txt
index 09cca65051bf..bea99e05649e 100644
--- a/chinese/libchewing/files/patch-CMakeLists.txt
+++ b/chinese/libchewing/files/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
---- CMakeLists.txt.orig 2016-05-09 02:23:35 UTC
+--- CMakeLists.txt.orig 2016-05-09 16:30:03 UTC
+++ CMakeLists.txt
@@ -140,6 +140,7 @@ set(libdir "\${exec_prefix}/lib")
set(includedir "\${prefix}/include")
@@ -21,3 +21,12 @@
endif()
+@@ -362,7 +359,7 @@ add_library(chewing OBJECT
+ ${SRC_DIR}/bopomofo.c
+ )
+ set_target_properties(chewing PROPERTIES
+- COMPILE_DEFINITIONS "CHEWING_DATADIR=\"${CMAKE_INSTALL_DATADIR}/libchewing\""
++ COMPILE_DEFINITIONS "CHEWING_DATADIR=\"${CMAKE_INSTALL_FULL_DATADIR}/libchewing\""
+ )
+
+ if (WITH_SQLITE3)