#!/bin/sh
# This is a shell archive
echo x comms/dsd
mkdir -p comms/dsd > /dev/null 2>&1
echo x comms/dsd/Makefile
sed 's/^X//' > comms/dsd/Makefile << 'SHAR_END'
X# $FreeBSD$
X
XPORTNAME=	dsd
XPORTVERSION=	1.6.0
XCATEGORIES=	comms hamradio
X
XMAINTAINER=	takefu@airport.fm
XCOMMENT=	Decode several digital voice formats
X
XLICENSE=	ISCL
X
XLIB_DEPENDS=	libmbe.so:comms/mbelib
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	szechyjs
XGH_TAGNAME=	v${PORTVERSION}
X
XUSE_LDCONFIG=	yes
XPLIST_FILES=	"@(,uucp,4555) bin/dsd"
X#		%%DOCSDIR%%
X
Xpost-patch:
X	${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g; \
X		s|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
X		s|%%DESTDIR%%|${STAGEDIR}${LOCALBASE}|g' \
X		${WRKSRC}/Makefile
X.for i in dsd.h dsd_file.c dsd_mbe.c
X	${REINPLACE_CMD} 's|2250|2450|' ${WRKSRC}/${i}
X.endfor
X
Xpost-install:
X	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
X
X.include <bsd.port.mk>
SHAR_END
echo x comms/dsd/distinfo
sed 's/^X//' > comms/dsd/distinfo << 'SHAR_END'
XTIMESTAMP = 1486712916
XSHA256 (szechyjs-dsd-1.6.0-v1.6.0_GH0.tar.gz) = 44fa3ae108d2c11b4b67388d37fc6a63e8b44fc72fdd5db7b57d9eb045a9df58
XSIZE (szechyjs-dsd-1.6.0-v1.6.0_GH0.tar.gz) = 40959
SHAR_END
echo x comms/dsd/pkg-descr
sed 's/^X//' > comms/dsd/pkg-descr << 'SHAR_END'
XDSD is able to decode several digital voice formats from discriminator
Xtap audio and synthesize the decoded speech.
X
XWWW: https://github.com/szechyjs/dsd
SHAR_END
echo x comms/dsd/files
mkdir -p comms/dsd/files > /dev/null 2>&1
echo x comms/dsd/files/patch-Makefile
sed 's/^X//' > comms/dsd/files/patch-Makefile << 'SHAR_END'
X--- Makefile.orig	2013-06-19 22:39:48 UTC
X+++ Makefile
X@@ -13,14 +13,14 @@
X # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
X # PERFORMANCE OF THIS SOFTWARE.
X 
X-CC = gcc
X-CFLAGS = -O2 -Wall
X-INCLUDES = -I. -I/usr/local/include -I/usr/include
X-LIBS = -L/usr/local/lib -lm -lmbe 
X-INSTALL=install
X-AR=ar
X-RANLIB=ranlib
X-DEST_BASE=/usr/local
X+#CC = gcc
X+CFLAGS? = -O2 -Wall
X+INCLUDES = -I. -I%%PREFIX%%/include -I/usr/include
X+LIBS = -L%%PREFIX%%/lib -lm -lmbe 
X+INSTALL=install -s -m 555
X+AR?=ar
X+RANLIB?=ranlib
X+DEST_BASE?=%%DESTDIR%%
X DEST_INC=${DEST_BASE}/include
X DEST_LIB=${DEST_BASE}/lib
X DEST_BIN=${DEST_BASE}/bin
SHAR_END
exit
