the Fink project is an effort to port
popular Unix programs to Mac OS X
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.
Package: snns
Version: 4.3
Revision: 1
Maintainer: Max Horn
BuildDepends: fink (>= 0.24.12-1), x11-dev, xaw3d
Depends: x11, xaw3d-shlibs
Source: http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/SNNSv%v.tar.gz
PatchFile: %n.patch
PatchFile-MD5: 6a9edeaf3cabaa5bd8e18ee47843f46b
PatchScript: sed 's,@PREFIX@,%p,' < %{PatchFile} | patch -p1
UpdateConfigGuessInDirs: configuration
ConfigureParams: <<
--with-x \
--enable-global \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib
<<
InstallScript: <<
mkdir -p %i/share/man/man1
make install install-man INSTALLDIR=%i
ln -s %p/bin/xgui %i/bin/snns
<<
DocFiles: Readme Readme.bugs Readme.license help.hdoc
Description: Software Simulator for Neural Networks
Homepage: http://www-ra.informatik.uni-tuebingen.de/SNNS/
License: LGPL
Source-MD5: eec83b21ac87f4171f11555b874e8ac7
diff -ru SNNSv4.3/configuration/Makefile.din SNNSv4.3-patched/configuration/Makefile.din
--- SNNSv4.3/configuration/Makefile.din 2008-06-25 09:37:04.000000000 +0200
+++ SNNSv4.3-patched/configuration/Makefile.din 2012-02-15 13:10:05.000000000 +0100
@@ -72,7 +72,7 @@
XGUIBINDIR = $(INSTALLDIR)$(XGUIBINEXT)/bin$(HOSTBINEXT)
XGUISRCDIR = xgui/sources
XGUIICONSDIR = xgui/iconsXgui
-MANDIR = $(INSTALLDIR)/man
+MANDIR = $(INSTALLDIR)/share/man
MAN1DIR = $(MANDIR)/man1
MANSRCDIR = man
diff -ru SNNSv4.3/kernel/sources/kr_mem.c SNNSv4.3-patched/kernel/sources/kr_mem.c
--- SNNSv4.3/kernel/sources/kr_mem.c 2008-04-21 12:15:23.000000000 +0200
+++ SNNSv4.3-patched/kernel/sources/kr_mem.c 2012-02-15 13:10:05.000000000 +0100
@@ -47,7 +47,9 @@
#include "strdup.h" /* include strdup function because strdup is
missing in ULTRIX-32 */
#endif
+#include
+#define MAXSHORT 32767
/*****************************************************************************
FUNCTION : krm_allocLinks
diff -ru SNNSv4.3/kernel/sources/learn_f.c SNNSv4.3-patched/kernel/sources/learn_f.c
--- SNNSv4.3/kernel/sources/learn_f.c 2008-04-21 12:15:23.000000000 +0200
+++ SNNSv4.3-patched/kernel/sources/learn_f.c 2012-02-15 13:10:05.000000000 +0100
@@ -39,6 +39,8 @@
#include
#define MAXINT INT_MAX
+#define MAXINT 2147483647
+
#include "kr_typ.h" /* Kernel Types and Constants */
#include "kr_const.h" /* Constant Declarators for SNNS-Kernel */
#include "kr_def.h" /* Default Values */
diff -ru SNNSv4.3/xgui/sources/Makefile SNNSv4.3-patched/xgui/sources/Makefile
--- SNNSv4.3/xgui/sources/Makefile 2008-04-21 09:56:15.000000000 +0200
+++ SNNSv4.3-patched/xgui/sources/Makefile 2012-02-15 13:20:51.000000000 +0100
@@ -203,7 +203,7 @@
xgui: $(LIBXGUI1) $(LIBXGUI2) $(BN3DLIB) $(KERNELLIBS)
$(CC) $(LIBXGUI1) $(LIBXGUI2) $(BN3DLIB) \
- $(X_LIBS) -lXaw3d -lXmu -lXt -lXext $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) \
+ $(X_LIBS) $(LDFLAGS) -lXaw3d -lXmu -lXt -lXext $(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS) \
$(KERNELALLLIBS) -o xgui
# Dependencies
diff -ru SNNSv4.3/xgui/sources/ui_mainP.c SNNSv4.3-patched/xgui/sources/ui_mainP.c
--- SNNSv4.3/xgui/sources/ui_mainP.c 2008-04-21 09:56:25.000000000 +0200
+++ SNNSv4.3-patched/xgui/sources/ui_mainP.c 2012-03-07 11:53:50.000000000 +0100
@@ -1458,7 +1458,7 @@
struct HelpType *listPtr;
- sprintf(hdoc, "help.hdoc");
+ sprintf(hdoc, "@PREFIX@/share/doc/snns/help.hdoc");
if (NOT ui_fileExist(hdoc,0)) {
if (getenv("XGUILOADPATH") != NULL)
sprintf(hdoc, "%s/help.hdoc", getenv("XGUILOADPATH"));