source: trunk/dports/x11/kinput2/Portfile

Last change on this file was 137621, checked in by mf2k@…, 2 years ago

a2ps-j canna chasen chasen-base chasen-ipadic chasen-ipadic-sjis chasen-ipadic-utf8 chasen-naist-jdic chasen-naist-jdic-sjis chasen-naist-jdic-utf8 cocot darts dejavu-fonts disvf FDclone ghostscript ghostscript-fonts-hiragino gnushogi jnethack kakasi kinput2 lv makejvf nkf p5-nkf p5-text-chasen p5-text-kakasi pTeX smartmontools urw-fonts: Ports abandoned by takanori. (#47537)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 137621 2015-06-15 14:56:57Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            kinput2
6version         3.1
7revision        5
8categories      x11 japanese
9maintainers     nomaintainer
10description     Input server of Japanese text
11long_description \
12                ${description}
13platforms       darwin
14license         Restrictive/Distributable
15homepage
16master_sites    macports \
17                ftp://ftp.sra.co.jp/pub/x11/kinput2/
18distname        ${name}-v${version}
19patchfiles      patch-cmd_Kinput2.ad.diff \
20                patch-lib_Canna.c.diff \
21                patch-lib_IMProto.c.diff
22checksums       md5 2de20576f150248d1fdfe66d7cc4e510 \
23                sha1 48050f70e7c0cc67193ea260f8d7f6e822a02ca3 \
24                rmd160 c56684769859bbee5f8238cd1af061796ff931e8
25
26depends_lib     port:xorg-libXaw \
27                port:xorg-libXp
28
29if {[variant_isset wnn]} {
30} elseif {[variant_isset canna]} {
31} elseif {[variant_isset sj3]} {
32} else {
33    default_variants +canna
34}
35
36post-patch {
37    move ${worksrcpath}/Kinput2.conf ${worksrcpath}/Kinput2.conf.orig
38    set fd [open [file join ${worksrcpath} Kinput2.conf] w 0644]
39    puts ${fd} "CCDEF_DIR = \$(LIBDIR)/ccdef"
40    if {[variant_isset canna]} {
41        puts ${fd} "#define UseCanna"
42        puts ${fd} "CANNAINSTDIR = ${prefix}"
43        puts ${fd} "CANNASRC = \$(CANNAINSTDIR)/include"
44        puts ${fd} "CANNALIB = -lcanna16 -L\$(CANNAINSTDIR)/lib"
45    }
46    puts ${fd} "TRANSPORTDEFS = -DNO_TCP_TRANSPORT"
47    close ${fd}
48}
49
50use_xmkmf      yes
51
52pre-build {
53    system "cd ${worksrcpath} && make Makefiles PREFIX=${prefix}"
54    system "cd ${worksrcpath} && make depend PREFIX=${prefix}"
55
56    build.target {}
57    if {[variant_isset universal]} {
58        build.post_args PREFIX=${prefix} CDEBUGFLAGS=\"${configure.cflags} ${configure.universal_cflags}\"
59    } else {
60        build.post_args PREFIX=${prefix} CDEBUGFLAGS=\"${configure.cflags}\"
61    }
62}
63use_parallel_build  yes
64
65pre-destroot {
66    destroot.target install install.man
67    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"
68}
69
70post-destroot {
71    delete ${destroot}${prefix}/lib/app-defaults
72
73    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
74    xinstall -m 644 -W ${worksrcpath} NEWS README ${destroot}${prefix}/share/doc/${name}
75    eval xinstall -m 644 [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}/doc
76}
77
78variant universal {}
79
80variant canna description {Use canna as Japanese conversion engine} {
81    depends_lib-append   port:canna
82}
83
84livecheck.type  none
Note: See TracBrowser for help on using the repository browser.