diff options
author | db <db@FreeBSD.org> | 2013-12-28 11:34:07 +0800 |
---|---|---|
committer | db <db@FreeBSD.org> | 2013-12-28 11:34:07 +0800 |
commit | 0ac0e4b26e200f6d351e6417aa52f121f262004b (patch) | |
tree | 35e50e9b3f75dc93c0b6b61c27f46f99306bed66 /comms | |
parent | 0714bca12a387b1b9582d60d35b5989578ef3283 (diff) | |
download | freebsd-ports-gnome-0ac0e4b26e200f6d351e6417aa52f121f262004b.tar.gz freebsd-ports-gnome-0ac0e4b26e200f6d351e6417aa52f121f262004b.tar.zst freebsd-ports-gnome-0ac0e4b26e200f6d351e6417aa52f121f262004b.zip |
- convert to stage
- make compile with clang
- add LICENSE
Diffstat (limited to 'comms')
-rw-r--r-- | comms/echolinux/Makefile | 31 | ||||
-rw-r--r-- | comms/echolinux/files/patch-echogui_servercode.c | 11 | ||||
-rw-r--r-- | comms/echolinux/files/patch-echolinux_rtpacket.c | 50 |
3 files changed, 72 insertions, 20 deletions
diff --git a/comms/echolinux/Makefile b/comms/echolinux/Makefile index e1470c139e91..bbdb20baa5b6 100644 --- a/comms/echolinux/Makefile +++ b/comms/echolinux/Makefile @@ -11,19 +11,18 @@ EXTRACT_SUFX= .tgz MAINTAINER= db@FreeBSD.org COMMENT= Amateur Radio Echolink client for UNIX +LICENSE= GPLv2 + LIB_DEPENDS= libforms.so:${PORTSDIR}/x11-toolkits/xforms \ libgsm.so:${PORTSDIR}/audio/gsm -USE_GCC= any - -NO_STAGE= yes .include <bsd.port.options.mk> post-patch: @${REINPLACE_CMD} -e 's|gcc|$${CC}|' -e 's|/usr/include/X11|$${LOCALBASE}/include|' \ -e 's|-o echogui -L/usr/X11R6/lib -lX11 -lXpm -lforms -lm -lpthread|$${CFLAGS} -o echogui -L$${LOCALBASE}/lib -lX11 -lXpm -lforms -lm ${PTHREAD_LIBS}|' \ -e 's|CARGS|CFLAGS|' -e 's|= -DNodeFont=FL_TINY_SIZE|+= ${PTHREAD_CFLAGS} -DNodeFont=FL_TINY_SIZE|' \ - -e 's|/usr/local/bin/|$${PREFIX}/bin/|' \ + -e 's|/usr/local/bin/|${STAGEDIR}${PREFIX}/bin/|' \ ${WRKSRC}/echogui/Makefile @${REINPLACE_CMD} -e 's|<linux/soundcard.h>|<sys/soundcard.h>|' \ ${WRKSRC}/echogui/testgui_cb.c ${WRKSRC}/echogui/testgui_main.c \ @@ -32,24 +31,16 @@ post-patch: ${WRKSRC}/echolinux/Makefile @${REINPLACE_CMD} -e 's|LFLAGS = -lm|LFLAGS = -L${LOCALBASE}/lib -lm -lgsm|' \ -e 's|libgsm.a||' -e 's|-Igsm/inc|-I${LOCALBASE}/include|' \ - -e 's|/usr/local/bin/|$${PREFIX}/bin/|' \ + -e 's|/usr/local/bin/|${STAGEDIR}${PREFIX}/bin/|' \ ${WRKSRC}/echolinux/Makefile post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README - @${INSTALL_DATA} ${WRKSRC}/Using_EchoLinux.txt ${DOCSDIR}/Using_EchoLinux.txt - @${ECHO} "" - @${ECHO} "echolinux docs installed in ${DOCSDIR}" - @${ECHO} "" -.endif - @${MKDIR} ${PREFIX}/share/echolinux - @${INSTALL_DATA} ${WRKSRC}/echolinux.desktop ${PREFIX}/share/echolinux - @${MKDIR} ${PREFIX}/share/echolinux/pixmaps - @${INSTALL_DATA} ${WRKSRC}/pixmaps/echolinux_48x48.png ${PREFIX}/share/echolinux/pixmaps - @${ECHO} "" - @${ECHO} "echolinux desktop examples installed in ${PREFIX}/share/echolinux" - @${ECHO} "" + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README + @${INSTALL_DATA} ${WRKSRC}/Using_EchoLinux.txt ${STAGEDIR}${DOCSDIR}/Using_EchoLinux.txt + @${MKDIR} ${STAGEDIR}${PREFIX}/share/echolinux + @${INSTALL_DATA} ${WRKSRC}/echolinux.desktop ${STAGEDIR}${PREFIX}/share/echolinux + @${MKDIR} ${STAGEDIR}${PREFIX}/share/echolinux/pixmaps + @${INSTALL_DATA} ${WRKSRC}/pixmaps/echolinux_48x48.png ${STAGEDIR}${PREFIX}/share/echolinux/pixmaps .include <bsd.port.mk> diff --git a/comms/echolinux/files/patch-echogui_servercode.c b/comms/echolinux/files/patch-echogui_servercode.c new file mode 100644 index 000000000000..08efae783e7a --- /dev/null +++ b/comms/echolinux/files/patch-echogui_servercode.c @@ -0,0 +1,11 @@ +--- echogui/servercode.c.orig 2013-12-27 22:13:30.194795239 -0500 ++++ echogui/servercode.c 2013-12-27 22:13:50.872793794 -0500 +@@ -641,7 +641,7 @@ + FD_CLR(serverSocket, &exceptFds); + FD_CLR(serverSocket, &writeFds); + close(serverSocket); +- serverPortState == CLOSED; ++ serverPortState = CLOSED; + if(serverShutdown) + quit = 1; + else{ diff --git a/comms/echolinux/files/patch-echolinux_rtpacket.c b/comms/echolinux/files/patch-echolinux_rtpacket.c new file mode 100644 index 000000000000..1ffd38ee227a --- /dev/null +++ b/comms/echolinux/files/patch-echolinux_rtpacket.c @@ -0,0 +1,50 @@ +--- echolinux/rtpacket.c.orig 2002-12-21 22:10:48.000000000 -0500 ++++ echolinux/rtpacket.c 2013-12-27 22:10:06.275393036 -0500 +@@ -1,4 +1,8 @@ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> ++#include <strings.h> ++#include <arpa/inet.h> + #include "rtp.h" + #include "rtpacket.h" + +@@ -11,6 +15,16 @@ + + /*************** RTP_MAKE_SDES *************/ + ++static unsigned char *ap; ++static void addSDES(unsigned char item, char *text) ++{ ++ int l; ++ *ap++ = item; ++ *ap++ = l = strlen(text); ++ bcopy(text, ap, l); ++ ap += l; ++} ++ + int rtp_make_sdes(pkt, ssrc_i, strict) + char **pkt; + unsigned long ssrc_i; +@@ -19,21 +33,12 @@ + unsigned char zp[1500]; + unsigned char *p = zp; + rtcp_t *rp; +- unsigned char *ap; + char *sp, *ep; + char line[180]; + int l, hl, i; + struct passwd *pw; + char s[256], ev[1024]; + +- void addSDES(unsigned char item, char *text){ +- *ap++ = item; +- *ap++ = l = strlen(text); +- bcopy(text, ap, l); +- ap += l; +- } +- +- + hl = 0; + if (strict) { + *p++ = RTP_VERSION << 6; |