Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 07:00:45 -0700 (PDT)
From:      Carl Makin <carl@stagecraft.cx>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/63013: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0
Message-ID:  <200404191400.i3JE0jEQ013859@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/63013; it has been noted by GNATS.

From: Carl Makin <carl@stagecraft.cx>
To: esn@x123.info, freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/63013: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0
Date: Mon, 19 Apr 2004 23:50:19 +1000

 Evening All,
 Below is a crude hack but it avoids the dual getopt_long definition.  I 
 think it will also fail if libgnugetopt is not installed.  This patch 
 below should take care of both compile failures.
 
 Please also look at ports/65758 which adds;
 
 USE_GNOME=	pkgconfig gnomehack
 
 to the Makefile of Hamlib 1.1.4 which is also valid for 1.2.0.
 
 Also, this port is using "USE_SIZE" which I think is now deprecated!
 
 --------------- Cut Here ----------------------------------
 New File: /usr/ports/comms/hamlib/files/patch-config.h.in
 --- include/config.h.in.orig	Mon Apr 19 22:16:14 2004
 +++ include/config.h.in	Mon Apr 19 22:16:43 2004
 @@ -388,16 +388,6 @@
   extern "C" {
   #endif
 
 -#ifndef HAVE_GETOPT
 -int getopt (int argc, char * const argv[], const char * optstring);
 -extern char * optarg;
 -extern int optind, opterr, optopt;
 -#endif
 -#ifndef HAVE_GETOPT_LONG
 -int getopt_long (int argc, char * const argv[], const char * optstring,
 -			const struct option * longopts, int * longindex);
 -#endif
 -
   #ifndef HAVE_USLEEP
   int usleep(unsigned long usec);	/* SUSv2 */
   #endif
 --------------- Cut Here ----------------------------------
 
 Thanks!
 
 Carl.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404191400.i3JE0jEQ013859>