2004-07-14 18:09:39 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-03-23 11:35:22 +01:00
|
|
|
PORTNAME= linrad
|
2014-12-08 12:20:39 +01:00
|
|
|
PORTVERSION= 4.02
|
2015-05-30 22:39:12 +02:00
|
|
|
PORTREVISION= 3
|
2008-03-23 11:35:22 +01:00
|
|
|
CATEGORIES= comms hamradio
|
2006-09-09 00:52:37 +02:00
|
|
|
MASTER_SITES= http://www.nitehawk.com/sm5bsz/linuxdsp/archive/\
|
2006-09-12 10:14:22 +02:00
|
|
|
http://www.sm5bsz.com/linuxdsp/archive/
|
2014-12-08 12:20:39 +01:00
|
|
|
DISTNAME= lir04-02
|
2004-07-14 18:09:39 +02:00
|
|
|
EXTRACT_SUFX= .tbz
|
|
|
|
|
2014-07-01 20:28:17 +02:00
|
|
|
MAINTAINER= hamradio@FreeBSD.org
|
2004-07-14 18:09:39 +02:00
|
|
|
COMMENT= Amateur Radio DSP utility (SDR)
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= librtlsdr.so:comms/rtl-sdr \
|
|
|
|
libportaudio.so:audio/portaudio \
|
|
|
|
libftdi.so:devel/libftdi
|
|
|
|
BUILD_DEPENDS= nasm:devel/nasm
|
2004-07-14 18:09:39 +02:00
|
|
|
|
2007-04-23 23:28:04 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0${PORTVERSION}
|
2004-07-14 18:09:39 +02:00
|
|
|
|
2006-12-04 00:21:04 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-03-13 09:18:38 +01:00
|
|
|
USES= gmake tar:bzip2
|
2008-03-18 16:55:06 +01:00
|
|
|
USE_XORG= x11
|
2007-02-27 18:06:35 +01:00
|
|
|
LINRAD_DOCFILES= z_APM.txt z_BUFFERS.txt z_CALIBRATE.txt \
|
|
|
|
z_COPYRIGHT.txt z_GIFINFO.txt \
|
2009-10-13 16:41:33 +02:00
|
|
|
z_MORSE_DECODING.txt z_MOUSE.txt z_NETWORK.txt \
|
2007-02-27 18:06:35 +01:00
|
|
|
z_PARALLEL_PORT.txt z_SETTINGS.txt \
|
|
|
|
z_USERS_EXTRA.txt z_USERS_HWARE.txt
|
2005-11-13 04:42:59 +01:00
|
|
|
|
2017-05-21 23:55:08 +02:00
|
|
|
BROKEN_aarch64= fails to compile: implicit declaration of function outb
|
2018-08-01 18:33:11 +02:00
|
|
|
BROKEN_armv6= fails to configure: cannot find /nxb-bin/usr/bin/cc
|
|
|
|
BROKEN_armv7= fails to configure: cannot find /nxb-bin/usr/bin/cc
|
2017-05-21 23:55:08 +02:00
|
|
|
BROKEN_powerpc64= fails to compile: implicit declaration of function outb
|
|
|
|
BROKEN_sparc64= fails to compile: implicit declaration of function outb
|
2016-11-14 06:03:05 +01:00
|
|
|
|
2009-10-13 16:41:33 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2014-07-01 20:28:17 +02:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
BINFILE= xlinrad
|
|
|
|
.else
|
|
|
|
BINFILE= xlinrad64
|
|
|
|
.endif
|
|
|
|
ALL_TARGET= ${BINFILE}
|
|
|
|
|
2004-07-14 18:09:39 +02:00
|
|
|
post-patch:
|
2014-07-01 20:28:17 +02:00
|
|
|
# These extensions seem to be Windows only
|
|
|
|
# @${CP} ${WRKSRC}/extra_w3sz.c ${WRKSRC}/users_extra.c
|
|
|
|
# @${CP} ${WRKSRC}/users_tr.c ${WRKSRC}/users_hwaredriver.c
|
2015-03-25 00:45:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2009-10-13 16:41:33 +02:00
|
|
|
${WRKSRC}/Makefile.in
|
2006-07-01 18:45:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}/|' \
|
|
|
|
${WRKSRC}/help.c
|
2014-07-01 20:28:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}/|' \
|
|
|
|
${WRKSRC}/libfind1.c
|
|
|
|
# NOTE: The code that actually does anything in users.c is currently
|
|
|
|
# #ifdef'd out because it's just a non-working example
|
2009-10-13 16:41:33 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|ttyd|ttyu|" \
|
|
|
|
${WRKSRC}/lxsys.c
|
2006-12-04 00:21:04 +01:00
|
|
|
|
2004-07-14 18:09:39 +02:00
|
|
|
do-install:
|
2014-07-01 20:28:17 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/errors.lir ${STAGEDIR}${DATADIR}/errors.lir
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/help.lir ${STAGEDIR}${DATADIR}/help.lir
|
|
|
|
${INSTALL_SCRIPT} -m0555 ${FILESDIR}/linrad ${STAGEDIR}${PREFIX}/bin/linrad
|
2006-09-09 00:52:37 +02:00
|
|
|
# Some day we may want the svga version as well.
|
2016-07-20 17:33:20 +02:00
|
|
|
# ${INSTALL_PROGRAM} -m0555 ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.svga
|
2014-07-01 20:28:17 +02:00
|
|
|
${INSTALL_PROGRAM} -m0555 ${WRKSRC}/${BINFILE} ${STAGEDIR}${PREFIX}/bin/x${PORTNAME}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2007-02-27 18:06:35 +01:00
|
|
|
.for f in ${LINRAD_DOCFILES}
|
2014-07-01 20:28:17 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}/$f
|
2007-02-27 18:06:35 +01:00
|
|
|
.endfor
|
2004-07-14 18:09:39 +02:00
|
|
|
|
2009-10-13 16:41:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|