the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: sam
Version: 4.3
Revision: 2
Maintainer: Matthias Neeracher
Depends: x11, app-defaults
BuildDepends: ghostscript | ghostscript6, x11-dev
Source: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/%n.msg.gz
NoSourceDirectory: true
Source-MD5: c7e1e2f262ae7a9d08c7b7553d80595a
PatchScript: <<
zcat %n.msg.gz | sh
rm %n.msg.gz
perl -i -pe 's|^RANLIB=:|RANLIB=ranlib|;s{/usr/bin|/v/bin}{\$(prefix)/bin};s|local/X11R5|X11R6|g;s|X11.a|X11.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a|' */Makefile
perl -i -pe 's|/bsd|/bin|;s|rsh|ssh|;s|/usr/tmp|/var/tmp|;s|\$\(INCS\)|\$(INCS) \$(CPPFLAGS)|' sam/Makefile
perl -i -ne 'print unless 1../delete above/' doc/sam.1
patch -p1 < %a/%n.patch
<<
SetCPPFLAGS: -I/usr/X11R6/include
CompileScript: <<
make prefix=%p
<<
InstallScript: <<
mkdir -p %i/bin
make install prefix=%i
mkdir -p %i/etc/app-defaults
cp doc/Sam.ad %i/etc/app-defaults/Sam
mkdir -p %i/share/man/man1
cp doc/sam.1 %i/share/man/man1
mkdir -p %i/share/doc/%n
ps2pdf doc/sam.ps %i/share/doc/%n/sam.pdf
ps2pdf doc/se.ps %i/share/doc/%n/se.pdf
groff -ms doc/sam.tut.ms | ps2pdf - %i/share/doc/%n/sam.tut.pdf
<<
DocFiles: README
Description: Unorthodox but powerful X11 text editor
DescDetail: <<
This is an X11 version of Rob Pike's editor, sam. Sam is composed of
two programs: sam itself, which does the command processing and file
manipulation; and samterm, which controls the display and interacts
with the user. You can run sam on one machine and samterm on another
connected via remote execution through ssh.
The files sam.pdf and se.pdf are postscript versions of published
papers describing sam and structural regular expressions. These papers
reflect sam's capabilities at the time of publication several years ago;
while the general description remains accurate, some functions may have
changed or been removed. sam.tut.pdf is a tutorial.
<<
DescPort: <<
<<
License: BSD
Homepage: http://www.freshports.org/editors/sam/
diff -ur sam.bak/include/libc.h sam/include/libc.h
--- sam.bak/include/libc.h 2005-06-05 21:37:51.000000000 -0700
+++ sam/include/libc.h 2005-06-13 16:17:30.000000000 -0700
@@ -5,6 +5,7 @@
typedef unsigned char uchar;
typedef unsigned short Rune;
+typedef unsigned long ulong;
#define sprint sprintf
#define dup(a,b) dup2(a,b)
diff -ur sam.bak/libXg/Makefile sam/libXg/Makefile
--- sam.bak/libXg/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/libXg/Makefile 2005-06-13 16:14:15.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
INCS=-I../include
diff -ur sam.bak/libframe/Makefile sam/libframe/Makefile
--- sam.bak/libframe/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/libframe/Makefile 2005-06-13 16:14:09.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
diff -ur sam.bak/sam/Makefile sam/sam/Makefile
--- sam.bak/sam/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/sam/Makefile 2005-06-13 16:14:24.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
diff -ur sam.bak/samterm/Makefile sam/samterm/Makefile
--- sam.bak/samterm/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/samterm/Makefile 2005-06-13 16:14:27.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
Package: sam
Version: 4.3
Revision: 2
Maintainer: Matthias Neeracher
Depends: x11, app-defaults
BuildDepends: ghostscript | ghostscript6, x11-dev
Source: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/%n.msg.gz
NoSourceDirectory: true
Source-MD5: c7e1e2f262ae7a9d08c7b7553d80595a
PatchScript: <<
zcat %n.msg.gz | sh
rm %n.msg.gz
perl -i -pe 's|^RANLIB=:|RANLIB=ranlib|;s{/usr/bin|/v/bin}{\$(prefix)/bin};s|local/X11R5|X11R6|g;s|X11.a|X11.a /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a|' */Makefile
perl -i -pe 's|/bsd|/bin|;s|rsh|ssh|;s|/usr/tmp|/var/tmp|;s|\$\(INCS\)|\$(INCS) \$(CPPFLAGS)|' sam/Makefile
perl -i -ne 'print unless 1../delete above/' doc/sam.1
patch -p1 < %a/%n.patch
<<
SetCPPFLAGS: -I/usr/X11R6/include
CompileScript: <<
make prefix=%p
<<
InstallScript: <<
mkdir -p %i/bin
make install prefix=%i
mkdir -p %i/etc/app-defaults
cp doc/Sam.ad %i/etc/app-defaults/Sam
mkdir -p %i/share/man/man1
cp doc/sam.1 %i/share/man/man1
mkdir -p %i/share/doc/%n
ps2pdf doc/sam.ps %i/share/doc/%n/sam.pdf
ps2pdf doc/se.ps %i/share/doc/%n/se.pdf
groff -ms doc/sam.tut.ms | ps2pdf - %i/share/doc/%n/sam.tut.pdf
<<
DocFiles: README
Description: Unorthodox but powerful X11 text editor
DescDetail: <<
This is an X11 version of Rob Pike's editor, sam. Sam is composed of
two programs: sam itself, which does the command processing and file
manipulation; and samterm, which controls the display and interacts
with the user. You can run sam on one machine and samterm on another
connected via remote execution through ssh.
The files sam.pdf and se.pdf are postscript versions of published
papers describing sam and structural regular expressions. These papers
reflect sam's capabilities at the time of publication several years ago;
while the general description remains accurate, some functions may have
changed or been removed. sam.tut.pdf is a tutorial.
<<
DescPort: <<
<<
License: BSD
Homepage: http://www.freshports.org/editors/sam/
diff -ur sam.bak/include/libc.h sam/include/libc.h
--- sam.bak/include/libc.h 2005-06-05 21:37:51.000000000 -0700
+++ sam/include/libc.h 2005-06-13 16:17:30.000000000 -0700
@@ -5,6 +5,7 @@
typedef unsigned char uchar;
typedef unsigned short Rune;
+typedef unsigned long ulong;
#define sprint sprintf
#define dup(a,b) dup2(a,b)
diff -ur sam.bak/libXg/Makefile sam/libXg/Makefile
--- sam.bak/libXg/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/libXg/Makefile 2005-06-13 16:14:15.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
INCS=-I../include
diff -ur sam.bak/libframe/Makefile sam/libframe/Makefile
--- sam.bak/libframe/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/libframe/Makefile 2005-06-13 16:14:09.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
diff -ur sam.bak/sam/Makefile sam/sam/Makefile
--- sam.bak/sam/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/sam/Makefile 2005-06-13 16:14:24.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
diff -ur sam.bak/samterm/Makefile sam/samterm/Makefile
--- sam.bak/samterm/Makefile 2005-06-05 21:37:59.000000000 -0700
+++ sam/samterm/Makefile 2005-06-13 16:14:27.000000000 -0700
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX -ansiposix
+OS=-DIRIX
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)