Date: Wed, 17 Apr 2019 03:00:38 +0000 (UTC) From: Stephen Hurd <shurd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r499145 - branches/2019Q2/comms/wsjtx/files Message-ID: <201904170300.x3H30cEn037609@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: shurd Date: Wed Apr 17 03:00:38 2019 New Revision: 499145 URL: https://svnweb.freebsd.org/changeset/ports/499145 Log: MFH: r499037 Fix build when hamlib is installed. Put /usr/local/include at end of AM_CPPFLAGS instead of at beginning, ensures the included header files are used. Link included hamlib using ${libdir}/libhamlib.a rather than -lhamlib to ensure the included static hamlib is used instead of a dynamic one in the library path. Approved by: ports-secteam (miwi) Modified: branches/2019Q2/comms/wsjtx/files/hamlib.patch (contents, props changed) Directory Properties: branches/2019Q2/ (props changed) Modified: branches/2019Q2/comms/wsjtx/files/hamlib.patch ============================================================================== --- branches/2019Q2/comms/wsjtx/files/hamlib.patch Wed Apr 17 01:20:50 2019 (r499144) +++ branches/2019Q2/comms/wsjtx/files/hamlib.patch Wed Apr 17 03:00:38 2019 (r499145) @@ -1,5 +1,14 @@ --- hamlib/configure.ac.orig 2019-02-24 18:41:47.000000000 -0500 -+++ hamlib/configure.ac 2019-03-03 22:03:13.673990000 -0500 ++++ hamlib/configure.ac 2019-04-15 12:40:39.767084000 -0400 +@@ -270,7 +270,7 @@ + dnl The host_os variable is set by the AC_CANONICAL_HOST macro above. + AS_CASE(["$host_os"], + [freebsd*], [ +- AM_CPPFLAGS="-I/usr/local/include ${AM_CPPFLAGS}" ++ AM_CPPFLAGS="${AM_CPPFLAGS} -I/usr/local/include" + AM_LDFLAGS="${AM_LDFLAGS} -L/usr/local/lib" + AC_SUBST([AM_LDFLAGS])], + @@ -317,6 +317,7 @@ AC_MSG_RESULT([$cf_with_libusb]) @@ -8,3 +17,12 @@ LIBUSB="" AC_ARG_VAR([LIBUSB_CFLAGS], [C compiler flags for libusb, overriding configure defaults]) AC_ARG_VAR([LIBUSB_LIBS], [linker flags for libusb, overriding configure check (useful for specifying static libusb-1.0.a (see INSTALL))]) +--- hamlib/hamlib.pc.in.orig 2019-04-15 13:06:46.078042000 -0400 ++++ hamlib/hamlib.pc.in 2019-04-15 13:06:59.695694000 -0400 +@@ -9,5 +9,5 @@ + Version: @PACKAGE_VERSION@ + Requires.private: @LIBUSB@ + Cflags: -I${includedir} @PTHREAD_CFLAGS@ +-Libs: -L${libdir} -lhamlib ++Libs: -L${libdir} ${libdir}/libhamlib.a + Libs.private: @MATH_LIBS@ @DL_LIBS@ @NET_LIBS@ @PTHREAD_LIBS@
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904170300.x3H30cEn037609>