the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: classicladder
Version: 0.9.003
Revision: 1
Maintainer: Alexander Hansen
Description: Free ladder logic simulator in C
Source: mirror:sourceforge:%n/%n-%v.zip
Source-MD5: 206d05767df5aee11afcd345e5e614fd
SourceDirectory:%n
Depends: <<
atk1-shlibs (>= 1.20.0-1), cairo-shlibs (>= 1.8.10-3), gtk+2-shlibs (>=2.18.9-5),
pango1-xft2-ft219-shlibs (>= 1.22.0-3), glib2-shlibs (>= 2.14.0-1),
freetype219-shlibs(>= 2.3.7-7), fontconfig2-shlibs (>= 2.8.0-4),
x11
<<
BuildDepends: <<
glitz, cairo (>= 1.8.10-3), fontconfig2-dev (>= 2.8.0-4), freetype219 (>= 2.3.7-7),
gtk+2-dev (>=2.18.9-5), x11-dev, atk1 (>= 1.20.0-1), pango1-xft2-ft219-dev (>= 1.22.0-3),
pixman (>= 0.10.0-1), glib2-dev (>= 2.14.0-1),
pkgconfig (>= 0.21-1), fink (>= 0.24.12),
x11-dev
<<
PatchFile: %n.patch
PatchFile-MD5: a015776931525d99cf6ed7e5abc6e7fd
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
make
<<
InstallScript: <<
make install PREFIX=%i
/usr/bin/install -d %i/share/classicladder/projects_examples
/usr/bin/install %b/projects_examples/* %i/share/classicladder/projects_examples/
<<
License: LGPL
DocFiles: README.txt HISTORY.txt lesserGPL.txt TODO.txt
DescDetail:<<
Classic Ladder is coded 100% in C.
It can be used for educational purposes or anything you want...
The graphical user interface uses GTK(2).
The following elements are implemented :
* Booleans elements
* Rising / falling edges
* Timers
* Monostables
* Counters
* Compare via arithmetic expressions
* Booleans outputs
* Set / Reset coils
* Jumps
* Operate via arithmetic expressions
There is a full editor for rungs
You can:
* add a rung after the current rung.
* insert a rung before the current rung.
* modify the current rung.
* delete the current rung.
When editing, use the pointer of the toolbar if you want only to modify
properties, else select the element you want to place in the rung.
Note: I/O support is disabled, so it can only be used for simulation on OS X.
<<
DescPackaging: <<
Install example files in %p/share.
<<
DescPort: <<
I/O support disabled even on Intels, as it's apparently Linux-centric.
<<
Homepage: http://sites.google.com/site/classicladder/
diff -Naur classicladder/Makefile classicladder.patched//Makefile
--- classicladder/Makefile 2011-01-02 11:29:02.000000000 -0500
+++ classicladder.patched//Makefile 2011-02-12 15:13:53.000000000 -0500
@@ -29,7 +29,7 @@
ifndef WINDOWS
# Comment if you do not want the I/O access (not x86 platform)
# Used in the hardware.c file.
-MAKE_IO_ACCESS = 1
+#MAKE_IO_ACCESS = 1
endif
# Uncomment if you want to debug a 'segmentation fault' with gdb or KDbg for example... ;-)
@@ -60,8 +60,8 @@
INCLUDEDIR=${PREFIX}/include
ifdef GTK_INTERFACE
-OWN_CFLAGS = -Wall `pkg-config gtk+-2.0 --cflags` `pkg-config pango --cflags` `pkg-config gthread-2.0 --cflags` -DGTK_INTERFACE -DGTK2
-OWN_LIBS += `pkg-config gtk+-2.0 --cflags --libs` `pkg-config pango --cflags --libs` `pkg-config gthread-2.0 --cflags --libs`
+OWN_CFLAGS = -Wall `pkg-config --cflags fontconfig` `pkg-config gtk+-2.0 --cflags` `pkg-config pango --cflags` `pkg-config gthread-2.0 --cflags` -DGTK_INTERFACE -DGTK2
+OWN_LIBS += `pkg-config --cflags --libs fontconfig` `pkg-config gtk+-2.0 --cflags --libs` `pkg-config pango --cflags --libs` `pkg-config gthread-2.0 --cflags --libs`
###ifdef GNOME_PRINT
###OWN_CFLAGS += `pkg-config --cflags libgnomeprintui-2.2` -DGNOME_PRINT_USE
###OWN_LIBS += `pkg-config --libs libgnomeprintui-2.2`