Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 99 lines (83 sloc) 2.883 kB
fd2d2fc @ueno Initial commit.
authored
1 # vim:set et ts=4:
2 #
3 # ibus-skk - The SKK engine for IBus
4 #
5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
a90948b @ueno Update copyright year
authored
6 # Copyright (C) 2009-2014 Daiki Ueno <ueno@gnu.org>
fd2d2fc @ueno Initial commit.
authored
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
3f4c59d @ueno Update FSF snail mail address
authored
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
fd2d2fc @ueno Initial commit.
authored
22
becfa9c @ueno Use the same versioning scheme as ibus core.
authored
23 # if not 1, append datestamp to the version number.
24 m4_define([package_name], [ibus-skk])
a84ab44 @ueno Bump version to 1.4.0.
authored
25 m4_define([ibus_released], [1])
becfa9c @ueno Use the same versioning scheme as ibus core.
authored
26 m4_define([ibus_major_version], [1])
a84ab44 @ueno Bump version to 1.4.0.
authored
27 m4_define([ibus_minor_version], [4])
825dc5b @ueno Bump version to 1.4.2
authored
28 m4_define([ibus_micro_version], [2])
becfa9c @ueno Use the same versioning scheme as ibus core.
authored
29 m4_define(ibus_maybe_datestamp,
30 m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
31
32 m4_define([ibus_version],
33 ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
34
35 AC_INIT([package_name], [ibus_version], [http://github.com/ueno/ibus-skk/issues], [package_name])
ee2a6de @ueno Cleanup Makefile.am.
authored
36 AM_INIT_AUTOMAKE([silent-rules])
fd2d2fc @ueno Initial commit.
authored
37 AC_GNU_SOURCE
38
39 AC_CONFIG_HEADERS([config.h])
40 AC_CONFIG_MACRO_DIR([m4])
41
42 # define PACKAGE_VERSION_* variables
43 AM_SANITY_CHECK
44 AM_MAINTAINER_MODE
45 AM_DISABLE_STATIC
46 AC_PROG_CC
47 AC_PROG_CXX
68bf862 @ueno Use gnome-autogen.sh.
authored
48 AM_PROG_CC_C_O
fd2d2fc @ueno Initial commit.
authored
49 AC_ISC_POSIX
50 AC_HEADER_STDC
68bf862 @ueno Use gnome-autogen.sh.
authored
51 IT_PROG_INTLTOOL([0.35.0])
fd2d2fc @ueno Initial commit.
authored
52 AM_PROG_LIBTOOL
53
54 # For dislpay Date
55 m4_define(ibus_maybe_datedisplay,
56 m4_esyscmd([if test x]ibus_released[ != x1; then date '+%a %b %d %Y' | tr -d '\n\r'; fi]))
57 m4_define([ibus_datedisplay], ibus_maybe_datedisplay)
58 DATE_DISPLAY="ibus_datedisplay"
59 AC_SUBST(DATE_DISPLAY)
60
c08a552 @ueno Remove compile time Python dependency.
authored
61 # check ibus
62 PKG_CHECK_MODULES(IBUS, [ibus-1.0 >= 1.4.0], ,
63 AC_MSG_ERROR([can't find ibus]))
64
3a13252 @ueno Fix property selection with keyboard shortcuts
authored
65 PKG_CHECK_EXISTS([ibus-1.0 >= 1.5.0], have_ibus_1_5=yes, have_ibus_1_5=no)
66 AM_CONDITIONAL([IBUS_1_5], [test x$have_ibus_1_5 = xyes])
67
c08a552 @ueno Remove compile time Python dependency.
authored
68 # check libskk
d79f624 @ueno Require libskk 1.0.2 for libgee compatibility
authored
69 PKG_CHECK_MODULES(LIBSKK, [libskk >= 1.0.2], ,
ad0b820 @ueno Port to Vala from Python using libskk.
authored
70 AC_MSG_ERROR([can't find libskk]))
fd2d2fc @ueno Initial commit.
authored
71
ad0b820 @ueno Port to Vala from Python using libskk.
authored
72 # check gtk+
73 PKG_CHECK_MODULES(GTK, [gtk+-3.0], ,
74 AC_MSG_ERROR([can't find gtk+-3.0]))
75
76 # check vala
77 AM_PROG_VALAC([0.10.0])
78
79 AC_PATH_PROG(VALAC, valac, valac)
80 AC_SUBST(VALAC)
81 AC_SUBST(VALAFLAGS)
fd2d2fc @ueno Initial commit.
authored
82
f0a77e6 @ueno Re-add PO stuff.
authored
83 # define GETTEXT_* variables
68bf862 @ueno Use gnome-autogen.sh.
authored
84 GETTEXT_PACKAGE=ibus-skk
f0a77e6 @ueno Re-add PO stuff.
authored
85 AC_SUBST(GETTEXT_PACKAGE)
86 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.])
87
fd2d2fc @ueno Initial commit.
authored
88 # OUTPUT files
f0a77e6 @ueno Re-add PO stuff.
authored
89 AC_CONFIG_FILES([ po/Makefile.in
fd2d2fc @ueno Initial commit.
authored
90 Makefile
09c280b @ueno Include ibus-skk.spec.in for Fedora.
authored
91 ibus-skk.spec
ad0b820 @ueno Port to Vala from Python using libskk.
authored
92 src/Makefile
93 src/ibus-skk-preferences.ui
fd2d2fc @ueno Initial commit.
authored
94 icons/Makefile
95 m4/Makefile
96 ])
97
98 AC_OUTPUT
Something went wrong with that request. Please try again.