Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2020 13:02:52 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549108 - in head/astro/sextractor: . files
Message-ID:  <202009201302.08KD2qEc084196@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Sun Sep 20 13:02:52 2020
New Revision: 549108
URL: https://svnweb.freebsd.org/changeset/ports/549108

Log:
  Fix build with -fno-common

Added:
  head/astro/sextractor/files/
  head/astro/sextractor/files/patch-src_analyse.c   (contents, props changed)
  head/astro/sextractor/files/patch-src_catout.c   (contents, props changed)
  head/astro/sextractor/files/patch-src_clean.c   (contents, props changed)
  head/astro/sextractor/files/patch-src_clean.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_define.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_extract.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_filter.c   (contents, props changed)
  head/astro/sextractor/files/patch-src_filter.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_fits_fitscat.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_globals.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_plist.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_prefs.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_psf.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_retina.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_scan.c   (contents, props changed)
  head/astro/sextractor/files/patch-src_sexhead1.h   (contents, props changed)
  head/astro/sextractor/files/patch-src_som.h   (contents, props changed)
Modified:
  head/astro/sextractor/Makefile

Modified: head/astro/sextractor/Makefile
==============================================================================
--- head/astro/sextractor/Makefile	Sun Sep 20 12:55:55 2020	(r549107)
+++ head/astro/sextractor/Makefile	Sun Sep 20 13:02:52 2020	(r549108)
@@ -3,13 +3,16 @@
 
 PORTNAME=	sextractor
 PORTVERSION=	2.5.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	astro
 MASTER_SITES=	ftp://ftp.iap.fr/pub/from_users/bertin/sextractor/ \
 		http://download.gna.org/kanicule/freebsd/distfiles/
 
 MAINTAINER=	mathias@monnerville.com
 COMMENT=	Catalogue of objects builder from astronomical images
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 GNU_CONFIGURE=	yes
 USES=		gmake

