freebsd-ports/comms/svxlink/Makefile
Tobias C. Berner 258a98847e comms: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

  *  'Big Bad Bob' Frazier <bobf@mrp3.com>
  *  <mr@freebsd.org>
  *  Alex Samorukov <samm@freebsd.org>
  *  Alexander Logvinov <ports@logvinov.com>
  *  Alexey Dokuchaev <danfe@FreeBSD.org>
  *  Anders Nordby <anders@FreeBSD.org>
  *  Andreas Klemm <andreas@klemm.gtn.com>
  *  Andrew Dolgov <fox@furry.spb.ru>
  *  Andrey Lykhin <lan31@inbox.ru>
  *  Anton Voronin <anton@urc.ac.ru>
  *  Brandon S. Allbery KF8NH <allbery@ece.cmu.edu>
  *  Brian Dean <bsd@FreeBSD.org>
  *  Bruce Cran <bruce@cran.org.uk>
  *  Carl Makin <carl@stagecraft.cx>
  *  Darren <igla@batterybackups.net>
  *  David
  *  David O'Brien <obrien@cs.ucdavis.edu>
  *  David Thiel <lx@redundancy.redundancy.org>
  *  Denis Shaposhnikov <dsh@vlink.ru>
  *  Devon H. O'Dell <devon.odell@coyotepoint.com>
  *  Diane Bruce <db@db.net>
  *  Douglas K. Rand <rand@meridian-enviro.com>
  *  Edward Tomasz Napierala <trasz@FreeBSD.org>
  *  Emanuel Haupt <ehaupt@FreeBSD.org>
  *  Felix Palmen <felix@palmen-it.de>
  *  Frank Steinborn <steinex@nognu.de>
  *  Ganael Laplanche <ganael.laplanche@martymac.org>
  *  George Reid <greid@ukug.uk.freebsd.org>
  *  Hye-Shik Chang <perky@fallin.lv>
  *  Janos.Mohacsi@bsd.hu
  *  Jean-Baptiste Quenot <jb.quenot@caraldi.com>
  *  Jeffrey Baitis <jeff@baitis.net>
  *  Johan Strom <johan@stromnet.se>
  *  Johan Strom <johna@stromnet.se>
  *  Jui-Nan Lin <jnlin@freebsd.cs.nctu.edu.tw>
  *  Julian Stacey <jhs@FreeBSD.org>
  *  Kirill Bezzubets <kirill@solaris.ru>
  *  MITA Yoshio <mita@FreeBSD.org>
  *  Markus Brueffer <markus@FreeBSD.org>
  *  Martin Matuska <mm@FreeBSD.org>
  *  Martin Wilke <miwi@FreeBSD.org>
  *  Masafumi NAKANE <max@FreeBSD.org>
  *  Matt Dawson <matt@mattsnetwork.co.uk>
  *  Maxim Sobolev <sobomax@FreeBSD.org>
  *  Michael Reifenberger (mike@Reifenberger.com)
  *  Mike Heffner <mikeh@FreeBSD.org>
  *  Nick Sayer <nsayer@FreeBSD.org>
  *  Nicole Reid <root@cooltrainer.org>
  *  Olivier Cochard-Labbe <olivier@FreeBSD.org>
  *  Patrick Gardella <patrick@FreeBSD.org>
  *  Paul Traina <pst@FreeBSD.org>
  *  Pav Lucistnik <pav@FreeBSD.org>
  *  Rick Elrod <codeblock@eighthbit.net>
  *  Rodrigo Osorio <rodrigo@FreeBSD.org>
  *  Sebastian Yepes <esn@x123.info>
  *  Staffan Ulfberg <staffanu@multivac.fatburen.org>
  *  Stephen Hurd <shurd@FreeBSD.org>
  *  Steve Woodford <scw@netbsd.hut.fi>
  *  Steven Kreuzer <skreuzer@FreeBSD.org>
  *  Sunry Chen <sunrychen@gmail.com>
  *  Søren Straarup <xride@x12.dk>
  *  Tony Shadwick <tshadwick@oss-solutions.com>
  *  Tsung-Han Yeh <snowfly@yuntech.edu.tw>
  *  Vladimir Grebenschikov
  *  Vladimir Kondratyev <wulf@FreeBSD.org>
  *  db
  *  dirkx@webweaving.org
  *  dom@happygiraffe.net
  *  elbarto@ArcadeBSD.org
  *  hm
  *  jmz
  *  joes@seaport.net
  *  lambert@lambertfam.org
  *  nox@FreeBSD.org
  *  obrien@cs.ucdavis.edu
  *  rkw
  *  shurd
  *  shurd@FreeBSD.org
  *  wlloyd@slap.net
  * //www.tomek.cedro.info)

With hat:	portmgr
2022-07-20 16:21:01 +02:00

122 lines
4.9 KiB
Makefile

