Files
haikuports/media-libs/hamlib/hamlib-3.1.recipe
2017-09-20 18:54:08 +02:00

89 lines
2.3 KiB
Bash

SUMMARY="Ham radio backend rig control library"
DESCRIPTION="The purpose of this project is to provide stable, flexible, shared \
libraries that enable quicker development of Amateur Radio Equipment Control \
Applications.
Many Amateur Radio Transceivers come with serial interfaces that allows \
software to control the radio. This project will endeavour to provide shared \
libraries that greatly simplify the application programmer''s interaction \
with radio equipment and other controllable devices such as rotators, \
switches, etc."
HOMEPAGE="http://www.hamlib.org/"
COPYRIGHT="2000 Frank Singleton
2000-2011 Stephane Fillod
2000-2012 The Hamlib Group"
LICENSE="GNU LGPL v2
GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/hamlib/files/hamlib/$portVersion/hamlib-$portVersion.tar.gz"
CHECKSUM_SHA256="682304c3e88ff6ccfd6a5fc28b33bcc95d2d0a54321973fef015ff62570c994e"
PATCHES="hamlib-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
PROVIDES="
hamlib$secondaryArchSuffix = $portVersion compat >= 3
cmd:rigctl$secondaryArchSuffix
cmd:rigctld$secondaryArchSuffix
cmd:rigmem$secondaryArchSuffix
cmd:rigsmtr$secondaryArchSuffix
cmd:rigswr$secondaryArchSuffix
cmd:rotctl$secondaryArchSuffix
cmd:rotctld$secondaryArchSuffix
lib:libhamlib$secondaryArchSuffix = 2.1.1 compat >= 2
lib:libhamlib++$secondaryArchSuffix = 2.1.1 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
hamlib${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libhamlib$secondaryArchSuffix = 2.1.1 compat >= 2
devel:libhamlib++$secondaryArchSuffix = 2.1.1 compat >= 2
"
REQUIRES_devel="
hamlib$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libreadline$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:makeinfo
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# remove libtool files
rm $libDir/libhamlib*.la
prepareInstalledDevelLibs libhamlib++ libhamlib
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$dataDir
}