Revision: 100859 https://trac.macports.org/changeset/100859 Author: ryandesign@macports.org Date: 2012-12-30 01:27:44 -0800 (Sun, 30 Dec 2012) Log Message: ----------- gle-graphics: new port, version 4.2.4c (#28806) Added Paths: ----------- trunk/dports/graphics/gle-graphics/ trunk/dports/graphics/gle-graphics/Portfile trunk/dports/graphics/gle-graphics/files/ trunk/dports/graphics/gle-graphics/files/patch-install_name.diff trunk/dports/graphics/gle-graphics/files/patch-qgle-carbon.diff trunk/dports/graphics/gle-graphics/files/patch-qgle-glu.diff trunk/dports/graphics/gle-graphics/files/patch-qgle-libgs.diff Added: trunk/dports/graphics/gle-graphics/Portfile =================================================================== --- trunk/dports/graphics/gle-graphics/Portfile (rev 0) +++ trunk/dports/graphics/gle-graphics/Portfile 2012-12-30 09:27:44 UTC (rev 100859) @@ -0,0 +1,103 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 + +name gle-graphics +version 4.2.4c +set major [lindex [split ${version} .] 0] +categories graphics +platforms darwin +maintainers transientskp.org:swinbank +license BSD + +description Graphics Layout Engine + +long_description A graphics scripting language designed for creating \ + publication quality graphics, plots, diagrams, figures \ + and slides. + +homepage http://glx.sourceforge.net/ +master_sites sourceforge:project/glx/gle${major}%20%28Current%20Active%20Version%29/${version} + +distname ${name}-${version}f-src + +checksums rmd160 7628b7dce259708034f1c22af59d2002aa2ef1ee \ + sha256 21715f2943ca528ec94a8e129175693afc3b59bb03f92540a2150ffe72ab47ef + +depends_build port:pkgconfig + +depends_lib path:lib/pkgconfig/cairo.pc:cairo \ + port:jpeg \ + port:libpng \ + port:poppler \ + port:tiff \ + port:zlib + +worksrcdir ${name}-${version} + +patchfiles patch-install_name.diff \ + patch-qgle-carbon.diff \ + patch-qgle-libgs.diff \ + patch-qgle-glu.diff + +post-patch { + reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/gui/qgslibloader.cpp +} + +configure.args --with-jpeg=${prefix} \ + --with-png=${prefix} \ + --with-poppler \ + --with-tiff=${prefix} \ + --with-z=${prefix} \ + --with-qt=no \ + --with-libgle=yes \ + --with-manip=yes \ + --with-debug=no \ + --with-extrafonts=yes \ + --with-arch=no \ + --with-staticlink=no + +# fix me +#universal_variant no + +if {${name} == ${subport}} { + categories-append aqua + + post-destroot { + set docdir ${prefix}/share/doc/${subport} + xinstall -d ${destroot}${docdir} + xinstall -m 644 -W ${worksrcpath} \ + LICENSE.txt \ + README.txt \ + ${destroot}${docdir} + } + + livecheck.type regex + livecheck.url ${homepage}downloads/downloads.html + livecheck.regex ${name}-(\[0-9A-Za-z.\]+)f-src${extract.suffix} +} else { + livecheck.type none +} + +subport QGLE { + license GPL-2+ + + description graphical user interface of GLE + + long_description ${subport} is the ${description}. + + depends_lib-append port:${name} \ + port:qt4-mac \ + port:ghostscript + + configure.args-delete --with-qt=no + configure.args-append --with-qt=${prefix} + + build.target gui + use_parallel_build no + + destroot { + copy ${worksrcpath}/build/bin/QGLE.app ${destroot}${applications_dir} + } +} Property changes on: trunk/dports/graphics/gle-graphics/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/graphics/gle-graphics/files/patch-install_name.diff =================================================================== --- trunk/dports/graphics/gle-graphics/files/patch-install_name.diff (rev 0) +++ trunk/dports/graphics/gle-graphics/files/patch-install_name.diff 2012-12-30 09:27:44 UTC (rev 100859) @@ -0,0 +1,11 @@ +--- src/gle/Makefile.in.orig 2010-11-13 05:47:00.000000000 -0600 ++++ src/gle/Makefile.in 2012-12-30 01:58:30.000000000 -0600 +@@ -144,7 +144,7 @@ + $(CXX) $(LIBGLE_CPPFLAGS) -c $< -o $@ + + $(PROJECT_BINDIR)/lib/libgle-graphics-@GLE_VERSION@.dylib: $(GLEOBJS) $(OBJECTS) $(LINKOBJS) +- $(CXX) -dynamiclib -install_name libgle-graphics-@GLE_VERSION@.dylib $(LINK_OPTS) $(LIBGLE_LDFLAGS) -o $(PROJECT_BINDIR)/lib/libgle-graphics-@GLE_VERSION@.dylib $(OBJECTS) $(LINKOBJS) $(LIBS) $(LIBGLE_ELIBS) ++ $(CXX) -dynamiclib -install_name $(INSTALL_LIB)/libgle-graphics-@GLE_VERSION@.dylib $(LINK_OPTS) $(LIBGLE_LDFLAGS) -o $(PROJECT_BINDIR)/lib/libgle-graphics-@GLE_VERSION@.dylib $(OBJECTS) $(LINKOBJS) $(LIBS) $(LIBGLE_ELIBS) + + $(PROJECT_BINDIR)/lib/libgle-graphics-@GLE_VERSION@.so: $(GLEOBJS) $(OBJECTS) $(LINKOBJS) + $(CXX) -shared -Wl,-soname,libgle-graphics-@GLE_VERSION@.so $(LINK_OPTS) $(LIBGLE_LDFLAGS) -o $(PROJECT_BINDIR)/lib/libgle-graphics-@GLE_VERSION@.so $(OBJECTS) $(LINKOBJS) $(LIBS) $(LIBGLE_ELIBS) Added: trunk/dports/graphics/gle-graphics/files/patch-qgle-carbon.diff =================================================================== --- trunk/dports/graphics/gle-graphics/files/patch-qgle-carbon.diff (rev 0) +++ trunk/dports/graphics/gle-graphics/files/patch-qgle-carbon.diff 2012-12-30 09:27:44 UTC (rev 100859) @@ -0,0 +1,13 @@ +diff --git src/gui/qgle.pro.in src/gui/qgle.pro.in +index 2ce8375..b8d1286 100644 +--- src/gui/qgle.pro.in ++++ src/gui/qgle.pro.in +@@ -128,7 +128,7 @@ win32 { + macx { + ICON += images/gle.icns + SOURCES += macspecific.cpp +-# LIBS += -framework Cocoa ++ LIBS += -framework Carbon + } + + DISTFILES += readme.txt \ Added: trunk/dports/graphics/gle-graphics/files/patch-qgle-glu.diff =================================================================== --- trunk/dports/graphics/gle-graphics/files/patch-qgle-glu.diff (rev 0) +++ trunk/dports/graphics/gle-graphics/files/patch-qgle-glu.diff 2012-12-30 09:27:44 UTC (rev 100859) @@ -0,0 +1,37 @@ +diff --git a/src/gui/3dviewer.cpp b/src/gui/3dviewer.cpp +index 7a016bb..00e14e6 100644 +--- src/gui/3dviewer.cpp ++++ src/gui/3dviewer.cpp +@@ -27,10 +27,7 @@ + #include "../gle/gle-block.h" + #include "../gle/surface/gsurface.h" + +-#ifdef HAVE_LIBGLU_H +- #include <GL/glu.h> +-#endif +- ++#include <glu.h> + #include <math.h> + + QGLE3DWidget::QGLE3DWidget(QWidget *parent, GLEInterface* iface) +diff --git a/src/gui/qgle.pro.in b/src/gui/qgle.pro.in +index cd33a61..46d350b 100644 +--- src/gui/qgle.pro.in ++++ src/gui/qgle.pro.in +@@ -129,6 +129,7 @@ macx { + ICON += images/gle.icns + SOURCES += macspecific.cpp + LIBS += -framework Carbon ++ LIBS += -framework OpenGL + } + + DISTFILES += readme.txt \ +@@ -177,7 +178,7 @@ DESTDIR = ../../build/bin + + # add the "lib" directory to the search path of the linker + unix { +- LIBS += @QT_RPATH@ @QT_LIBGLU_LIB@ ++ LIBS += @QT_RPATH@ + } + + QMAKE_CXXFLAGS += @QT_CPPFLAGS@ Added: trunk/dports/graphics/gle-graphics/files/patch-qgle-libgs.diff =================================================================== --- trunk/dports/graphics/gle-graphics/files/patch-qgle-libgs.diff (rev 0) +++ trunk/dports/graphics/gle-graphics/files/patch-qgle-libgs.diff 2012-12-30 09:27:44 UTC (rev 100859) @@ -0,0 +1,25 @@ +diff --git src/gui/qgslibloader.cpp src/gui/qgslibloader.cpp +index 007d049..f9212af 100644 +--- src/gui/qgslibloader.cpp ++++ src/gui/qgslibloader.cpp +@@ -259,19 +259,7 @@ int GSLibFunctions::loadLibrary(const QString& location, QString& last_error) { + gsapi_revision_t rv; + /* Try to load the library */ + if (location == "") { +- #ifdef Q_WS_X11 +- #if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__) +- // try 64 bit libraries on 64 bit system +- tryLocationLoop("/usr/lib64"); +- tryLocationLoop("/usr/local/lib64"); +- #endif // 64 bit +- tryLocationLoop("/usr/lib"); +- tryLocationLoop("/usr/local/lib"); +- #endif // Q_WS_X11 +- #ifdef Q_WS_MAC +- tryLocation("/usr/lib/libgs.dylib"); +- tryLocation("/usr/local/lib/libgs.dylib"); +- #endif ++ tryLocation("@@PREFIX@@/lib/libgs.dylib"); + } else { + m_LibGSLocation = location; + QString libloc = location;
participants (1)
-
ryandesign@macports.org