PORTNAME?= svxlink
PORTVERSION= 19.09.1
PORTREVISION= 2
CATEGORIES= comms hamradio
MAINTAINER= hamradio@FreeBSD.org
COMMENT?= General purpose ham radio voice services
LICENSE?= GPLv2
LIB_DEPENDS?= libgsm.so:audio/gsm \
libspeex.so:audio/speex \
libgpg-error.so:security/libgpg-error \
libgcrypt.so:security/libgcrypt \
libsigc-2.0.so:devel/libsigc++20 \
libpopt.so:devel/popt \
libopus.so:audio/opus \
librtlsdr.so:comms/rtl-sdr \
libcurl.so:ftp/curl
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
USES+= cmake:noninja compiler:c++11-lang groff pkgconfig tcl
USE_GITHUB= yes
GH_ACCOUNT= sm0svx
GH_PROJECT= svxlink
CMAKE_SOURCE_PATH= ${WRKSRC}/src
CMAKE_ARGS+= -DMAN_INSTALL_DIR:FILEPATH=${PREFIX}/share/man \
-DLOCAL_STATE_DIR=/var \
-DLOCALBASE:STRING="${LOCALBASE}"
.if ${PORTNAME}==svxlink
CMAKE_ARGS+= -DUSE_QT:BOOL=NO
.endif
USE_LDCONFIG= yes
ALL_TARGET?= all man
OPTIONS_DEFINE= DOXYGEN STATIC DOCS
STATIC_DESC= Build and install static libraries
STATIC_CMAKE_ON= -DBUILD_STATIC_LIBS=YES
.if ${PORTNAME}==svxlink
OPTIONS_DEFAULT=OSS ALSA
OPTIONS_MULTI= SOUND
OPTIONS_MULTI_SOUND= ALSA OSS
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CMAKE_OFF= -DUSE_ALSA:BOOL=OFF
ALSA_CMAKE_ON= -DUSE_ALSA:BOOL=ON
OSS_CMAKE_OFF= -DUSE_OSS:BOOL=OFF
OSS_CMAKE_ON= -DUSE_OSS:BOOL=ON
.endif
DOXYGEN_IMPLIES= DOCS
DOXYGEN_ALL_TARGET=doc
DOXYGEN_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:BOOL=TRUE
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \
dot:graphics/graphviz
OPTIONS_SUB= yes
PORTDOCS= *
post-patch:
@${GREP} -lr /dev/ttyS0 ${WRKSRC} | ${GREP} -v .bak | ${GREP} -v .orig | ${XARGS} \
${REINPLACE_CMD} -e 's|/dev/ttyS0|/dev/ttyu0|'
@${REINPLACE_CMD} -e 's|/usr/share/icons|${PREFIX}/share/icons|' \
${WRKSRC}/src/qtel/qtel.desktop
@${REINPLACE_CMD} -e 's|/usr/share/svxlink|${DOCSDIR}|' \
${WRKSRC}/src/doc/man/svxlink.conf.5
@${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|' ${WRKSRC}/src/qtel/qtel.desktop \
${WRKSRC}/src/doc/man/svxlink.conf.5 \
${WRKSRC}/src/svxlink/svxlink/svxlink.conf.in
@${REINPLACE_CMD} -e 's|/usr/lib|${PREFIX}/lib|' \
${WRKSRC}/src/doc/man/svxlink.conf.5
post-patch-OSS-on:
@${GREP} -lr alsa:default ${WRKSRC} | ${GREP} -v .bak | ${GREP} -v .orig | ${XARGS} \
${REINPLACE_CMD} -e 's|alsa:default|oss:/dev/dsp|'
@${GREP} -lr alsa:plughw:0 ${WRKSRC} | ${GREP} -v .bak | ${GREP} -v .orig | ${XARGS} \
${REINPLACE_CMD} -e 's|alsa:plughw:0|oss:/dev/dsp|'
.if ${PORTNAME}==svxlink
post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/.procmailrc \
${STAGEDIR}${PREFIX}/etc/svxlink/.procmailrc.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/gpio.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/gpio.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/TclVoiceMail.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/TclVoiceMail.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/remotetrx.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/remotetrx.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxreflector.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxreflector.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleDtmfRepeater.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleDtmfRepeater.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleEchoLink.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleEchoLink.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleFrn.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleFrn.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleHelp.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleHelp.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleMetarInfo.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleMetarInfo.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleParrot.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleParrot.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModulePropagationMonitor.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModulePropagationMonitor.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleSelCallEnc.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleSelCallEnc.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleTclVoiceMail.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleTclVoiceMail.conf.sample
${MV} ${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleTrx.conf \
${STAGEDIR}${PREFIX}/etc/svxlink/svxlink.d/ModuleTrx.conf.sample
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/src/doc/README-19.09.adoc ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORTNAME}==qtel
post-install:
${RM} ${STAGEDIR}${PREFIX}/include/svxlink/CppStdCompat.h
${RM} ${STAGEDIR}${PREFIX}/include/svxlink/common.h
${RM} ${STAGEDIR}${PREFIX}/lib/libsvxmisc.a
.endif
.include <bsd.port.mk>