From 39d9f9038c9507d927b2fc86d81aa003955d3967 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 28 May 2007 17:07:27 +0000 Subject: [PATCH] hamlib radio/rotator control library --- comms/hamlib/Makefile | 59 +++++++++++++ comms/hamlib/distinfo | 4 + comms/hamlib/patches/patch-rpcrig_rpcrigd_c | 14 +++ comms/hamlib/patches/patch-rpcrot_rpcrotd_c | 13 +++ comms/hamlib/pkg/DESCR-main | 9 ++ comms/hamlib/pkg/DESCR-python | 1 + comms/hamlib/pkg/DESCR-tcl | 1 + comms/hamlib/pkg/PFRAG.shared-main | 33 +++++++ comms/hamlib/pkg/PFRAG.shared-python | 2 + comms/hamlib/pkg/PFRAG.shared-tcl | 3 + comms/hamlib/pkg/PLIST-main | 97 +++++++++++++++++++++ comms/hamlib/pkg/PLIST-python | 8 ++ comms/hamlib/pkg/PLIST-tcl | 6 ++ 13 files changed, 250 insertions(+) create mode 100644 comms/hamlib/Makefile create mode 100644 comms/hamlib/distinfo create mode 100644 comms/hamlib/patches/patch-rpcrig_rpcrigd_c create mode 100644 comms/hamlib/patches/patch-rpcrot_rpcrotd_c create mode 100644 comms/hamlib/pkg/DESCR-main create mode 100644 comms/hamlib/pkg/DESCR-python create mode 100644 comms/hamlib/pkg/DESCR-tcl create mode 100644 comms/hamlib/pkg/PFRAG.shared-main create mode 100644 comms/hamlib/pkg/PFRAG.shared-python create mode 100644 comms/hamlib/pkg/PFRAG.shared-tcl create mode 100644 comms/hamlib/pkg/PLIST-main create mode 100644 comms/hamlib/pkg/PLIST-python create mode 100644 comms/hamlib/pkg/PLIST-tcl diff --git a/comms/hamlib/Makefile b/comms/hamlib/Makefile new file mode 100644 index 00000000000..af8a618d612 --- /dev/null +++ b/comms/hamlib/Makefile @@ -0,0 +1,59 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ + +COMMENT-main= "radio/rotator control library" +COMMENT-python= "python bindings" +COMMENT-tcl= "tcl bindings" + +VERSION= 1.2.6 +DISTNAME= hamlib-${VERSION} +PKGNAME-main= hamlib-${VERSION} +PKGNAME-python= hamlib-python-${VERSION} +PKGNAME-tcl= hamlib-tcl-${VERSION} +CATEGORIES= comms hamradio + +MULTI_PACKAGES= -main -python -tcl + +SHARED_LIBS= hamlib 2.5 \ + hamlib++ 2.5 + +HOMEPAGE= http://hamlib.sourceforge.net/ + +MAINTAINER= Jason Wright + +MODULES= lang/python + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= c m stdc++ z +WANTLIB-python= m usb +WANTLIB-tcl= m usb + +LIB_DEPENDS-main= xml2::textproc/libxml \ + iconv::converters/libiconv \ + usb.>=9::devel/libusb +LIB_DEPENDS-python= hamlib::${PKGPATH} \ + python${MODPY_VERSION}::lang/python/${MODPY_VERSION} +LIB_DEPENDS-tcl= hamlib::${PKGPATH} \ + tcl84::lang/tcl/8.4 + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hamlib/} + +USE_LIBTOOL= Yes +CONFIGURE_STYLE= gnu + +BUILD_DEPENDS= ::devel/swig + +RUN_DEPENDS-main= +RUN_DEPENDS-tcl= + +# --without-winradio do not build winradio backend +# --with-gnuradio build gnuradio backend + +CONFIGURE_ARGS=--with-cxx-binding --with-perl-binding --with-rpc-backends \ + --with-tcl-binding --with-python-binding --without-rigmatrix \ + --with-tcl=${LOCALBASE}/lib/tcl8.4 + +.include diff --git a/comms/hamlib/distinfo b/comms/hamlib/distinfo new file mode 100644 index 00000000000..49e3ca66d87 --- /dev/null +++ b/comms/hamlib/distinfo @@ -0,0 +1,4 @@ +MD5 (hamlib-1.2.6.tar.gz) = 4bb058cfb9f13eaa8948b41e47956599 +RMD160 (hamlib-1.2.6.tar.gz) = de4484ec0862632d53ac3905e61f9833a02547da +SHA1 (hamlib-1.2.6.tar.gz) = 79c8eeef51cf1ad49558c698edf7b3eb638bfd76 +SIZE (hamlib-1.2.6.tar.gz) = 1473299 diff --git a/comms/hamlib/patches/patch-rpcrig_rpcrigd_c b/comms/hamlib/patches/patch-rpcrig_rpcrigd_c new file mode 100644 index 00000000000..8c0fbbe6b71 --- /dev/null +++ b/comms/hamlib/patches/patch-rpcrig_rpcrigd_c @@ -0,0 +1,14 @@ +$OpenBSD: patch-rpcrig_rpcrigd_c,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +--- rpcrig/rpcrigd.c.orig Tue Nov 1 10:09:56 2005 ++++ rpcrig/rpcrigd.c Tue Nov 1 10:10:23 2005 +@@ -45,7 +45,9 @@ + + #include + +- ++#ifdef __OpenBSD__ ++int _rpcsvcdirty; ++#endif + + /* + * Prototypes diff --git a/comms/hamlib/patches/patch-rpcrot_rpcrotd_c b/comms/hamlib/patches/patch-rpcrot_rpcrotd_c new file mode 100644 index 00000000000..b53cac83d7b --- /dev/null +++ b/comms/hamlib/patches/patch-rpcrot_rpcrotd_c @@ -0,0 +1,13 @@ +$OpenBSD: patch-rpcrot_rpcrotd_c,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +--- rpcrot/rpcrotd.c.orig Tue Nov 1 10:09:40 2005 ++++ rpcrot/rpcrotd.c Tue Nov 1 10:10:30 2005 +@@ -45,6 +45,9 @@ + + #include + ++#ifdef __OpenBSD__ ++int _rpcsvcdirty; ++#endif + + /* + * Prototypes diff --git a/comms/hamlib/pkg/DESCR-main b/comms/hamlib/pkg/DESCR-main new file mode 100644 index 00000000000..0a49db81f4c --- /dev/null +++ b/comms/hamlib/pkg/DESCR-main @@ -0,0 +1,9 @@ +The Ham m Radio Control Libraries, Hamlib for short, is a development +effort to provide a consistent interface for programmers wanting to +incorporate radio control in their programs. Hamlib is not a complete +user application, rather, it is a software layer intended to make +controlling various radios and other shack hardware much easier. +Hamlib will allow authors of such software as logging programs, +digital communications programs, or those wanting to develop the +ultimate radio control software to concentrate on the user interface +and the basic function of the program rather than radio control. diff --git a/comms/hamlib/pkg/DESCR-python b/comms/hamlib/pkg/DESCR-python new file mode 100644 index 00000000000..f34f0e57b95 --- /dev/null +++ b/comms/hamlib/pkg/DESCR-python @@ -0,0 +1 @@ +Python bindings for hamlib radio/rotator control library. diff --git a/comms/hamlib/pkg/DESCR-tcl b/comms/hamlib/pkg/DESCR-tcl new file mode 100644 index 00000000000..ed9b1a9098a --- /dev/null +++ b/comms/hamlib/pkg/DESCR-tcl @@ -0,0 +1 @@ +TCL bindings for hamlib radio/rotator control library. diff --git a/comms/hamlib/pkg/PFRAG.shared-main b/comms/hamlib/pkg/PFRAG.shared-main new file mode 100644 index 00000000000..4c2567f21e7 --- /dev/null +++ b/comms/hamlib/pkg/PFRAG.shared-main @@ -0,0 +1,33 @@ +@comment $OpenBSD: PFRAG.shared-main,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +lib/hamlib-alinco.so +lib/hamlib-aor.so +lib/hamlib-drake.so +lib/hamlib-dummy.so +lib/hamlib-easycomm.so +lib/hamlib-flexradio.so +lib/hamlib-fodtrack.so +lib/hamlib-icom.so +lib/hamlib-jrc.so +lib/hamlib-kachina.so +lib/hamlib-kenwood.so +lib/hamlib-kit.so +lib/hamlib-lowe.so +lib/hamlib-microtune.so +lib/hamlib-pcr.so +lib/hamlib-racal.so +lib/hamlib-rft.so +lib/hamlib-rotorez.so +lib/hamlib-rpcrig.so +lib/hamlib-rpcrot.so +lib/hamlib-sartek.so +lib/hamlib-skanti.so +lib/hamlib-tapr.so +lib/hamlib-tentec.so +lib/hamlib-tuner.so +lib/hamlib-uniden.so +lib/hamlib-winradio.so +lib/hamlib-wj.so +lib/hamlib-yaesu.so +@lib lib/libhamlib++.so.${LIBhamlib++_VERSION} +@lib lib/libhamlib.so.${LIBhamlib_VERSION} +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Hamlib/Hamlib.so diff --git a/comms/hamlib/pkg/PFRAG.shared-python b/comms/hamlib/pkg/PFRAG.shared-python new file mode 100644 index 00000000000..35906db3540 --- /dev/null +++ b/comms/hamlib/pkg/PFRAG.shared-python @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared-python,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +lib/_Hamlib.so diff --git a/comms/hamlib/pkg/PFRAG.shared-tcl b/comms/hamlib/pkg/PFRAG.shared-tcl new file mode 100644 index 00000000000..6835b941b8b --- /dev/null +++ b/comms/hamlib/pkg/PFRAG.shared-tcl @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared-tcl,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +lib/hamlibtcl-1.0.so +lib/hamlibtcl.so diff --git a/comms/hamlib/pkg/PLIST-main b/comms/hamlib/pkg/PLIST-main new file mode 100644 index 00000000000..8e844b0350d --- /dev/null +++ b/comms/hamlib/pkg/PLIST-main @@ -0,0 +1,97 @@ +@comment $OpenBSD: PLIST-main,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +%%SHARED%% +bin/rigctl +bin/rigmem +bin/rigswr +bin/rotctl +include/hamlib/ +include/hamlib/rig.h +include/hamlib/rig_dll.h +include/hamlib/rigclass.h +include/hamlib/riglist.h +include/hamlib/rotator.h +include/hamlib/rotclass.h +include/hamlib/rotlist.h +lib/hamlib-alinco.a +lib/hamlib-alinco.la +lib/hamlib-aor.a +lib/hamlib-aor.la +lib/hamlib-drake.a +lib/hamlib-drake.la +lib/hamlib-dummy.a +lib/hamlib-dummy.la +lib/hamlib-easycomm.a +lib/hamlib-easycomm.la +lib/hamlib-flexradio.a +lib/hamlib-flexradio.la +lib/hamlib-fodtrack.a +lib/hamlib-fodtrack.la +lib/hamlib-icom.a +lib/hamlib-icom.la +lib/hamlib-jrc.a +lib/hamlib-jrc.la +lib/hamlib-kachina.a +lib/hamlib-kachina.la +lib/hamlib-kenwood.a +lib/hamlib-kenwood.la +lib/hamlib-kit.a +lib/hamlib-kit.la +lib/hamlib-lowe.a +lib/hamlib-lowe.la +lib/hamlib-microtune.a +lib/hamlib-microtune.la +lib/hamlib-pcr.a +lib/hamlib-pcr.la +lib/hamlib-racal.a +lib/hamlib-racal.la +lib/hamlib-rft.a +lib/hamlib-rft.la +lib/hamlib-rotorez.a +lib/hamlib-rotorez.la +lib/hamlib-rpcrig.a +lib/hamlib-rpcrig.la +lib/hamlib-rpcrot.a +lib/hamlib-rpcrot.la +lib/hamlib-sartek.a +lib/hamlib-sartek.la +lib/hamlib-skanti.a +lib/hamlib-skanti.la +lib/hamlib-tapr.a +lib/hamlib-tapr.la +lib/hamlib-tentec.a +lib/hamlib-tentec.la +lib/hamlib-tuner.a +lib/hamlib-tuner.la +lib/hamlib-uniden.a +lib/hamlib-uniden.la +lib/hamlib-winradio.a +lib/hamlib-winradio.la +lib/hamlib-wj.a +lib/hamlib-wj.la +lib/hamlib-yaesu.a +lib/hamlib-yaesu.la +lib/libhamlib++.a +lib/libhamlib++.la +lib/libhamlib.a +lib/libhamlib.la +lib/pkgconfig/ +lib/pkgconfig/hamlib.pc +libdata/perl5/${MACHINE_ARCH}-openbsd/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/perllocal.pod +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Hamlib.pm +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Hamlib/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Hamlib/Hamlib.bs +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/perltest.pl +@man man/man1/rigctl.1 +@man man/man1/rigmem.1 +@man man/man1/rigswr.1 +@man man/man1/rotctl.1 +@man man/man8/rpc.rigd.8 +@man man/man8/rpc.rotd.8 +sbin/rpc.rigd +sbin/rpc.rotd +share/aclocal/ +share/aclocal/hamlib.m4 diff --git a/comms/hamlib/pkg/PLIST-python b/comms/hamlib/pkg/PLIST-python new file mode 100644 index 00000000000..d23ee28b9c0 --- /dev/null +++ b/comms/hamlib/pkg/PLIST-python @@ -0,0 +1,8 @@ +@comment $OpenBSD: PLIST-python,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +%%SHARED%% +lib/_Hamlib.a +lib/_Hamlib.la +lib/python/ +lib/python/Hamlib.py +lib/python/Hamlib.pyc +lib/python/Hamlib.pyo diff --git a/comms/hamlib/pkg/PLIST-tcl b/comms/hamlib/pkg/PLIST-tcl new file mode 100644 index 00000000000..7805bc2d6bd --- /dev/null +++ b/comms/hamlib/pkg/PLIST-tcl @@ -0,0 +1,6 @@ +@comment $OpenBSD: PLIST-tcl,v 1.1.1.1 2007/05/28 17:07:27 jason Exp $ +%%SHARED%% +lib/hamlibtcl.a +lib/hamlibtcl.la +lib/tcl/ +lib/tcl/pkgIndex.tcl