aboutsummaryrefslogtreecommitdiffstats
path: root/comms/echolinux/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-05 07:28:32 +0800
committerpav <pav@FreeBSD.org>2004-07-05 07:28:32 +0800
commit32d4cacad9aa21e35dc046c3b6d1a8e4f2fe9f01 (patch)
treef2adbde97a61a31d95118409a6668d51adc6ff06 /comms/echolinux/Makefile
parentc24451f14fb3f103c8f1bff516db9c5109a60131 (diff)
downloadfreebsd-ports-gnome-32d4cacad9aa21e35dc046c3b6d1a8e4f2fe9f01.tar.gz
freebsd-ports-gnome-32d4cacad9aa21e35dc046c3b6d1a8e4f2fe9f01.tar.zst
freebsd-ports-gnome-32d4cacad9aa21e35dc046c3b6d1a8e4f2fe9f01.zip
Add echolinux, an EchoLink client for UNIX.
PR: ports/68587 Submitted by: Diane Bruce <db@night.db.net>
Diffstat (limited to 'comms/echolinux/Makefile')
-rw-r--r--comms/echolinux/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/comms/echolinux/Makefile b/comms/echolinux/Makefile
new file mode 100644
index 000000000000..37f2e671e65c
--- /dev/null
+++ b/comms/echolinux/Makefile
@@ -0,0 +1,52 @@
+# ports collection makefile for: echolinux
+# Date created: 25 June 2004
+# Whom: db
+#
+# $FreeBSD$
+#
+
+PORTNAME= echolinux
+PORTVERSION= 0.16a
+CATEGORIES= comms
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= cqinet
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= db@db.net
+COMMENT= Amateur Radio Echolink client for UNIX
+
+LIB_DEPENDS= forms.1:${PORTSDIR}/x11-toolkits/xforms
+
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/echolinux/Makefile \
+ ${WRKSRC}/echogui/Makefile
+ @${REINPLACE_CMD} -e 's|gcc|$${CC}|' -e 's|/usr/include/X11|$${X11BASE}/include|' \
+ -e 's|-o echogui -L/usr/X11R6/lib -lX11 -lXpm -lforms -lm -lpthread|$${CFLAGS} -o echogui -L$${X11BASE}/lib -lX11 -lXpm -lforms -lm ${PTHREAD_LIBS}|' \
+ -e 's|CARGS|CFLAGS|' -e 's|= -DNodeFont=FL_TINY_SIZE|+= ${PTHREAD_CFLAGS} -DNodeFont=FL_TINY_SIZE|' \
+ ${WRKSRC}/echogui/Makefile
+ @${REINPLACE_CMD} -e 's|<linux/soundcard.h>|<sys/soundcard.h>|' \
+ ${WRKSRC}/echogui/testgui_cb.c ${WRKSRC}/echogui/testgui_main.c \
+ ${WRKSRC}/echolinux/control.c ${WRKSRC}/echolinux/vox.c
+ @${REINPLACE_CMD} -e 's|CC = gcc -O3|#CC = gcc -O3|' -e 's|^CFLAGS =|CFLAGS +=|' \
+ ${WRKSRC}/echolinux/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${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} ""
+
+.include <bsd.port.mk>