# $Id: Portfile,v 1.1 2005/03/22 09:43:45 mww Exp $

PortSystem 1.0

name		xmove
version		2.0beta2
categories	x11
platforms	darwin
maintainers	shadow@dementia.org
description	An X11 pseudoserver for moving windows between displays

long_description xmove lets you change which display an X Window System \
			program renders to - this could be a different monitor or \
			even a different machine.

homepage	ftp://ftp.cs.columbia.edu/pub/xmove/
master_sites	ftp://ftp.cs.columbia.edu/pub/xmove/
checksums	md5 d70107f7835b755bd4f57b47a8ac7b38

#if this is set, put manpages in man and not share/man
#prefix		${x11prefix}

distname	${portname}.${version}
patchfiles	patch-XMOVELib.c patch-externs.h patch-main.c patch-move_window.c \
			patch-print11.c patch-put_image.c patch-server.c patch-xmovectrl.h

worksrcdir	xmove

configure {
	system "cd ${worksrcpath}/xmove && xmkmf"
	system "cd ${worksrcpath}/xmovectrl && xmkmf"
}

build {
	system "cd ${worksrcpath}/xmove && make xmove"
	system "cd ${worksrcpath}/xmovectrl && make xmovectrl"
}

destroot {
	set mandir ${destroot}${prefix}/share/man/man1
	xinstall -d -m 755 ${destroot}${prefix}/bin ${mandir}
	xinstall -m 755 -W ${worksrcpath} xmove/xmove xmovectrl/xmovectrl \
		${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath}/man/man1 xmove.1 xmovectrl.1 ${mandir}
}
