# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xmorse
#	xmorse/Makefile
#	xmorse/distinfo
#	xmorse/pkg-descr
#	xmorse/pkg-plist
#	xmorse/files
#	xmorse/files/patch-Makefile
#
echo c - xmorse
mkdir -p xmorse > /dev/null 2>&1
echo x - xmorse/Makefile
sed 's/^X//' >xmorse/Makefile << 'END-of-xmorse/Makefile'
X# New ports collection makefile for:   morsecode
X# Date created:        24 Novermber 2007
X# Whom:                Sunry Chen <sunrychen@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xmorse
XPORTVERSION=	20041125
XCATEGORIES=	comms
XMASTER_SITES=   http://c2.com/morse/files/SourceCode/ \
X		http://www.525183.com/freebsd/xmorse/ \
X		http://www.chinatinco.com/freebsd/xmorse/ \
X		http://525183.serverbox.org/freebsd/xmorse/
XDISTNAME=       m20041125
XEXTRACT_SUFX=   .tgz
X
XMAINTAINER=	sunrychen@gmail.com
XCOMMENT=	A fully automatic Morse code teaching machine
X
XBUILD_DEPENDS=	fluid:${PORTSDIR}/x11-toolkits/fltk
X
XUSE_SDL=	sdl
X
XNO_WRKSUBDIR=	yes
X
X.include <bsd.port.mk>
END-of-xmorse/Makefile
echo x - xmorse/distinfo
sed 's/^X//' >xmorse/distinfo << 'END-of-xmorse/distinfo'
XMD5 (m20041125.tgz) = d2832b5bf8d840d0e14a831e7590a4ca
XSHA256 (m20041125.tgz) = 07c4ca001d3c3f931dce6ed7aec58d832fab81f15e3977ba0d61fcf8909e763d
XSIZE (m20041125.tgz) = 1050929
END-of-xmorse/distinfo
echo x - xmorse/pkg-descr
sed 's/^X//' >xmorse/pkg-descr << 'END-of-xmorse/pkg-descr'
XA fully automatic Morse code teaching machine. Teaches you to receive
XMorse code. It starts with a few letters and adds more when it sees that
Xyou are ready. The program won't teach you to send code. It runs in X Window.
XBuilt with the Fast Light ToolKit(fltk) and the Simple Directmedia Layer(SDL).
X
XIt need to be compiled on X Window term for the reason fluid(fltk) need to.
X
XWWW: http://c2.com/morse
END-of-xmorse/pkg-descr
echo x - xmorse/pkg-plist
sed 's/^X//' >xmorse/pkg-plist << 'END-of-xmorse/pkg-plist'
Xbin/xmorse
END-of-xmorse/pkg-plist
echo c - xmorse/files
mkdir -p xmorse/files > /dev/null 2>&1
echo x - xmorse/files/patch-Makefile
sed 's/^X//' >xmorse/files/patch-Makefile << 'END-of-xmorse/files/patch-Makefile'
X--- ./Makefile.orig	2004-09-29 22:12:16.000000000 +0000
X+++ ./Makefile	2007-11-24 19:55:15.000000000 +0000
X@@ -36,6 +36,25 @@
X 	strip m
X 	rm *.o m.cxx m.h
X 
X+# Regular "make" is what you want for the FreeBSD version
X+
X+all: m.fl Bargraph.cxx Bargraph.h Codebox.cxx Codebox.h Cw.cxx Cw.h \
X+    Knob.cxx Knob.h Help.h m.fl
X+	fluid -c m.fl
X+	g++ -c -Os `fltk-config --cxxflags` m.cxx
X+	g++ -c -Os `fltk-config --cxxflags` Bargraph.cxx
X+	g++ -c -Os `fltk-config --cxxflags` Codebox.cxx
X+	g++ -c -Os `fltk-config --cxxflags` Knob.cxx
X+	g++ -c -Os `sdl-config    --cflags` Cw.cxx
X+	g++ -om m.o Bargraph.o Codebox.o Cw.o Knob.o \
X+          `sdl-config --static-libs` \
X+          `fltk-config --ldstaticflags`
X+	strip m
X+	rm *.o m.cxx m.h
X+
X+install: m
X+	${INSTALL} -o root -g wheel -m 0555 m ${PREFIX}/bin/xmorse
X+
X # Besemer's Python extension version
X 
X cw.so: cw.pyx Cw.cxx Cw.h
END-of-xmorse/files/patch-Makefile
exit