PortSystem		1.0
name			SoXt
version			1.2.2
revision        3
license         BSD
description		Xt/Motif glue library for Coin
long_description	SoXt provides the programmer with a high-level \
	application programmer's interface (API) in C++. The library   \
	primarily includes a class-hierarchy of viewer components of   \
	varying functionality and complexity, with various modes for   \
	the end-user to control the 3D-scene camera interaction.

categories		x11 graphics devel
homepage		http://www.coin3d.org/lib/soxt/
maintainers		nomaintainer
master_sites    http://ftp.coin3d.org/coin/src/all/
checksums       rmd160  8fe0aabc92ca1fefc738f7016d3a5f280e9f9869 \
                sha256  46bed3ef6a9ad8aa53bbe2e863a1806c270a2a7cf02e2eea302c452dc4c40da1 \
                size    883830
patchfiles      configure-prefix.diff

depends_build \
	path:bin/doxygen:doxygen \
	port:autoconf

depends_lib \
	port:libGLU \
	port:mesa \
	port:xorg-libXi \
	port:xorg-libXmu \
	port:xpm \
	lib:libXm:motif \
	port:Coin

configure.args		--enable-man --mandir=${prefix}/share/man \
			--with-coin=${prefix} --with-mesa --with-opengl=${prefix} \
			--x-include=${prefix}/include --x-lib=${prefix}/lib

platform darwin {
	configure.args-append	--enable-darwin-x11
}

# The aux scripts are too old to know that aarch64-darwin is a thing.
pre-configure {
    file copy -force ${prefix}/share/autoconf/build-aux/config.guess ${worksrcpath}/config.guess
    file copy -force ${prefix}/share/autoconf/build-aux/config.sub   ${worksrcpath}/config.sub
}

