FreeBSD Bugzilla – Attachment 123510 Details for
Bug 166863
New port: comms/morse Morse Code Trainer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
morse.shar.txt
morse.shar.txt (text/plain; charset=us-ascii), 9.95 KB, created by
Stephen Hurd
on 2012-04-12 19:16:46 UTC
(
hide
)
Description:
morse.shar.txt
Filename:
MIME Type:
Creator:
Stephen Hurd
Created:
2012-04-12 19:16:46 UTC
Size:
9.95 KB
patch
obsolete
># 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: ># ># morse ># morse/Makefile ># morse/distinfo ># morse/files ># morse/files/patch-Makefile ># morse/files/patch-morse.1 ># morse/files/patch-QSO.1 ># morse/files/patch-morse.d-Makefile ># morse/files/patch-qso.d-Makefile ># morse/pkg-descr ># >echo c - morse >mkdir -p morse > /dev/null 2>&1 >echo x - morse/Makefile >sed 's/^X//' >morse/Makefile << 'a1c48fe323821018e22a9b310eca7214' >X# New ports collection makefile for: morse >X# Date created: 2012-04-11 >X# Whom: Stephen Hurd <shurd@sasktel.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= morse >XPORTVERSION= 2.4 >XCATEGORIES= comms hamradio >XMASTER_SITES= http://www.catb.org/~esr/morse/ >X >XMAINTAINER= shurd@sasktel.net >XCOMMENT= Morse Code Trainer >X >XMAN1= morsec.1 QSO.1 >XPLIST_FILES= bin/morsec \ >X bin/QSO >X >XOPTIONS= OSS "Beep using OSS (/dev/dsp)" on \ >X X11 "Beep using X server" off \ >X PA "Beep using Pulse Audio" off >X >X.include <bsd.port.options.mk> >X >X_ALLWITH= ${WITH_X11}${WITH_OSS}${WITH_PA} >X.if ${_ALLWITH} != true >X WARNINGS+= Exactly one output method must be chosen. >X. if empty (_ALLWITH) >X WITH_OSS= true >X. endif >X.endif >X.ifdef WITH_OSS >X MAKE_FLAGS+= DEVICE=OSS >X. ifdef WARNINGS >X WARNINGS+= OSS selected. >X. endif >X.elifdef WITH_X11 >X MAKE_FLAGS+= DEVICE=X11 >X USE_XORG= x11 >X CFLAGS+= -I${PREFIX}/include >X LDFLAGS+= -L${PREFIX}/lib >X. ifdef WARNINGS >X WARNINGS+= X11 selected. >X. endif >X.elifdef WITH_PA >X MAKE_FLAGS+= DEVICE=PA >X LIB_DEPENDS+= pulse-simple:${PORTSDIR}/audio/pulseaudio >X USE_GNOME= pkgconfig >X. ifdef WARNINGS >X WARNINGS+= Pulse Audio selected. >X. endif >X.endif >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/morse ${PREFIX}/bin/morsec >X ${INSTALL_PROGRAM} ${WRKSRC}/QSO ${PREFIX}/bin/QSO >X ${INSTALL_MAN} ${WRKSRC}/morse.1 ${MANPREFIX}/man/man1/morsec.1 >X ${INSTALL_MAN} ${WRKSRC}/QSO.1 ${MANPREFIX}/man/man1/QSO.1 >X >Xpost-configure: >X.ifdef WARNINGS >X @${ECHO_MSG} >X @${ECHO_MSG} WARNING: ${WARNINGS} >X @${ECHO_MSG} >X.endif >X >X.include <bsd.port.mk> >a1c48fe323821018e22a9b310eca7214 >echo x - morse/distinfo >sed 's/^X//' >morse/distinfo << '2a72028a6cbbbc143ef1479a72a6d05c' >XSHA256 (morse-2.4.tar.gz) = b049b90276a398a90d26162eebe9257e3653ee0b02f051f2e3d09fd3a444a3dc >XSIZE (morse-2.4.tar.gz) = 46264 >2a72028a6cbbbc143ef1479a72a6d05c >echo c - morse/files >mkdir -p morse/files > /dev/null 2>&1 >echo x - morse/files/patch-Makefile >sed 's/^X//' >morse/files/patch-Makefile << '1b84587c173cea7fc8f3cf6ac01eb14d' >X--- Makefile.orig 2011-06-04 02:18:03.000000000 -0700 >X+++ Makefile 2012-04-12 10:03:23.000000000 -0700 >X@@ -26,7 +26,7 @@ >X #DEVICE = Linux >X #DEVICE = OSS >X #DEVICE = ALSA >X-DEVICE = PA >X+#DEVICE = PA >X >X VERSION=2.4 >X >X@@ -37,16 +37,16 @@ >X qso.d/*.[ch] qso.d/Makefile >X >X default: >X- make testmorse >X+ ${MAKE} testmorse >X >X all: morse QSO morse.1 QSO.1 >X >X morse: >X- cd morse.d && make DEVICE=${DEVICE} >X+ ${MAKE} -C morse.d DEVICE=${DEVICE} >X ln morse.d/morse ./morse >X >X QSO: >X- cd qso.d && make >X+ ${MAKE} -C qso.d >X ln qso.d/QSO ./QSO >X >X # >X@@ -67,8 +67,8 @@ >X >X clean: >X rm -f morse QSO *.1 *.html SHIPPER.* >X- cd morse.d; make clean >X- cd qso.d; make clean >X+ ${MAKE} -C morse.d clean >X+ ${MAKE} -C qso.d clean >X >X pristine: clean >X rm -f $(MANPAGES) morse.html >X@@ -88,4 +88,4 @@ >X dist: morse-$(VERSION).tar.gz >X >X release: morse-$(VERSION).tar.gz morse.html >X- shipper -u -m -t; make clean >X+ shipper -u -m -t; ${MAKE} clean >1b84587c173cea7fc8f3cf6ac01eb14d >echo x - morse/files/patch-morse.1 >sed 's/^X//' >morse/files/patch-morse.1 << 'b58d24476ee3cb21df2b6273a449318f' >X--- morse.1.orig 2011-06-04 02:26:20.000000000 -0700 >X+++ morse.1 2012-04-12 10:06:31.000000000 -0700 >X@@ -28,22 +28,22 @@ >X .\" * MAIN CONTENT STARTS HERE * >X .\" ----------------------------------------------------------------- >X .SH "NAME" >X-morse, QSO \- Morse\-code trainer and QSO generator for aspiring radio hams >X+morsec, QSO \- Morse\-code trainer and QSO generator for aspiring radio hams >X .SH "SYNOPSIS" >X-.HP \w'\fBmorse\fR\ 'u >X-\fBmorse\fR [\-i] [\-I] [\-r] [\-n\ \fInum\fR] [\-R\ \fInum\fR] [\-N\ \fInum\fR] [\-C\ \fIcharset\fR] [\-w\ \fInum\fR] [\-f\ \fInum\fR] [\-v\ \fInum\fR] [\-g\ \fInum\fR] [\-f\ \fInum\fR] [\-e] [\-c] [\-b] [\-a] [\-l] [\-m] [\-t] [\-T] [\-s] [\-q] [\-p\ \fInum\fR] [\-E\ \fInum\fR] [\-M\ \fInum\fR] [\-d] [\-A] [\-B] [\-S] [\-x\ \fInum\fR] [\-X\ \fInum\fR] [\fIword\fR...] >X+.HP \w'\fBmorsec\fR\ 'u >X+\fBmorsec\fR [\-i] [\-I] [\-r] [\-n\ \fInum\fR] [\-R\ \fInum\fR] [\-N\ \fInum\fR] [\-C\ \fIcharset\fR] [\-w\ \fInum\fR] [\-f\ \fInum\fR] [\-v\ \fInum\fR] [\-g\ \fInum\fR] [\-f\ \fInum\fR] [\-e] [\-c] [\-b] [\-a] [\-l] [\-m] [\-t] [\-T] [\-s] [\-q] [\-p\ \fInum\fR] [\-E\ \fInum\fR] [\-M\ \fInum\fR] [\-d] [\-A] [\-B] [\-S] [\-x\ \fInum\fR] [\-X\ \fInum\fR] [\fIword\fR...] >X .SH "DESCRIPTION" >X .PP >X The >X-\fBmorse\fR >X+\fBmorsec\fR >X program is a Morse\-code trainer intended to help aspiring radio hams pass the 5\-word\-per\-minute Element 1 test\&. It can take test text from a text file on standard input, or test words from its command\-line arguments, or generate random text (\-r) or play back what you type (\-i)\&. >X .PP >X A helper program, >X \fBQSO\fR, generates plausible QSOs that can be fed to the standard input of >X-\fBmorse\fR\&. >X+\fBmorsec\fR\&. >X .PP >X The following options control the behavior of >X-\fBmorse\fR: >X+\fBmorsec\fR: >X .PP >X \-i >X .RS 4 >X@@ -311,7 +311,7 @@ >X .RS 4 >X .\} >X .nf >X-morse \-r \-s \-T \-d \-w 5 \-F 15 \-p 5 \-E \-10 >X+morsec \-r \-s \-T \-d \-w 5 \-F 15 \-p 5 \-E \-10 >X .fi >X .if n \{\ >X .RE >X@@ -332,7 +332,7 @@ >X .RS 4 >X .\} >X .nf >X-morse \-r \-s \-T \-d \-w 5 \-F 15 \-p 5 \-E 0 >X+morsec \-r \-s \-T \-d \-w 5 \-F 15 \-p 5 \-E 0 >X .fi >X .if n \{\ >X .RE >X@@ -353,7 +353,7 @@ >X .RS 4 >X .\} >X .nf >X-morse \-r \-T \-d \-w 5 \-F 15 \-M 2 \-E 4 >X+morsec \-r \-T \-d \-w 5 \-F 15 \-M 2 \-E 4 >X .fi >X .if n \{\ >X .RE >X@@ -374,7 +374,7 @@ >X .RS 4 >X .\} >X .nf >X-QSO | morse \-e \-T \-d \-w 5 \-F 15 >X+QSO | morsec \-e \-T \-d \-w 5 \-F 15 >X .fi >X .if n \{\ >X .RE >X@@ -395,7 +395,7 @@ >X .RS 4 >X .\} >X .nf >X-morse \-r \-T \-d \-w 5 \-F 15 >X+morsec \-r \-T \-d \-w 5 \-F 15 >X .fi >X .if n \{\ >X .RE >X@@ -416,7 +416,7 @@ >X .RS 4 >X .\} >X .nf >X-morse \-r \-T \-d \-w 13 \-F 24 >X+morsec \-r \-T \-d \-w 13 \-F 24 >X .fi >X .if n \{\ >X .RE >b58d24476ee3cb21df2b6273a449318f >echo x - morse/files/patch-QSO.1 >sed 's/^X//' >morse/files/patch-QSO.1 << '2bd1889cec7da6819c13e25b4d20819a' >X--- QSO.1.orig 2012-04-12 10:05:53.000000000 -0700 >X+++ QSO.1 2012-04-12 10:05:57.000000000 -0700 >X@@ -1 +1 @@ >X-.so man1/morse.1 >X+.so man1/morsec.1 >2bd1889cec7da6819c13e25b4d20819a >echo x - morse/files/patch-morse.d-Makefile >sed 's/^X//' >morse/files/patch-morse.d-Makefile << 'c92f165bbb44fe26e0557963349042b0' >X--- morse.d/Makefile.orig 2011-06-04 02:08:38.000000000 -0700 >X+++ morse.d/Makefile 2012-04-12 11:10:58.000000000 -0700 >X@@ -1,40 +1,43 @@ >X-DEVICE=PA >X+DEVICE?=PA >X >X BEEPERS = beepLinux.c beepOSS.c beepX11.c beepALSA.c >X SOURCES = alarm.c morse.c alarm.h beep.h $(BEEPERS) >X >X # The flags necessary to link with the X11 libraries. >X-X11LIBS = -L/usr/X11R6/lib -lX11 >X+X11LIBS = -lX11 >X >X # The flags necessary to link with PulseAudio and support pthread >X-PA_CFLAGS = -pthread $(shell pkg-config --cflags libpulse-simple) >X-PA_LIBS = $(shell pkg-config --libs libpulse-simple) -pthread >X+PA_CFLAGS = -pthread `pkg-config --cflags libpulse-simple` >X+PA_LIBS = `pkg-config --libs libpulse-simple` -pthread >X >X # The flags necessary to link with ALSA >X-ALSA_CFLAGS = $(shell pkg-config --cflags alsa) >X-ALSA_LIBS = $(shell pkg-config --libs alsa) >X+ALSA_CFLAGS = `pkg-config --cflags alsa` >X+ALSA_LIBS = `shell pkg-config --libs alsa` >X >X # Any additional flags your favorite C compiler requires to work. >X-CFLAGS = -O3 -I/usr/X11R6/include $($(device)_EXTRA_CFLAGS) >X+#CFLAGS = -O3 -I/usr/X11R6/include $($(device)_EXTRA_CFLAGS) >X >X morse: morse${DEVICE} >X rm -f $@ >X ln morse${DEVICE} $@ >X >X morseX11: morse.o beepX11.o alarm.o >X- $(CC) $(X11LIBS) -o $@ morse.o beepX11.o alarm.o >X+ $(CC) $(X11LIBS) $(LDFLAGS) -o $@ morse.o beepX11.o alarm.o >X >X morseLinux: morse.o beepLinux.o alarm.o >X- $(CC) -o $@ morse.o beepLinux.o alarm.o -lm >X+ $(CC) $(LDFLAGS) -o $@ morse.o beepLinux.o alarm.o -lm >X >X morseOSS: morse.o beepOSS.o >X- $(CC) $(CFLAGS) -o $@ morse.o beepOSS.o -lm >X+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ morse.o beepOSS.o -lm >X+ >X+beepPA.o: beepPA.c >X+ ${CC} ${CFLAGS} ${PA_CFLAGS} -c ${.IMPSRC} >X >X morsePA: morse.o beepPA.o >X- $(CC) $(CFLAGS) $(PA_CFLAGS) -o $@ morse.o beepPA.o -lm $(PA_LIBS) >X+ $(CC) $(CFLAGS) $(PA_CFLAGS) $(LDFLAGS) -o $@ morse.o beepPA.o -lm $(PA_LIBS) >X >X morseALSA: morse.o beepALSA.o >X- $(CC) $(CFLAGS) $(ALSA_CFLAGS) -o $@ morse.o beepALSA.o -lm $(ALSA_LIBS) >X+ $(CC) $(CFLAGS) $(ALSA_CFLAGS) $(LDFLAGS) -o $@ morse.o beepALSA.o -lm $(ALSA_LIBS) >X >X morse.o: beep.h Makefile >X beepX11.o: beep.h alarm.h >c92f165bbb44fe26e0557963349042b0 >echo x - morse/files/patch-qso.d-Makefile >sed 's/^X//' >morse/files/patch-qso.d-Makefile << '0b7c0fefcb076be78fb595418ea9b244' >X--- qso.d/Makefile.orig 2010-10-12 22:11:39.000000000 -0700 >X+++ qso.d/Makefile 2012-04-12 10:23:28.000000000 -0700 >X@@ -1,4 +1,4 @@ >X-CFLAGS = -O3 >X+#CFLAGS = -O3 >X >X OBJECTS = QSO.o put_form.o make_fre.o grammar.o util.o init_str.o >X INCLUDES = antenna.h callsign.h city.h cityh.h heights.h jobs.h misc.h \ >X@@ -7,7 +7,7 @@ >X all: QSO >X >X QSO: $(OBJECTS) >X- $(CC) -o $@ $(OBJECTS) >X+ $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJECTS) >X >X init_str.o: $(INCLUDES) >X >0b7c0fefcb076be78fb595418ea9b244 >echo x - morse/pkg-descr >sed 's/^X//' >morse/pkg-descr << 'cae304aec2645b5d021a68470c5bf231' >XThis is Morse Classic, a generic morse-code practice utility for Unix systems. >XYou'll invoke it as "morse"; the full name is to distinguish it from Alan >XCox's "morse" program. >X >XA modified version of the program "QSO" by Paul J. Drongowski is also included. >X >XWWW: http://www.catb.org/~esr/morse/ >cae304aec2645b5d021a68470c5bf231 >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 166863
:
123509
| 123510 |
123511