summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-05-16 13:43:38 +0800
committerPeng Wu <alexepico@gmail.com>2017-05-16 13:43:38 +0800
commit49be8791712fff09ac422edd0ce411deaff69212 (patch)
tree688fe929c7119c17b2839d19eceb63950c696656
parent80cd413400656838023362ad13638d9aa91daf05 (diff)
downloadlibpinyin-49be8791712fff09ac422edd0ce411deaff69212.zip
libpinyin-49be8791712fff09ac422edd0ce411deaff69212.tar.gz
libpinyin-49be8791712fff09ac422edd0ce411deaff69212.tar.xz
import libzhuyin.pc.in
-rw-r--r--configure.ac3
-rw-r--r--libzhuyin.pc.in15
-rw-r--r--src/Makefile.am4
-rw-r--r--src/storage/Makefile.am5
4 files changed, 25 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e5e3fd6..950102e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,6 +123,7 @@ AM_CONDITIONAL(ENABLE_LIBZHUYIN, test x"$enable_libzhuyin" = x"yes")
AC_CONFIG_FILES([libpinyin.pc
+ libzhuyin.pc
libpinyin.spec
Makefile
doc/Makefile
@@ -148,5 +149,5 @@ Build options:
Version $VERSION
Install prefix $prefix
DBM $DBM
- enable libzhuyin $enable_libzhuyin
+ Enable libzhuyin $enable_libzhuyin
])
diff --git a/libzhuyin.pc.in b/libzhuyin.pc.in
new file mode 100644
index 0000000..0b6c6be
--- /dev/null
+++ b/libzhuyin.pc.in
@@ -0,0 +1,15 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+pkgdatadir=@libdir@/libzhuyin
+
+libzhuyinincludedir=${includedir}/libpinyin-@VERSION@
+libzhuyin_binary_version=@LIBPINYIN_BINARY_VERSION@
+
+Name: libzhuyin
+Description: Library to deal with zhuyin
+Version: @VERSION@
+Requires: glib-2.0
+Libs: -L${libdir} -lzhuyin
+Cflags: -I${libzhuyinincludedir}
diff --git a/src/Makefile.am b/src/Makefile.am
index fe01097..a0de416 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -35,6 +35,10 @@ libpinyinincludedir = $(includedir)/libpinyin-@VERSION@
libpinyininclude_HEADERS = pinyin.h
+if ENABLE_LIBZHUYIN
+libpinyininclude_HEADERS += zhuyin.h
+endif
+
noinst_HEADERS = pinyin_internal.h
lib_LTLIBRARIES = libpinyin.la
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index a43e632..ba9d4f4 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -20,8 +20,11 @@ INCLUDES = -I$(top_srcdir)/src/include \
libpinyinincludedir = $(includedir)/libpinyin-@VERSION@
-libpinyininclude_HEADERS= pinyin_custom2.h
+libpinyininclude_HEADERS = pinyin_custom2.h
+if ENABLE_LIBZHUYIN
+libpinyininclude_HEADERS += zhuyin_custom2.h
+endif
noinst_HEADERS = chewing_enum.h \
chewing_key.h \