You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
PortSystem 1.0
|
|
|
|
name kinput2
|
|
version 3.1
|
|
revision 5
|
|
categories x11 japanese
|
|
maintainers nomaintainer
|
|
description Input server of Japanese text
|
|
long_description \
|
|
${description}
|
|
platforms darwin
|
|
license Restrictive/Distributable
|
|
homepage
|
|
master_sites macports \
|
|
ftp://ftp.sra.co.jp/pub/x11/kinput2/
|
|
distname ${name}-v${version}
|
|
patchfiles patch-cmd_Kinput2.ad.diff \
|
|
patch-lib_Canna.c.diff \
|
|
patch-lib_IMProto.c.diff
|
|
checksums md5 2de20576f150248d1fdfe66d7cc4e510 \
|
|
sha1 48050f70e7c0cc67193ea260f8d7f6e822a02ca3 \
|
|
rmd160 c56684769859bbee5f8238cd1af061796ff931e8
|
|
|
|
depends_lib port:xorg-libXaw \
|
|
port:xorg-libXp
|
|
|
|
if {[variant_isset wnn]} {
|
|
} elseif {[variant_isset canna]} {
|
|
} elseif {[variant_isset sj3]} {
|
|
} else {
|
|
default_variants +canna
|
|
}
|
|
|
|
post-patch {
|
|
move ${worksrcpath}/Kinput2.conf ${worksrcpath}/Kinput2.conf.orig
|
|
set fd [open [file join ${worksrcpath} Kinput2.conf] w 0644]
|
|
puts ${fd} "CCDEF_DIR = \$(LIBDIR)/ccdef"
|
|
if {[variant_isset canna]} {
|
|
puts ${fd} "#define UseCanna"
|
|
puts ${fd} "CANNAINSTDIR = ${prefix}"
|
|
puts ${fd} "CANNASRC = \$(CANNAINSTDIR)/include"
|
|
puts ${fd} "CANNALIB = -lcanna16 -L\$(CANNAINSTDIR)/lib"
|
|
}
|
|
puts ${fd} "TRANSPORTDEFS = -DNO_TCP_TRANSPORT"
|
|
close ${fd}
|
|
}
|
|
|
|
use_xmkmf yes
|
|
|
|
pre-build {
|
|
system "cd ${worksrcpath} && make Makefiles PREFIX=${prefix}"
|
|
system "cd ${worksrcpath} && make depend PREFIX=${prefix}"
|
|
|
|
build.target {}
|
|
build.post_args PREFIX=${prefix} CDEBUGFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\"
|
|
}
|
|
use_parallel_build yes
|
|
|
|
pre-destroot {
|
|
destroot.target install install.man
|
|
destroot.post_args-append "PREFIX=${prefix} BINDIR=${prefix}/bin LIBDIR=${prefix}/lib CONFDIR=${prefix}/etc MANSOURCEPATH=${prefix}/share/man/man DOCDIR=${prefix}/share/doc/${name} XAPPLOADDIR=${prefix}/lib/X11/app-defaults"
|
|
}
|
|
|
|
post-destroot {
|
|
delete ${destroot}${prefix}/lib/app-defaults
|
|
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
|
|
xinstall -m 644 -W ${worksrcpath} NEWS README ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 644 {*}[glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}/doc
|
|
}
|
|
|
|
variant universal {}
|
|
|
|
variant canna description {Use canna as Japanese conversion engine} {
|
|
depends_lib-append port:canna
|
|
}
|
|
|
|
livecheck.type none
|