Permalink
Browse files
cad/gtkwave: Using gtk-osx-application-gtk2 (with kludges)
Also added modeline and normalized whitespace.
- Loading branch information
| @@ -1,36 +1,52 @@ | ||
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 | ||
| PortSystem 1.0 | ||
|
|
||
| name gtkwave | ||
| version 3.3.48 | ||
| categories cad | ||
| platforms darwin | ||
| license GPL-2+ | ||
| maintainers nomaintainer | ||
| description A viewer for common electronic CAD waveform files. | ||
| long_description \ | ||
| GTKWave is a fully featured GTK+ based wave viewer for Unix \ | ||
| and Win32 which reads LXT, LXT2, VZT, and GHW files as well \ | ||
| as standard Verilog VCD/EVCD files and allows their viewing. | ||
| name gtkwave | ||
| version 3.3.48 | ||
| categories cad | ||
| platforms darwin | ||
| license GPL-2+ | ||
| maintainers nomaintainer | ||
| description A viewer for common electronic CAD waveform files. | ||
| long_description \ | ||
| GTKWave is a fully featured GTK+ based wave viewer for Unix \ | ||
| and Win32 which reads LXT, LXT2, VZT, and GHW files as well \ | ||
| as standard Verilog VCD/EVCD files and allows their viewing. | ||
|
|
||
| homepage http://gtkwave.sourceforge.net | ||
| master_sites sourceforge:project/gtkwave/gtkwave-${version} | ||
| homepage http://gtkwave.sourceforge.net | ||
| master_sites sourceforge:project/gtkwave/gtkwave-${version} | ||
|
|
||
| checksums rmd160 04d1d0a67a25d5cd19f6bb80d613c362e19c91e2 \ | ||
| sha256 420e25a0eddcb54fa137a9ffee9642d3b6fccebfbaf8d2296c687447015165fd | ||
| checksums rmd160 04d1d0a67a25d5cd19f6bb80d613c362e19c91e2 \ | ||
| sha256 420e25a0eddcb54fa137a9ffee9642d3b6fccebfbaf8d2296c687447015165fd | ||
|
|
||
| depends_build port:pkgconfig | ||
| depends_build port:pkgconfig | ||
|
|
||
| depends_lib port:bzip2 \ | ||
| port:gtk2 \ | ||
| port:tk \ | ||
| port:xz \ | ||
| port:zlib | ||
| depends_lib port:bzip2 \ | ||
| port:gtk2 \ | ||
| port:gtk-osx-application-gtk2 \ | ||
| port:tk \ | ||
| port:xz \ | ||
| port:zlib | ||
|
|
||
| configure.args --with-tcl=${prefix}/lib \ | ||
| --with-tk=${prefix}/lib \ | ||
| --disable-mime-update | ||
| post-patch { | ||
| reinplace {s/GtkOSXApplication/GtkosxApplication/g | ||
| s/GTK_TYPE_OSX_APPLICATION/GTKOSX_TYPE_APPLICATION/g | ||
| s/gtk_osxapplication/gtkosx_application/g | ||
| s/quartz_application/gtkosx_application/g} \ | ||
| ${worksrcpath}/src/main.c \ | ||
| ${worksrcpath}/src/menu.c \ | ||
| ${worksrcpath}/src/rc.c \ | ||
| ${worksrcpath}/src/savefile.c \ | ||
| ${worksrcpath}/src/savefile.h | ||
| } | ||
|
|
||
| configure.args --with-tcl=${prefix}/lib \ | ||
| --with-tk=${prefix}/lib \ | ||
| --disable-mime-update \ | ||
| "GTK_MAC_CFLAGS=\"\$(${prefix}/bin/pkg-config --cflags gtk-mac-integration-gtk2)\"" \ | ||
| "GTK_MAC_LIBS=\"\$(${prefix}/bin/pkg-config --libs gtk-mac-integration-gtk2)\"" | ||
|
|
||
| post-activate { | ||
| system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true" | ||
| system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true" | ||
| system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true" | ||
| system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true" | ||
| } |