1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- convert to stage

- add LICENSE
- patch to use new libcw lib from unixcw
This commit is contained in:
Diane Bruce 2013-12-29 16:17:51 +00:00
parent 3181f247ac
commit b6b117d865
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338022
3 changed files with 35 additions and 13 deletions

View File

@ -5,26 +5,18 @@ PORTNAME= cwdaemon
PORTVERSION= 0.9.4
CATEGORIES= comms hamradio
MASTER_SITES= http://www.chronos.org.uk/download/ \
${MASTER_SITE_LOCAL}
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db
MAINTAINER= db@FreeBSD.org
COMMENT= Amateur Radio cw (Morse code) keyer daemon
LIB_DEPENDS= libcw.so:${PORTSDIR}/comms/unixcw
LICENSE= GPLv2
LIB_DEPENDS= libcw.so:${PORTSDIR}/comms/unixcw
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc
INSTALL_TARGET= install-exec
GNU_CONFIGURE= yes
USES= pkgconfig
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc
MAN8= cwdaemon.8
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
cd ${WRKSRC}; ${MAKE} install-data
.else
cd ${WRKSRC}; ${MAKE} install-man
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,29 @@
--- cwdaemon.c.orig 2006-11-09 04:23:11.000000000 -0500
+++ cwdaemon.c 2013-12-29 10:11:15.000000000 -0500
@@ -89,7 +89,7 @@
#endif
#include <limits.h>
-#include <cwlib.h>
+#include <libcw.h>
#include "cwdaemon.h"
/* network vars */
@@ -305,8 +305,6 @@
{
cw_set_frequency (morse_tone);
cw_set_send_speed (morse_speed);
- cw_set_soundcard_sound (soundcard_sound);
- cw_set_console_sound (console_sound);
cw_set_volume (morse_volume);
cw_set_gap (0);
}
@@ -559,8 +557,6 @@
if (valid_sdevice == 1)
{
debug ("Sound device: %s", message + 2);
- cw_set_soundcard_sound (soundcard_sound);
- cw_set_console_sound (console_sound);
}
break;
case 'g': /* volume */

View File

@ -1,4 +1,5 @@
sbin/cwdaemon
man/man8/cwdaemon.8.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/cwdaemon.png
%%PORTDOCS%%%%DOCSDIR%%/cwsetup.sh