# $Id$ PortSystem 1.0 name enblend-devel version 3.1cvs # revision 20080118 categories graphics maintainers nomaintainer@macports.org description a tool to composite images long_description Enblend and enfuse are tools to composite overlapping \ images with invisible (or very difficult to see) \ seams. The sources are pulled straight from CVS - so \ be careful, this is not a release version. homepage http://enblend.sourceforge.net/ distname enblend platforms darwin fetch.type cvs cvs.root :pserver:anonymous@enblend.cvs.sourceforge.net:/cvsroot/enblend cvs.module enblend # It's possible to select a CS tag to build from (or a fixed date). Just # uncomment and add as neccessary. # # cvs.date 2008/01/18 # cvs.tag HEAD depends_build port:autoconf \ port:automake depends_lib port:lcms \ port:boost \ port:tiff \ port:jpeg \ port:libpng \ port:libxmi \ port:openexr \ port:zlib # We need to create our build infrastructure first, this generates the # neccessary files and runs autoconf/automake. # # The pre-configure commands for the universal variant is an evil hack - I # don't know how to deal with Apple setting the SDK folder as root prefix for # all library dependencies. # This workaround is very bad style, but I'm trying to get a universal build # for testing. It will definitely fail for all ${prefix} that don't use the # '/opt' directory. And it will break things, if you already did set a link # to '/opt' on your SDK root directory. # # Right now I disabled universal builds, as they don't work for me (due to # incompatibilities with the 'tiff' port (see MacPorts ticket #13946, # ). If it works # for you, just uncomment the parts below - but remember, it's still an evil # hack: # #pre-configure { # if {[variant_isset universal]} { # ui_msg "" # ui_msg "**************************************************" # ui_msg "" # ui_msg "Adding symbolic link to '/opt' into the SDK at" # ui_msg "'/Developer/SDKs/MacOSX10.4u.sdk/' ..." # ui_msg "" # ui_msg "**************************************************" # ui_msg "" # system "ln -s /opt /Developer/SDKs/MacOSX10.4u.sdk/opt" # } # # cd ${worksrcpath} # system "make -f Makefile.cvs" #} # #post-build { # if {[variant_isset universal]} { # ui_msg "" # ui_msg "**************************************************" # ui_msg "" # ui_msg "Removing symbolic link from the SDK root folder." # ui_msg "" # ui_msg "**************************************************" # ui_msg "" # system "rm /Developer/SDKs/MacOSX10.4u.sdk/opt" # } #} # # and comment out these: # universal_variant no pre-configure { cd ${worksrcpath} system "make -f Makefile.cvs" } variant imagecache \ description {Builds with image cache to allow processing of large files} \ { configure.args-append --enable-image-cache=yes } # This variant uses GPU support. At the moment this doesn't work with the # static "standalone" variant, as it would require more fiddling with the # patchfile to add the glew libraries hardcoded, too. # # I didn't test this and I doubt anyone really needs it - but anyway: here # it is. # variant gpu \ conflicts standalone \ description {Builds port with GPU support, requires OpenGL and GLEW} \ { depends_lib-append port:glew configure.args-append --with-apple-opengl-framework } # This one tries to generate a static build for redistribution - so Mac users # without MacPorts can also install it. Due to limitations in Mac OS X it is # quite hard to build static binaries, so this one still links against some # libraries provided by Apple in '/usr/lib'. # # I don't know how to change the library tests for autoconf/automake, so right # now I just use a dirty hack. The configure script checks for the libraries # in '/opt/local/lib', but the list it builds is substituted by a hard coded # list of static libraries with our patchfile. This variant builds for # installation in '/usr/local' instead of the MacPorts default location # (that would be ${prefix}, usually '/opt/local'). # # This will probably break sometime (as soon as the dependencies and libraries # used change), so watch out! I'll try to come up with a better solution. # variant standalone \ description {Builds a standalone version to install in '/usr/local'} \ { configure.pre_args-delete --prefix=${prefix} configure.pre_args-append --prefix=/usr/local destroot.violate_mtree yes patchfiles patch-configure.in configure.args-append --enable-static configure.ldflags -L/usr/lib \ -L${prefix}/lib }