ports/63013: [Port Update]:: comms/hamlib 1.1.4 -> 1.2.0
Carl Makin
carl at stagecraft.cx
Mon Apr 19 14:00:45 UTC 2004
The following reply was made to PR ports/63013; it has been noted by GNATS.
From: Carl Makin <carl at stagecraft.cx>
To: esn at x123.info, freebsd-gnats-submit at 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.
More information about the freebsd-ports-bugs
mailing list