aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/openvanilla-modules/Makefile
blob: 88674d0bd15fe450e4f2a8496cf273b55f18d2a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# Created by: Leland Wang <llwang@infor.org>
# $FreeBSD$

PORTNAME=   openvanilla-modules
PORTVERSION=    0.7.2.20070514
PORTREVISION=   4
CATEGORIES= textproc
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= rafan
DISTNAME=   openvanilla-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Input method modules for OpenVanilla

BUILD_DEPENDS=  ${LOCALBASE}/include/OpenVanilla/OpenVanilla.h:${PORTSDIR}/textproc/openvanilla-framework
RUN_DEPENDS=    ${LOCALBASE}/lib/scim-1.0/1.4.0/IMEngine/OVLoader-SCIM.so:${PORTSDIR}/textproc/scim-openvanilla

USE_AUTOTOOLS=  libtool:env
USE_GMAKE=  yes
USE_PERL5_BUILD=    yes

OPTIONS_DEFINE=     OVIMArray OVIMBig5 OVIMGeneric OVIMPOJ_Holo OVIMPhonetic OVIMRoman \
            OVIMSpaceChewing OVIMTibetan OVIMUnicode
OPTIONS_DEFAULT=    OVIMArray OVIMGeneric OVIMPOJ_Holo OVIMPhonetic OVIMSpaceChewing
OVIMArray_DESC=     Array Input Module
OVIMBig5_DESC=      Big5 Input Module
OVIMGeneric_DESC=   Generic Input Module
OVIMPOJ_Holo_DESC=  POJ-Holo Input Module
OVIMPhonetic_DESC=  Phonetic Input Module
OVIMRoman_DESC=     Roman Input Module
OVIMSpaceChewing_DESC=  Chewing Input Module
OVIMTibetan_DESC=   Tibetan Input Module
OVIMUnicode_DESC=   Unicode Input Module

MAKE_ARGS+= INSTALL_PREFIX=${PREFIX} OV_INCLUDE=${LOCALBASE}/include

.include <bsd.port.options.mk>

.if (${OSVERSION} >= 800501)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Modules-SharedSource-OVCINInfo.cpp
.endif

.if ${PORT_OPTIONS:MOVIMArray}
PLIST_SUB+= OVIMArray=""
.else
PLIST_SUB+= OVIMArray="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMBig5}
PLIST_SUB+= OVIMBig5=""
.else
PLIST_SUB+= OVIMBig5="@comment "
.endif
#.if ${PORT_OPTIONS:MOVIMBoshiamy}
#PLIST_SUB+=    OVIMBoshiamy=""
#.else
#PLIST_SUB+=    OVIMBoshiamy="@comment "
#.endif
.if ${PORT_OPTIONS:MOVIMGeneric}
PLIST_SUB+= OVIMGeneric=""
.else
PLIST_SUB+= OVIMGeneric="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMPOJ_Holo}
PLIST_SUB+= OVIMPOJ_Holo=""
.else
PLIST_SUB+= OVIMPOJ_Holo="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMPhonetic}
PLIST_SUB+= OVIMPhonetic=""
.else
PLIST_SUB+= OVIMPhonetic="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMRoman}
PLIST_SUB+= OVIMRoman=""
.else
PLIST_SUB+= OVIMRoman="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMSpaceChewing}
PLIST_SUB+= OVIMSpaceChewing=""
.else
PLIST_SUB+= OVIMSpaceChewing="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMTibetan}
PLIST_SUB+= OVIMTibetan=""
.else
PLIST_SUB+= OVIMTibetan="@comment "
.endif
.if ${PORT_OPTIONS:MOVIMUnicode}
PLIST_SUB+= OVIMUnicode=""
.else
PLIST_SUB+= OVIMUnicode="@comment "
.endif

#.if ${PORT_OPTIONS:MOVIMBoshiamy}
#DISTFILES+=    liu5.cin
#NOFETCHFILES=  liu5.cin
#EXTRACT_ONLY+= openvanilla-${PORTVERSION}${EXTRACT_SUFX}
#LIB_DEPENDS+=  sqlite3.8:${PORTSDIR}/databases/sqlite3
#LDFLAGS+=  ${LOCALBASE}/lib
#.if !exists(${DISTDIR}/liu5.cin)
#IGNORE=        need liu5.cin from a legal copy of LIU57 standard version CDROM to use Boshiamy input module. Please copy /UNIX/xcin2.5/liu5.cin from the CDROM to ${DISTDIR} and run make again
#.endif
#post-extract:
#   @${CP} ${DISTDIR}/liu5.cin ${WRKSRC}/Modules/OVIMBoshiamy
#.endif

#.if ${PORT_OPTIONS:MOVIMSpaceChewing}
#LIB_DEPENDS+=  chewing.3:${PORTSDIR}/chinese/libchewing
#.endif

do-build:
.if ${PORT_OPTIONS:MOVIMArray}
    @(cd ${WRKSRC}/Modules/OVIMArray; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMBig5}
    @(cd ${WRKSRC}/Modules/OVIMBig5; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
#.if ${PORT_OPTIONS:MOVIMBoshiamy}
#   @(cd ${WRKSRC}/Modules/OVIMBoshiamy; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
#.endif
.if ${PORT_OPTIONS:MOVIMGeneric}
    @(cd ${WRKSRC}/Modules/OVIMGeneric; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMPOJ_Holo}
    @(cd ${WRKSRC}/Modules/OVIMPOJ-Holo; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMPhonetic}
    @(cd ${WRKSRC}/Modules/OVIMPhonetic; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMSpaceChewing}
    @(cd ${WRKSRC}/Modules/OVIMSpaceChewing0.3; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} data all)
.endif
.if ${PORT_OPTIONS:MOVIMRoman}
    @(cd ${WRKSRC}/Modules/OVIMRoman; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMTibetan}
    @(cd ${WRKSRC}/Modules/OVIMTibetan; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif
.if ${PORT_OPTIONS:MOVIMUnicode}
    @(cd ${WRKSRC}/Modules/OVIMUnicode; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} all)
.endif

do-install:
.if ${PORT_OPTIONS:MOVIMArray}
    @(cd ${WRKSRC}/Modules/OVIMArray; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMBig5}
    @(cd ${WRKSRC}/Modules/OVIMBig5; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
#.if ${PORT_OPTIONS:MOVIMBoshiamy}
#   @(cd ${WRKSRC}/Modules/OVIMBoshiamy; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
#.endif
.if ${PORT_OPTIONS:MOVIMGeneric}
    @(cd ${WRKSRC}/Modules/OVIMGeneric; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMPOJ_Holo}
    @(cd ${WRKSRC}/Modules/OVIMPOJ-Holo; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMPhonetic}
    @(cd ${WRKSRC}/Modules/OVIMPhonetic; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMRoman}
    @(cd ${WRKSRC}/Modules/OVIMRoman; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMSpaceChewing}
    @(cd ${WRKSRC}/Modules/OVIMSpaceChewing0.3; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMTibetan}
    @(cd ${WRKSRC}/Modules/OVIMTibetan; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif
.if ${PORT_OPTIONS:MOVIMUnicode}
    @(cd ${WRKSRC}/Modules/OVIMUnicode; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} install)
.endif

.include <bsd.port.mk>