diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2016-05-10 00:47:45 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2016-05-10 00:47:45 +0800 |
commit | 42ed06f25c57d7f55dca6ac59548dee14e08eb6e (patch) | |
tree | 24ba3c493d79ff5c54fdb8052b290d93f5d1d949 /chinese | |
parent | 879fdc054cb37b4d16ce7cd792d6c9d95d7940c5 (diff) | |
download | freebsd-ports-gnome-42ed06f25c57d7f55dca6ac59548dee14e08eb6e.tar.gz freebsd-ports-gnome-42ed06f25c57d7f55dca6ac59548dee14e08eb6e.tar.zst freebsd-ports-gnome-42ed06f25c57d7f55dca6ac59548dee14e08eb6e.zip |
- Fix runtime error caused by wrong CHEWING_DATADIR
Submitted by: Ting-Wei Lan <lantw44@gmail.com>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/libchewing/Makefile | 1 | ||||
-rw-r--r-- | chinese/libchewing/files/patch-CMakeLists.txt | 11 |
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) |