# $Id: Portfile 37912 2008-06-28 23:29:05Z ryandesign@macports.org $ PortSystem 1.0 name wine version 1.0 categories x11 maintainers ryandesign jwa openmaintainer homepage http://www.winehq.com/ platforms darwin use_bzip2 yes build.target depend all use_parallel_build yes description \ Wine Is Not an Emulator long_description \ Wine is an implementation of the Windows APIs on top of X11. master_sites \ sourceforge:wine \ http://ibiblio.org/pub/linux/system/emulators/wine/ checksums \ md5 95e793242aad5031692ab7c35d79e6cd \ sha1 84150abdda18bc34b187335c6862718a6e08d255 \ rmd160 1dbfa38e54e7d6269ad4110f22b2791393fd3b59 depends_lib \ lib:libX11.6:XFree86 \ port:expat \ port:fontconfig \ port:fontforge \ port:freetype \ port:jpeg \ port:libiconv \ port:libxml2 \ port:libxslt \ port:ncurses \ port:openssl \ port:render \ port:xrender \ port:zlib depends_build \ port:pkgconfig configure.ldflags-append \ -framework CoreServices \ -lz configure.args \ --x-includes=${x11prefix}/include/ pre-fetch { if { [string compare ${os.endian} "little"] != 0 } { return -code error "${name} only runs on little-endian computers, such as an Intel Mac." } } post-destroot { file rename ${destroot}${prefix}/bin/wine ${destroot}${prefix}/bin/wine-real xinstall -m 755 ${filespath}/winewrapper.sh ${destroot}${prefix}/bin/wine reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/bin/wine } livecheck.check sourceforge livecheck.regex "Source Packages (\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*) released.*"