[26663] trunk/dports/cross

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 2 00:23:25 PDT 2007


Revision: 26663
          http://trac.macosforge.org/projects/macports/changeset/26663
Author:   afb at macports.org
Date:     2007-07-02 00:23:24 -0700 (Mon, 02 Jul 2007)

Log Message:
-----------
new port, closes #11030

Added Paths:
-----------
    trunk/dports/cross/i386-mingw32-libunicows/
    trunk/dports/cross/i386-mingw32-libunicows/Portfile

Added: trunk/dports/cross/i386-mingw32-libunicows/Portfile
===================================================================
--- trunk/dports/cross/i386-mingw32-libunicows/Portfile	                        (rev 0)
+++ trunk/dports/cross/i386-mingw32-libunicows/Portfile	2007-07-02 07:23:24 UTC (rev 26663)
@@ -0,0 +1,74 @@
+# $Id$
+
+PortSystem 1.0
+
+name			i386-mingw32-libunicows
+version			1.1.1
+categories		cross devel
+platforms		darwin
+maintainers		afb at macports.org openmaintainer at macports.org
+description		makes writing Unicode-enabled applications for Win 9x a bit easier
+long_description	Traditionally, win32 Unicode API was only available on \
+				Windows NT or 2000. If you wanted to take advantage of Unicode \
+				in your application and support Windows 95/98 at the same time, \
+				your only option was to deploy two executables, one for NT and \
+				one for 9X. Fortunately, this changed in 2001 when MS (finally!) \
+				released MSLU runtime that allows Unicode applications to run \
+				under Windows 9X. \
+				\
+				Less fortunately, this solution requires that you use a special \
+				statically linked import library that decides at runtime whether \
+				to load symbols from system libraries like kernel32.dll or \
+				user32.dll (in case of Windows NT) or from unicows.dll \
+				(which provides Unicode emulation layer under 9X). \
+				This import library is only available for Microsoft Visual C++ \
+				and is only part of the new Platform SDK, which is rather huge package. \
+				libunicows contains independent implementation of the import library. \
+				\
+				For a free runtime DLL, take a look at http://opencow.sourceforge.net/
+
+homepage		http://libunicows.sourceforge.net/
+master_sites		sourceforge:libunicows
+distfiles		libunicows-${version}-src.tar.gz
+				#libunicows-${version}-mingw32.zip # (binary)
+
+checksums		libunicows-${version}-src.tar.gz \
+					md5 e321b0fd4d0a50fcc83fd66dbed67ce1 \
+				libunicows-${version}-src.tar.gz \
+					sha1 7ad79f37e6c7c645cc002507af9bf22a5b8389c6 \
+				libunicows-${version}-src.tar.gz \
+					rmd160 0ce07693aceaa1c9b9d333666b8154c408331499 \
+
+depends_build		port:nasm \
+			port:i386-mingw32-gcc \
+			port:i386-mingw32-binutils
+
+set worksrcdir	libunicows-${version}/src
+post-extract {
+	reinplace "s/= gcc/= i386-mingw32-gcc/" ${worksrcpath}/makefile.mingw32
+	reinplace "s/= ld/= i386-mingw32-ld/" ${worksrcpath}/makefile.mingw32
+	reinplace "s/= ranlib/= i386-mingw32-ranlib/" ${worksrcpath}/makefile.mingw32
+	reinplace "s/= ar/= i386-mingw32-ar/" ${worksrcpath}/makefile.mingw32
+	reinplace "s/= strip/= i386-mingw32-strip/" ${worksrcpath}/makefile.mingw32
+}
+
+configure   	{}
+post-configure {
+	xinstall -d ${worksrcpath}/build/mingw32
+	xinstall -d ${worksrcpath}/../lib/mingw32
+}
+
+build.cmd 	make -f makefile.mingw32
+
+destroot  	 {}
+post-destroot {
+	cd ${workpath}/libunicows-${version}/lib/mingw32
+	xinstall -d -m 755 ${destroot}${prefix}/i386-mingw32/lib
+	xinstall -m 644 libunicows.a \
+		${destroot}${prefix}/i386-mingw32/lib
+
+	cd ${workpath}/libunicows-${version}/docs
+	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+	xinstall -m 644 license.txt readme.txt \
+		${destroot}${prefix}/share/doc/${name}
+}


Property changes on: trunk/dports/cross/i386-mingw32-libunicows/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070702/c799efe3/attachment.html


More information about the macports-changes mailing list