the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: drawtiming
Version: 0.7
Revision: 14
Maintainer: Alexander Hansen
Description: Program to generate circuit timing diagrams
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 6ef094ec2290499c367d9bd26d248b15
SourceDirectory:%n-%v
GCC: 4.0
Depends: <<
graphicsmagick-shlibs (>= 1.3.7-2),
ghostscript | ghostscript-nox
<<
BuildDepends: <<
graphicsmagick-dev (>= 1.3.7-2)
<<
Conflicts: %n, %n-nox
Replaces: %n, %n-nox
PatchFile: %n.patch
PatchFile-MD5: cfc60f9ee0fb183274434c79ae97d51c
PatchScript: <<
#!/bin/sh -ev
%{default_script}
perl -pi -e 's/-lgnugetopt//g' configure
perl -pi -e 's/Magick/GraphicsMagick/g' configure
<<
#Default CompileScript
InfoTest: TestScript: make check || exit 2
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
install -d %i/share/%n
install -d %i/share/%n/samples
install samples/* %i/share/%n/samples
<<
License: GPL
ConfigureParams: --mandir=%p/share/man --disable-dependency-tracking
DocFiles: AUTHORS ChangeLog COPYING INSTALL README NEWS THANKS
DescDetail:<<
This software package provides a command line tool for documenting hardware
and software designs through timing diagrams. It reads signal descriptions
from a text file with an intuitive syntax, and outputs a timing diagram to an
image file. Notation typical of timing diagrams found in the Electrical
Engineering discipline is used, including arrows indicating causal
relationships between signal transitions.
Use the -nox variant if you don't require X11 support.
<<
DescPackaging: <<
Patch to use graphicsmagick rather than imagemagick.
Graphicsmagick now requires that the API be initialized before use, but
the upstream source doesn't do that, so we patch the main loop. Thanks to
Daniel Johnson for finding this out.
libSystem has getopt_long, so no need to autodetect fink's libgnugetopt
<<
Homepage: http://drawtiming.sourceforge.net
--- drawtiming-0.7/src/main.cc 2008-05-17 20:09:54.000000000 -0400
+++ drawtiming-0.7.patched/src/main.cc 2011-07-29 02:15:34.000000000 -0400
@@ -93,6 +93,8 @@
int flags = 0;
int k, c;
+ // Initialize GraphicsMagick
+ InitializeMagick(*argv);
while ((c = getopt_long (argc, argv, "ac:f:hl:o:p:vVw:x:", opts, &k)) != -1)
switch (c) {
case 'a':