Added: head/astro/sextractor/files/patch-src_analyse.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_analyse.c	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,20 @@
+--- src/analyse.c.orig	2006-06-29 17:58:03 UTC
++++ src/analyse.c
+@@ -23,6 +23,8 @@
+ #include	<stdlib.h>
+ #include	<string.h>
+ 
++#define		IN_MAIN
++
+ #include	"define.h"
+ #include	"globals.h"
+ #include	"prefs.h"
+@@ -41,7 +43,7 @@
+ #include	"som.h"
+ #include	"winpos.h"
+ 
+-static obj2struct	*obj2 = &outobj2;
++static obj2struct *obj2 = &outobj2;
+ 
+ /********************************* analyse ***********************************/
+ void  analyse(picstruct *field, picstruct *dfield, int objnb,

Added: head/astro/sextractor/files/patch-src_catout.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_catout.c	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,10 @@
+--- src/catout.c.orig	2006-07-14 17:13:55 UTC
++++ src/catout.c
+@@ -32,6 +32,7 @@
+ #include	"sexheadsc.h"
+ #include	"xml.h"
+ 
++double		ddummy;
+ catstruct	*fitscat;
+ tabstruct	*objtab = NULL;
+ FILE		*ascfile;

Added: head/astro/sextractor/files/patch-src_clean.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_clean.c	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/clean.c.orig	2005-10-24 11:48:52 UTC
++++ src/clean.c
+@@ -34,7 +34,7 @@
+ /*------------------------------- variables ---------------------------------*/
+ 
+ static LONG		*cleanvictim;
+-
++objliststruct		*cleanobjlist;
+ 
+ /******************************* initclean **********************************
+ PROTO   void initclean(void)

Added: head/astro/sextractor/files/patch-src_clean.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_clean.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/clean.h.orig	2005-10-24 11:48:52 UTC
++++ src/clean.h
+@@ -22,7 +22,7 @@
+ 
+ /*------------------------------- variables ---------------------------------*/
+ 
+-objliststruct	*cleanobjlist;		/* laconic, isn't it? */
++EXTERN objliststruct	*cleanobjlist;		/* laconic, isn't it? */
+ 
+ /*------------------------------- functions ---------------------------------*/
+ 

Added: head/astro/sextractor/files/patch-src_define.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_define.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,14 @@
+--- src/define.h.orig	2006-07-12 17:20:12 UTC
++++ src/define.h
+@@ -194,3 +194,11 @@
+ #define FLAG(x)		(*((char *)&flag##x))
+ 
+ #define VECFLAG(x)	(*((char *)flag##x))
++
++#ifdef IN_MAIN
++#define EXTERN
++#warning IN_MAIN
++#else
++#define EXTERN extern
++#warning NOT_IN_MAIN
++#endif

Added: head/astro/sextractor/files/patch-src_extract.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_extract.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/extract.h.orig	2005-11-30 06:10:08 UTC
++++ src/extract.h
+@@ -26,7 +26,7 @@ typedef	enum		{COMPLETE, INCOMPLETE, NONOBJECT, OBJECT
+ 				status;	/* Extraction status */
+ 
+ /*--------------------------------- variables -------------------------------*/
+-PIXTYPE		*dumscan;
++EXTERN PIXTYPE		*dumscan;
+ 
+ /*------------------------------- structures --------------------------------*/
+ /* Temporary object parameters during extraction */

Added: head/astro/sextractor/files/patch-src_filter.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_filter.c	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/filter.c.orig	2005-12-21 19:26:40 UTC
++++ src/filter.c
+@@ -32,6 +32,8 @@
+ #include	"filter.h"
+ #include	"image.h"
+ 
++filterstruct	*thefilter;
++
+ /******************************** convolve ***********************************/
+ /*
+ Convolve a scan line with an array.

Added: head/astro/sextractor/files/patch-src_filter.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_filter.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/filter.h.orig	2005-10-24 11:48:52 UTC
++++ src/filter.h
+@@ -32,7 +32,7 @@ typedef struct structfilter
+   struct structbpann	*bpann;
+   }	filterstruct;
+ 
+-filterstruct	*thefilter;
++EXTERN filterstruct	*thefilter;
+ 
+ /*------------------------------- functions ---------------------------------*/
+ void		convolve(picstruct *, PIXTYPE *),

Added: head/astro/sextractor/files/patch-src_fits_fitscat.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_fits_fitscat.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,18 @@
+--- src/fits/fitscat.h.orig	2006-07-10 13:17:06 UTC
++++ src/fits/fitscat.h
+@@ -306,7 +306,14 @@ extern  void	error(int, char *, char *),
+ 		swapbytes(void *ptr, int nb, int n),
+ 		warning(char *msg1, char *msg2);
+ 
++#ifdef IN_MAIN
++#define EXTERN
++#warning IN_MAIN
++#else
++#define EXTERN extern
++#warning NOT_IN_MAIN
++#endif
+ 
+-int		bswapflag;
++EXTERN int	bswapflag;
+ 
+ #endif

Added: head/astro/sextractor/files/patch-src_globals.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_globals.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,30 @@
+--- src/globals.h.orig	2006-07-14 14:28:10 UTC
++++ src/globals.h
+@@ -18,13 +18,13 @@
+ 
+ /*----------------------- miscellaneous variables ---------------------------*/
+ 
+-sexcatstruct		thecat;
+-picstruct		thefield1,thefield2, thewfield1,thewfield2;
+-objstruct		flagobj;
+-obj2struct		flagobj2;
++EXTERN sexcatstruct	thecat;
++EXTERN picstruct	thefield1,thefield2, thewfield1,thewfield2;
++EXTERN objstruct	flagobj;
++EXTERN obj2struct	flagobj2;
+ extern obj2struct	outobj2;
+-float			ctg[37], stg[37];
+-char			gstr[MAXCHAR];
++EXTERN float		ctg[37], stg[37];
++EXTERN char		gstr[MAXCHAR];
+ 
+ /*------------------------------- functions ---------------------------------*/
+ extern void	allocparcelout(void),
+@@ -81,6 +81,6 @@ extern void	*loadstrip(picstruct *, picstruct *);
+ 
+ extern char	*readfitshead(FILE *, char *, int *);
+ 
+-extern picstruct	*inheritfield(picstruct *infield, int flags),
++extern picstruct *inheritfield(picstruct *infield, int flags),
+ 			*newfield(char *, int , int);
+ 

Added: head/astro/sextractor/files/patch-src_plist.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_plist.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/plist.h.orig	2005-11-30 05:52:39 UTC
++++ src/plist.h
+@@ -35,7 +35,7 @@ typedef struct
+ 
+ /*-------------------------------- globals ----------------------------------*/
+ 
+-int	plistexist_value, plistexist_dvalue, plistexist_cdvalue,
++EXTERN int	plistexist_value, plistexist_dvalue, plistexist_cdvalue,
+ 	plistexist_flag, plistexist_wflag, plistexist_dthresh, plistexist_var,
+ 	plistoff_value, plistoff_dvalue, plistoff_cdvalue,
+ 	plistoff_flag[MAXFLAG], plistoff_wflag, plistoff_dthresh, plistoff_var,

Added: head/astro/sextractor/files/patch-src_prefs.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_prefs.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/prefs.h.orig	2006-07-13 17:11:09 UTC
++++ src/prefs.h
+@@ -206,7 +206,7 @@ typedef struct
+   int		nthreads;			/* Number of active threads */
+   }	prefstruct;
+ 
+-  prefstruct		prefs;
++EXTERN prefstruct	prefs;
+ 
+ /*-------------------------------- protos -----------------------------------*/
+ extern int	cistrcmp(char *cs, char *ct, int mode);

Added: head/astro/sextractor/files/patch-src_psf.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_psf.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,15 @@
+--- src/psf.h.orig	2006-01-12 18:30:35 UTC
++++ src/psf.h
+@@ -89,9 +89,9 @@ typedef struct
+   }	psfitstruct;
+ 
+ /*----------------------------- Global variables ----------------------------*/
+-psfstruct	*psf,*ppsf,*thepsf;
+-psfitstruct	*thepsfit,*ppsfit,*psfit;
+-PIXTYPE		*checkmask;
++EXTERN psfstruct	*psf,*ppsf,*thepsf;
++EXTERN psfitstruct	*thepsfit,*ppsfit,*psfit;
++EXTERN PIXTYPE		*checkmask;
+ 
+ /*-------------------------------- functions --------------------------------*/
+ extern void	compute_pos(int *pnpsf,int *pconvflag,int *pnpsfflag,

Added: head/astro/sextractor/files/patch-src_retina.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_retina.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/retina.h.orig	2005-10-24 11:48:52 UTC
++++ src/retina.h
+@@ -25,7 +25,7 @@ typedef struct structreti
+   struct structbpann	*bpann;	/* The neural network */
+   }     retistruct;
+ 
+-retistruct	*theretina;
++EXTERN retistruct	*theretina;
+ 
+ /*------------------------------- functions ---------------------------------*/
+ 

