<?xml version="1.0"?>
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?>
<moduleset>

  <repository type="tarball" name="winswitch.org" href="http://winswitch.org"/>
  <repository type="tarball" name="xpra.org" href="https://xpra.org"/>

  <autotools id="rdesktop" autogen-sh="configure"
             autogenargs="--disable-credssp --disable-smartcard">
     <branch repo="winswitch.org" module="/src/rdesktop-1.8.1.tar.gz"
             hash="md5:f5382c5c85b0d2cc88b9b1aa9bbf1356"
             version="1.8.1"/>
  </autotools>

  <autotools id="tigervnc"
             autogenargs=""
             autogen-template="%(srcdir)s/configure --prefix %(prefix)s --libdir %(libdir)s %(autogenargs)s &amp;&amp; sed -i -e 's+-lXext -lX11+-lXext -lX11 -lintl -lgettextlib -L/usr/X11/lib/+g' unix/vncviewer/Makefile">
     <branch repo="winswitch.org" module="/src/tigervnc-1.1.0.tar.gz"
             hash="md5:1a5598b4a2ac530fb51411438959e11e"
             version="1.1.0"/>
  </autotools>

  <autotools id="nxcomp"
             skip-install="True"
             autogenargs=""
             autogen-template="%(srcdir)s/configure --prefix %(prefix)s --libdir %(libdir)s %(autogenargs)s &amp;&amp; curl -O -k http://winswitch.org/src/nxcomp.patch &amp;&amp; patch -p1 &lt; nxcomp.patch &amp;&amp; sed -i -e 's+-bundle+-dynamiclib+g' Makefile"
             makeargs="&amp;&amp; cp -Rvp libXcomp.so* ${JHBUILD_PREFIX}/lib/ &amp;&amp; echo ' -j 3 because jhbuild mucks with this'">
     <branch repo="winswitch.org" module="/src/nxcomp-3.5.0-2.tar.gz"
             hash="md5:ad8c0f133122c6d07732ca69c8759410"
             version="3.5.0-2"
             checkoutdir="nxcomp">
     <!-- MUST DO THIS AFTER configure patch file="http://winswitch.org/src/nxcomp.patch" strip="1" /-->
     </branch>
  </autotools>

  <autotools id="nxproxy"
             autogenargs=""
             autogen-template="%(srcdir)s/configure --prefix %(prefix)s --libdir %(libdir)s %(autogenargs)s &amp;&amp; sed -i -e 's/-lXcomp/-lXcomp -lpng -ljpeg -lz/' Makefile">
     <branch repo="winswitch.org" module="/src/nxproxy-3.5.0-1.tar.gz"
             hash="md5:488bb4d9b8e9f82dc272b4e6e9c57d30"
             version="3.5.0-1"
             checkoutdir="nxproxy">
     </branch>
  </autotools>

  <distutils id="xpra">
     <branch repo="xpra.org"
             module="/src/xpra-0.14.10.tar.xz"
             version="0.14.10"/>
  </distutils>

  <!-- FIXME: This works for now but fails when it does make. I haven't found any way to skip make or install this using the disutils module -->
  <autotools id="winswitch"
             skip-install="True"
             autogenargs=""
             autogen-template="curl -O -k http://winswitch.org/src/winswitch-osx-0.12.20.src.tar.bz2 &amp;&amp; tar -jxf winswitch-osx-0.12.20.src.tar.bz2 &amp;&amp; ln -sf winswitch-osx-0.12.20 osx &amp;&amp; PYTHONPATH=.:$PYTHONPATH ./setup.py install &amp;&amp; ./setup.py py2app &amp;&amp; cd osx/bundle &amp;&amp; ./make-app.sh">
     <branch repo="winswitch.org" module="/src/winswitch-0.12.20.src.tar.bz2"
             hash="md5:79dd00cf44ebd047f49602e147308310"
             version="0.12.20">
     </branch>
  </autotools>

  <metamodule id="osx-winswitch-deps">
    <dependencies>
      <dep package="rdesktop"/>
      <dep package="tigervnc"/>
      <dep package="nxcomp"/>
      <dep package="nxproxy"/>
      <dep package="xpra"/>
    </dependencies>
  </metamodule>


</moduleset>

