freebsd-ports/comms/hamlib/Makefile

57 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Sebastian Yepes <esn@x123.info>
# $FreeBSD$
PORTNAME= hamlib
2016-04-08 02:00:17 +02:00
PORTVERSION= 3.0.1
- Fix 'all-depends-list' target in cases if dependencies list is very long and if some dependencies can't be added into the list. [1] - Fix FAM support. Make gamin the default FAM system. [2] - Introduce new 'quicksearch' target to show only port, path and info section of the matching ports. [3] - Introduce new category - rubygems. [4] - Fix stale dependencies while installing qmail slaveport and another port that depends on qmail. [5] - Add commentary for describes target in bsd.port.mk. [6] - Fix warning issued during make index on archs !368. [7] - Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from all files under ${WRKSRC}. If set to a string, remove in all files under ${WRKSRC} with one of these names the ^Ms. [8] - Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by checking the existance of the Perl modules with the "perl -e 'use module;'" command. [9] - Fix bsd.port.mk variable quoting issues. No quoting is necessary anymore either in the Makefile or on the command line. Affected variables include: BROKEN FORBIDDEN IGNORE MANUAL_PACKAGE_BUILD NO_CDROM NO_PACKAGE RESTRICTED [10] - Add NOFETCHFILES variable. If set, don't download these files from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from ${MASTER_SITE_OVERRIDE}). [11] - Improve 'search' target output. [12] - Add a new virtual category for Amateur Radio - hamradio. [13] - Cleanup some old/unused pathes in bsd.port.mk. [14] - Add @dirrmtry for plists which does the same as: "@unexec rmdir %D/foo 2>/dev/null || true" [15] - Remove virtual category - offix. [16] - Use portsnap instead of cvsup or cvs on "make update" in /usr/ports. [17] - Move location of bsd.autotools.mk within bsd.port.mk [18] - Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19] - Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20] - Replace the string "FreeBSD" by "The FreeBSD Project" in the security warning [21] - Add bsd.local.mk for local modification to ports framework. [22] - Replace rcNG spelling by rc.d [23] - Remove superfluous USE_REINPLACE. [24] Special thanks to: linimon for spending hours with all these patches clement for fixes kris for help with pointyhat PR: ports/86310 [1], ports/89498 [2], ports/83530 [3], ports/83789 [4], ports/84053 [5], ports/86281 [6], ports/87214 [7], ports/87234 [8], ports/87318 [9], ports/87396 [10], ports/87605 [11], ports/87840 [12], ports/88230 [13], ports/88493 [14], ports/88711 [15], ports/88751 [16], ports/89281 [17], ports/89999 [18], ports/90031 [19], ports/90150 [20], ports/90668 [21], ports/91433 [23], ports/88754 [24] Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3], pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7], edwin [8, 9, 11, 15, 21], fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12], Carl Makin <carl@stagecraft.cx> [13], arved [14], NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18], jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
CATEGORIES= comms hamradio
MASTER_SITES= SF
2014-07-02 13:39:44 +02:00
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Shared libraries for Amateur Radio Equipment Control Applications
LICENSE= LGPL20
BUILD_DEPENDS= swig:devel/swig13
LIB_DEPENDS= libltdl.so:devel/libltdl
INFO= hamlib
The Hamlib Group is pleased to announce the release of Hamlib 3.0. This release of Hamlib introduces a change to the version scheme. Essentially, the leading '1.' characters have been dropped so '3.0' is a direct follow on from the '1.2.' releases and has been configured to be ABI compatible with the '1.2.' releases. Bug fixes to this release will start with '3.0.1' through '3.0.n'. The next releases will be '3.1' through '3.n' until the next major release. Files are hosted at the Hamlib prjoect page at SourceForge.net: https://sourceforge.net/projects/hamlib/files/hamlib/3.0/ The changes include: Version 3.0 2015-09-20 * Kill RPC backends and rpc.rigd/rpc.rotd * Remove -e|--end-marker option from rigctld and rotctld * Build system updates--remove obsolete macros, autogen.sh now runs autoreconf to invoke Autotools to bootstrap the build system, libltdl is installed into the source tree as a part of the build system bootstrap and is included in the source tarball, ABI version is set to be compatible with the 1.2 series, all Autotools installed files are copied rather than symlinked and put in the build-aux directory, building rigmem and rigmatrix are now user selectable at configure run time, building static libraries are disabled by default. Fixed TCL binding installation, fixed Perl binding build so it is not invoked by 'make dist' and clean up build files. Cleaned up bindings builds to occur in alphabetical order. Use new ax_pkg_swig macro and update ax_python_devel macro. Test for presence of pkg-config before testing for pkg-config use. * Implement new RIT/XIT activation/deactivation through rig_get/set_func +() * IC-PCR1500/2500 default write_delay to 0, IC-746/756, IC-PCR8500 fixes, pcr.c, pcr1500.c: Add DSP support. TNX Paul, KE7ZZ * WinRadio G313 updates. TNX Julian Campbel * Readline editing and history support added to rigctl interactive mode. Implement options for reading and writing history file. * Readline editing and history support added to rotctl interactive mode. Implement options for reading and writing history file. * A new manual draft written in Texinfo added. Both GNU Info and single HTML files are built and distributed, requires makeinfo. * Android build system support. See android/README.android. Android Makefile fragments are included in source tarballs. * Monolithic library, thanks to Remi Chateauneu for the majority of the work! This allows enabling of a single static library so static libs are enabled by default. Removes dependency on libltdl. * Fixes to easycomm, TNX Steve AI4QR. * Fixes to port handling allowing PTT and CAT on the same port. TNX Bill, G4WJS. * New Peaberry models V1 and V2 added to kit backend. TNX ON8VQ and R2AEE. * New IC-7100 model. TNX Martin, CT1IQI. * Use AC_CHECK_LIB macro to search for libusb rather than rely on pkg-config. Preserve environment variables LIBUSB_CFLAGS and LIBUSB_LIBS as user precious variables. Two features, --with-xml-support and --enable-usrp still rely on pkg-config so only invoke pkg-config when either or both of these features are selected. Only the Winradio g313 model uses libdl so test for it only when Winradio backend is enabled. * New IC-M700PRO, IC-M710, IC-M802. * New Icom ID-5100 model. * New rotor, cnctrk by KI4SBL * Many backend fixes and updates from many contributors (see Git log for complete details).
2015-10-02 15:39:19 +02:00
USES= autoreconf libtool:keepla pathfix perl5 pkgconfig python shebangfix tcl
USE_PYTHON= py3kplist
SHEBANG_FILES= bindings/perltest.pl
USE_PERL5= build run
USE_GNOME= libxml2
USE_LDCONFIG= yes
The Hamlib Group is pleased to announce the release of Hamlib 3.0. This release of Hamlib introduces a change to the version scheme. Essentially, the leading '1.' characters have been dropped so '3.0' is a direct follow on from the '1.2.' releases and has been configured to be ABI compatible with the '1.2.' releases. Bug fixes to this release will start with '3.0.1' through '3.0.n'. The next releases will be '3.1' through '3.n' until the next major release. Files are hosted at the Hamlib prjoect page at SourceForge.net: https://sourceforge.net/projects/hamlib/files/hamlib/3.0/ The changes include: Version 3.0 2015-09-20 * Kill RPC backends and rpc.rigd/rpc.rotd * Remove -e|--end-marker option from rigctld and rotctld * Build system updates--remove obsolete macros, autogen.sh now runs autoreconf to invoke Autotools to bootstrap the build system, libltdl is installed into the source tree as a part of the build system bootstrap and is included in the source tarball, ABI version is set to be compatible with the 1.2 series, all Autotools installed files are copied rather than symlinked and put in the build-aux directory, building rigmem and rigmatrix are now user selectable at configure run time, building static libraries are disabled by default. Fixed TCL binding installation, fixed Perl binding build so it is not invoked by 'make dist' and clean up build files. Cleaned up bindings builds to occur in alphabetical order. Use new ax_pkg_swig macro and update ax_python_devel macro. Test for presence of pkg-config before testing for pkg-config use. * Implement new RIT/XIT activation/deactivation through rig_get/set_func +() * IC-PCR1500/2500 default write_delay to 0, IC-746/756, IC-PCR8500 fixes, pcr.c, pcr1500.c: Add DSP support. TNX Paul, KE7ZZ * WinRadio G313 updates. TNX Julian Campbel * Readline editing and history support added to rigctl interactive mode. Implement options for reading and writing history file. * Readline editing and history support added to rotctl interactive mode. Implement options for reading and writing history file. * A new manual draft written in Texinfo added. Both GNU Info and single HTML files are built and distributed, requires makeinfo. * Android build system support. See android/README.android. Android Makefile fragments are included in source tarballs. * Monolithic library, thanks to Remi Chateauneu for the majority of the work! This allows enabling of a single static library so static libs are enabled by default. Removes dependency on libltdl. * Fixes to easycomm, TNX Steve AI4QR. * Fixes to port handling allowing PTT and CAT on the same port. TNX Bill, G4WJS. * New Peaberry models V1 and V2 added to kit backend. TNX ON8VQ and R2AEE. * New IC-7100 model. TNX Martin, CT1IQI. * Use AC_CHECK_LIB macro to search for libusb rather than rely on pkg-config. Preserve environment variables LIBUSB_CFLAGS and LIBUSB_LIBS as user precious variables. Two features, --with-xml-support and --enable-usrp still rely on pkg-config so only invoke pkg-config when either or both of these features are selected. Only the Winradio g313 model uses libdl so test for it only when Winradio backend is enabled. * New IC-M700PRO, IC-M710, IC-M802. * New Icom ID-5100 model. * New rotor, cnctrk by KI4SBL * Many backend fixes and updates from many contributors (see Git log for complete details).
2015-10-02 15:39:19 +02:00
# $TCL_INCLUDE_SPEC
CPPFLAGS+= -I${LOCALBASE}/include
Support LIBS like LDFLAGS. - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
2014-06-11 16:49:59 +02:00
LIBS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl-binding \
The Hamlib Group is pleased to announce the release of Hamlib 3.0. This release of Hamlib introduces a change to the version scheme. Essentially, the leading '1.' characters have been dropped so '3.0' is a direct follow on from the '1.2.' releases and has been configured to be ABI compatible with the '1.2.' releases. Bug fixes to this release will start with '3.0.1' through '3.0.n'. The next releases will be '3.1' through '3.n' until the next major release. Files are hosted at the Hamlib prjoect page at SourceForge.net: https://sourceforge.net/projects/hamlib/files/hamlib/3.0/ The changes include: Version 3.0 2015-09-20 * Kill RPC backends and rpc.rigd/rpc.rotd * Remove -e|--end-marker option from rigctld and rotctld * Build system updates--remove obsolete macros, autogen.sh now runs autoreconf to invoke Autotools to bootstrap the build system, libltdl is installed into the source tree as a part of the build system bootstrap and is included in the source tarball, ABI version is set to be compatible with the 1.2 series, all Autotools installed files are copied rather than symlinked and put in the build-aux directory, building rigmem and rigmatrix are now user selectable at configure run time, building static libraries are disabled by default. Fixed TCL binding installation, fixed Perl binding build so it is not invoked by 'make dist' and clean up build files. Cleaned up bindings builds to occur in alphabetical order. Use new ax_pkg_swig macro and update ax_python_devel macro. Test for presence of pkg-config before testing for pkg-config use. * Implement new RIT/XIT activation/deactivation through rig_get/set_func +() * IC-PCR1500/2500 default write_delay to 0, IC-746/756, IC-PCR8500 fixes, pcr.c, pcr1500.c: Add DSP support. TNX Paul, KE7ZZ * WinRadio G313 updates. TNX Julian Campbel * Readline editing and history support added to rigctl interactive mode. Implement options for reading and writing history file. * Readline editing and history support added to rotctl interactive mode. Implement options for reading and writing history file. * A new manual draft written in Texinfo added. Both GNU Info and single HTML files are built and distributed, requires makeinfo. * Android build system support. See android/README.android. Android Makefile fragments are included in source tarballs. * Monolithic library, thanks to Remi Chateauneu for the majority of the work! This allows enabling of a single static library so static libs are enabled by default. Removes dependency on libltdl. * Fixes to easycomm, TNX Steve AI4QR. * Fixes to port handling allowing PTT and CAT on the same port. TNX Bill, G4WJS. * New Peaberry models V1 and V2 added to kit backend. TNX ON8VQ and R2AEE. * New IC-7100 model. TNX Martin, CT1IQI. * Use AC_CHECK_LIB macro to search for libusb rather than rely on pkg-config. Preserve environment variables LIBUSB_CFLAGS and LIBUSB_LIBS as user precious variables. Two features, --with-xml-support and --enable-usrp still rely on pkg-config so only invoke pkg-config when either or both of these features are selected. Only the Winradio g313 model uses libdl so test for it only when Winradio backend is enabled. * New IC-M700PRO, IC-M710, IC-M802. * New Icom ID-5100 model. * New rotor, cnctrk by KI4SBL * Many backend fixes and updates from many contributors (see Git log for complete details).
2015-10-02 15:39:19 +02:00
--with-tcl-binding --with-tcl=${TCL_LIBDIR} \
--with-python-binding --without-rigmatrix
2008-11-12 17:29:14 +01:00
PLIST_SUB= VER=${PORTVERSION} TCL_VER=${TCL_VER}
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DOCS
2008-11-12 17:29:14 +01:00
post-patch:
The Hamlib Group is pleased to announce the release of Hamlib 3.0. This release of Hamlib introduces a change to the version scheme. Essentially, the leading '1.' characters have been dropped so '3.0' is a direct follow on from the '1.2.' releases and has been configured to be ABI compatible with the '1.2.' releases. Bug fixes to this release will start with '3.0.1' through '3.0.n'. The next releases will be '3.1' through '3.n' until the next major release. Files are hosted at the Hamlib prjoect page at SourceForge.net: https://sourceforge.net/projects/hamlib/files/hamlib/3.0/ The changes include: Version 3.0 2015-09-20 * Kill RPC backends and rpc.rigd/rpc.rotd * Remove -e|--end-marker option from rigctld and rotctld * Build system updates--remove obsolete macros, autogen.sh now runs autoreconf to invoke Autotools to bootstrap the build system, libltdl is installed into the source tree as a part of the build system bootstrap and is included in the source tarball, ABI version is set to be compatible with the 1.2 series, all Autotools installed files are copied rather than symlinked and put in the build-aux directory, building rigmem and rigmatrix are now user selectable at configure run time, building static libraries are disabled by default. Fixed TCL binding installation, fixed Perl binding build so it is not invoked by 'make dist' and clean up build files. Cleaned up bindings builds to occur in alphabetical order. Use new ax_pkg_swig macro and update ax_python_devel macro. Test for presence of pkg-config before testing for pkg-config use. * Implement new RIT/XIT activation/deactivation through rig_get/set_func +() * IC-PCR1500/2500 default write_delay to 0, IC-746/756, IC-PCR8500 fixes, pcr.c, pcr1500.c: Add DSP support. TNX Paul, KE7ZZ * WinRadio G313 updates. TNX Julian Campbel * Readline editing and history support added to rigctl interactive mode. Implement options for reading and writing history file. * Readline editing and history support added to rotctl interactive mode. Implement options for reading and writing history file. * A new manual draft written in Texinfo added. Both GNU Info and single HTML files are built and distributed, requires makeinfo. * Android build system support. See android/README.android. Android Makefile fragments are included in source tarballs. * Monolithic library, thanks to Remi Chateauneu for the majority of the work! This allows enabling of a single static library so static libs are enabled by default. Removes dependency on libltdl. * Fixes to easycomm, TNX Steve AI4QR. * Fixes to port handling allowing PTT and CAT on the same port. TNX Bill, G4WJS. * New Peaberry models V1 and V2 added to kit backend. TNX ON8VQ and R2AEE. * New IC-7100 model. TNX Martin, CT1IQI. * Use AC_CHECK_LIB macro to search for libusb rather than rely on pkg-config. Preserve environment variables LIBUSB_CFLAGS and LIBUSB_LIBS as user precious variables. Two features, --with-xml-support and --enable-usrp still rely on pkg-config so only invoke pkg-config when either or both of these features are selected. Only the Winradio g313 model uses libdl so test for it only when Winradio backend is enabled. * New IC-M700PRO, IC-M710, IC-M802. * New Icom ID-5100 model. * New rotor, cnctrk by KI4SBL * Many backend fixes and updates from many contributors (see Git log for complete details).
2015-10-02 15:39:19 +02:00
@${REINPLACE_CMD} -e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g' \
-e 's|%%TCL_LIBDIR%%|${TCL_LIBDIR}|g' \
${WRKSRC}/bindings/Makefile.am
@${REINPLACE_CMD} -e 's|%%TCLSH%%|${TCLSH}|g' \
${WRKSRC}/bindings/tcltest.tcl
post-build:
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' \
2013-12-30 22:51:43 +01:00
${STAGEDIR}${WRKSRC}/bindings/Hamlib-pl.mk
2009-11-25 18:30:42 +01:00
post-install:
2013-12-30 22:51:43 +01:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
2009-11-25 18:30:42 +01:00
.for d in ${WRKSRC}/AUTHORS ${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB \
${WRKSRC}/ChangeLog ${WRKSRC}/INSTALL ${WRKSRC}/LICENSE \
${WRKSRC}/NEWS ${WRKSRC}/PLAN ${WRKSRC}/README \
${WRKSRC}/README.betatester ${WRKSRC}/README.win32 \
${WRKSRC}/THANKS
${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
2009-11-25 18:30:42 +01:00
.endfor
2008-11-12 17:29:14 +01:00
.include <bsd.port.mk>