Added: head/astro/sextractor/files/patch-src_scan.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_scan.c	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,12 @@
+--- src/scan.c.orig	2006-06-29 20:03:13 UTC
++++ src/scan.c
+@@ -49,6 +49,9 @@ NOTES   -.
+ AUTHOR  E. Bertin (IAP)
+ VERSION 29/11/2005
+  ***/
++
++PIXTYPE		*dumscan;
++
+ void	scanimage(picstruct *field, picstruct *dfield, picstruct **pffield,
+ 		int nffield, picstruct *wfield, picstruct *dwfield)
+ 

Added: head/astro/sextractor/files/patch-src_sexhead1.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_sexhead1.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,13 @@
+--- src/sexhead1.h.orig	2005-10-24 11:48:52 UTC
++++ src/sexhead1.h
+@@ -15,8 +15,8 @@
+ */
+ 
+ 
+-int	idummy;
+-double	ddummy;
++EXTERN int	idummy;
++EXTERN double	ddummy;
+ 
+ keystruct	headkey1[] = {
+   {"EPOCH   ", "",

Added: head/astro/sextractor/files/patch-src_som.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/sextractor/files/patch-src_som.h	Sun Sep 20 13:02:52 2020	(r549108)
@@ -0,0 +1,11 @@
+--- src/som.h.orig	2005-10-24 11:48:52 UTC
++++ src/som.h
+@@ -58,7 +58,7 @@ typedef struct
+   float		stderror;		/* Global reduced error */
+   }	somstruct;
+ 
+-somstruct	*thesom;
++EXTERN somstruct	*thesom;
+ 
+ /*---------------------------------- protos --------------------------------*/
+ 



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