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

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

pick some lint fluff, mark abandoned (Windows 95)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 75181 2011-01-17 09:02:10Z afb@macports.org $
2
3PortSystem 1.0
4
5name                    i386-mingw32-libunicows
6version                 1.1.1
7categories              cross devel
8platforms               darwin
9maintainers             nomaintainer
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                                        sha1 7ad79f37e6c7c645cc002507af9bf22a5b8389c6 \
38                                        rmd160 0ce07693aceaa1c9b9d333666b8154c408331499
39
40depends_build           port:nasm \
41                        port:i386-mingw32-gcc \
42                        port:i386-mingw32-binutils
43
44set worksrcdir  libunicows-${version}/src
45post-extract {
46        reinplace "s/= gcc/= i386-mingw32-gcc/" ${worksrcpath}/makefile.mingw32
47        reinplace "s/= ld/= i386-mingw32-ld/" ${worksrcpath}/makefile.mingw32
48        reinplace "s/= ranlib/= i386-mingw32-ranlib/" ${worksrcpath}/makefile.mingw32
49        reinplace "s/= ar/= i386-mingw32-ar/" ${worksrcpath}/makefile.mingw32
50        reinplace "s/= strip/= i386-mingw32-strip/" ${worksrcpath}/makefile.mingw32
51}
52
53use_configure   no
54post-configure {
55        xinstall -d ${worksrcpath}/build/mingw32
56        xinstall -d ${worksrcpath}/../lib/mingw32
57}
58
59build.cmd       make -f makefile.mingw32
60
61destroot         {}
62post-destroot {
63        xinstall -d -m 755 ${destroot}${prefix}/i386-mingw32/lib
64        xinstall -m 644 ${workpath}/libunicows-${version}/lib/mingw32/libunicows.a \
65                ${destroot}${prefix}/i386-mingw32/lib
66
67        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
68        xinstall -m 644 ${workpath}/libunicows-${version}/docs/license.txt \
69                        ${workpath}/libunicows-${version}/docs/readme.txt \
70                ${destroot}${prefix}/share/doc/${name}
71}
72
73# ${prefix}/i386-mingw32 is outside mtree
74destroot.violate_mtree  yes
75
Note: See TracBrowser for help on using the repository browser.