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

Last change on this file since 26663 was 26663, checked in by afb@…, 13 years ago

new port, closes #11030

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