source: trunk/dports/cross/i386-mingw32-libunicows/Portfile

Last change on this file was 112299, checked in by jmr@…, 4 years ago

i386-mingw32-libunicows: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 112299 2013-10-17 09:58:03Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    i386-mingw32-libunicows
6version                 1.1.1
7categories              cross devel
8license                 MIT
9platforms               darwin
10maintainers             nomaintainer
11description             makes writing Unicode-enabled applications for Win 9x a bit easier
12long_description        Traditionally, win32 Unicode API was only available on \
13                                Windows NT or 2000. If you wanted to take advantage of Unicode \
14                                in your application and support Windows 95/98 at the same time, \
15                                your only option was to deploy two executables, one for NT and \
16                                one for 9X. Fortunately, this changed in 2001 when MS (finally!) \
17                                released MSLU runtime that allows Unicode applications to run \
18                                under Windows 9X. \
19                                \
20                                Less fortunately, this solution requires that you use a special \
21                                statically linked import library that decides at runtime whether \
22                                to load symbols from system libraries like kernel32.dll or \
23                                user32.dll (in case of Windows NT) or from unicows.dll \
24                                (which provides Unicode emulation layer under 9X). \
25                                This import library is only available for Microsoft Visual C++ \
26                                and is only part of the new Platform SDK, which is rather huge package. \
27                                libunicows contains independent implementation of the import library. \
28                                \
29                                For a free runtime DLL, take a look at http://opencow.sourceforge.net/
30
31homepage                http://libunicows.sourceforge.net/
32master_sites            sourceforge:project/libunicows/libunicows/${version}
33distfiles               libunicows-${version}-src.tar.gz
34                                #libunicows-${version}-mingw32.zip # (binary)
35
36checksums               libunicows-${version}-src.tar.gz \
37                                        md5 e321b0fd4d0a50fcc83fd66dbed67ce1 \
38                                        sha1 7ad79f37e6c7c645cc002507af9bf22a5b8389c6 \
39                                        rmd160 0ce07693aceaa1c9b9d333666b8154c408331499
40
41depends_build           port:nasm \
42                        port:i386-mingw32-gcc \
43                        port:i386-mingw32-binutils
44
45set worksrcdir  libunicows-${version}/src
46post-extract {
47        reinplace "s/= gcc/= i386-mingw32-gcc/" ${worksrcpath}/makefile.mingw32
48        reinplace "s/= ld/= i386-mingw32-ld/" ${worksrcpath}/makefile.mingw32
49        reinplace "s/= ranlib/= i386-mingw32-ranlib/" ${worksrcpath}/makefile.mingw32
50        reinplace "s/= ar/= i386-mingw32-ar/" ${worksrcpath}/makefile.mingw32
51        reinplace "s/= strip/= i386-mingw32-strip/" ${worksrcpath}/makefile.mingw32
52}
53
54use_configure   no
55post-configure {
56        xinstall -d ${worksrcpath}/build/mingw32
57        xinstall -d ${worksrcpath}/../lib/mingw32
58}
59
60build.cmd       make -f makefile.mingw32
61
62destroot         {}
63post-destroot {
64        xinstall -d -m 755 ${destroot}${prefix}/i386-mingw32/lib
65        xinstall -m 644 ${workpath}/libunicows-${version}/lib/mingw32/libunicows.a \
66                ${destroot}${prefix}/i386-mingw32/lib
67
68        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
69        xinstall -m 644 ${workpath}/libunicows-${version}/docs/license.txt \
70                        ${workpath}/libunicows-${version}/docs/readme.txt \
71                ${destroot}${prefix}/share/doc/${name}
72}
73
74# ${prefix}/i386-mingw32 is outside mtree
75destroot.violate_mtree  yes
Note: See TracBrowser for help on using the repository browser.