git: 4e80c7f380ff - main - devel/libgpc: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sat, 02 Aug 2025 09:50:49 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e80c7f380ff610eb910712dcb4c8bbc0edb5fb0

commit 4e80c7f380ff610eb910712dcb4c8bbc0edb5fb0
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-08-02 09:50:44 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-08-02 09:50:44 +0000

    devel/libgpc: Remove expired port
    
    2025-07-31 devel/libgpc: No longer distributed by upstream as of August 2020
---
 MOVED                           |  1 +
 devel/Makefile                  |  1 -
 devel/libgpc/Makefile           | 30 -------------------
 devel/libgpc/distinfo           |  2 --
 devel/libgpc/files/BSDmakefile  | 13 ---------
 devel/libgpc/files/patch-alloca | 65 -----------------------------------------
 devel/libgpc/pkg-descr          | 17 -----------
 7 files changed, 1 insertion(+), 128 deletions(-)

diff --git a/MOVED b/MOVED
index 36c0f4955229..db3f38794a8b 100644
--- a/MOVED
+++ b/MOVED
@@ -4683,3 +4683,4 @@ net/flower||2025-08-02|Has expired: Unmaintained upstream
 net/linknx||2025-08-02|Has expired: Outdated and unsupported upstream
 www/mediawiki142||2025-08-02|Has expired: Upstream EOL
 devel/arpc||2025-08-02|Has expired: Unmaintained upstream
+devel/libgpc||2025-08-02|Has expired: No longer distributed by upstream as of August 2020
diff --git a/devel/Makefile b/devel/Makefile
index 91a9724a21e6..377eca463f10 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1316,7 +1316,6 @@
     SUBDIR += libglademm24
     SUBDIR += libgnt
     SUBDIR += libgnuregex
-    SUBDIR += libgpc
     SUBDIR += libgpkg
     SUBDIR += libgpr
     SUBDIR += libgrading
diff --git a/devel/libgpc/Makefile b/devel/libgpc/Makefile
deleted file mode 100644
index 72e0cabde726..000000000000
--- a/devel/libgpc/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-PORTNAME=	libgpc
-PORTVERSION=	2.32
-PORTREVISION=	1
-CATEGORIES=	devel math graphics
-MASTER_SITES=	http://www.cs.man.ac.uk/~toby/alan/software/assets/
-DISTNAME=	gpc${PORTVERSION:S/.//}
-
-MAINTAINER=	ports@virtual-estates.net
-COMMENT=	Generic Polygon Clipper
-WWW=		http://www.cs.man.ac.uk/~toby/alan/software/
-
-BROKEN=		Unfetchable
-DEPRECATED=	No longer distributed by upstream as of August 2020
-EXPIRATION_DATE=2025-07-31
-
-# Converted from NO_CDROM
-LICENSE=	libgpc
-LICENSE_NAME=	libgpc
-LICENSE_TEXT=	Can't be used for profit without permission
-LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
-
-USES=		dos2unix uidfix zip
-PLIST_FILES=	lib/libgpc.so.2	\
-		lib/libgpc.so	lib/libgpc.a	\
-		include/gpc.h
-USE_LDCONFIG=	yes
-
-MAKEFILE=	${FILESDIR}/BSDmakefile
-
-.include <bsd.port.mk>
diff --git a/devel/libgpc/distinfo b/devel/libgpc/distinfo
deleted file mode 100644
index 9a21612654e3..000000000000
--- a/devel/libgpc/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (gpc232.zip) = a481e94f55f2ad1bb4d4764c69d273b08c42e500ba2201ab8157204354dcea60
-SIZE (gpc232.zip) = 15606
diff --git a/devel/libgpc/files/BSDmakefile b/devel/libgpc/files/BSDmakefile
deleted file mode 100644
index 335dd569f9f2..000000000000
--- a/devel/libgpc/files/BSDmakefile
+++ /dev/null
@@ -1,13 +0,0 @@
-LIB=		gpc
-MK_PROFILE=	no
-SHLIB_MAJOR=	2
-SHLIB_MINOR=	32
-
-SRCS=		gpc.c
-INCS=		gpc.h
-
-LIBDIR=		${PREFIX}/lib
-INCSDIR=	${PREFIX}/include
-WARNS?=		4 # level 5 trips over '-Wunused'
-
-.include <bsd.lib.mk>
diff --git a/devel/libgpc/files/patch-alloca b/devel/libgpc/files/patch-alloca
deleted file mode 100644
index 6b45ec7a48db..000000000000
--- a/devel/libgpc/files/patch-alloca
+++ /dev/null
@@ -1,65 +0,0 @@
-Use alloca() instead of malloc()/free(), where it is easy to do.
-
-Use BSD's err() instead of fprintf()/exit() on fatal failures.
-
-When so exiting, use non-zero code to signal a failure.
-
-	-mi
-
---- gpc.c	Fri Dec 17 10:39:26 2004
-+++ gpc.c	Sat Oct 22 04:04:31 2005
-@@ -39,4 +39,5 @@ Copyright: (C) 1997-2004, Advanced Inter
- 
- #include "gpc.h"
-+#include <err.h>
- #include <stdlib.h>
- #include <float.h>
-@@ -104,6 +105,6 @@ Copyright: (C) 1997-2004, Advanced Inter
- #define MALLOC(p, b, s, t) {if ((b) > 0) { \
-                             p= (t*)malloc(b); if (!(p)) { \
--                            fprintf(stderr, "gpc malloc failure: %s\n", s); \
--                            exit(0);}} else p= NULL;}
-+                            err(1, "gpc: %s needed %zd bytes\n", s, \
-+                            (size_t)b); }} else p= NULL;}
- 
- #define FREE(p)            {if (p) {free(p); (p)= NULL;}}
-@@ -965,6 +966,5 @@ static void minimax_test(gpc_polygon *su
-   c_bbox= create_contour_bboxes(clip);
- 
--  MALLOC(o_table, subj->num_contours * clip->num_contours * sizeof(int),
--         "overlap table creation", int);
-+  o_table = alloca(subj->num_contours * clip->num_contours * sizeof(int));
- 
-   /* Check all subject contour bounding boxes against clip boxes */
-@@ -1006,5 +1006,4 @@ static void minimax_test(gpc_polygon *su
-   FREE(s_bbox);
-   FREE(c_bbox);
--  FREE(o_table);
- }
- 
-@@ -1166,5 +1165,5 @@ void gpc_polygon_clip(gpc_op op, gpc_pol
- 
-   /* Build scanbeam table from scanbeam tree */
--  MALLOC(sbt, sbt_entries * sizeof(double), "sbt creation", double);
-+  sbt = alloca(sbt_entries * sizeof(double));
-   build_sbt(&scanbeam, sbt, sbtree);
-   scanbeam= 0;
-@@ -1749,5 +1748,4 @@ void gpc_polygon_clip(gpc_op op, gpc_pol
-   FREE(c_heap);
-   FREE(s_heap);
--  FREE(sbt);
- }
- 
-@@ -1825,5 +1823,5 @@ void gpc_tristrip_clip(gpc_op op, gpc_po
- 
-   /* Build scanbeam table from scanbeam tree */
--  MALLOC(sbt, sbt_entries * sizeof(double), "sbt creation", double);
-+  sbt = alloca(sbt_entries * sizeof(double));
-   build_sbt(&scanbeam, sbt, sbtree);
-   scanbeam= 0;
-@@ -2463,5 +2461,4 @@ void gpc_tristrip_clip(gpc_op op, gpc_po
-   FREE(c_heap);
-   FREE(s_heap);
--  FREE(sbt);
- }
- 
diff --git a/devel/libgpc/pkg-descr b/devel/libgpc/pkg-descr
deleted file mode 100644
index ddf83a52febf..000000000000
--- a/devel/libgpc/pkg-descr
+++ /dev/null
@@ -1,17 +0,0 @@
-An algorithm for calculating the difference, intersection,
-exclusive-or or union of arbitrary polygon sets.
-
-Copyright: (C) 1997-2004, Advanced Interfaces Group,
-	University of Manchester.
-
-	This software is free for non-commercial use. It may be copied,
-	modified, and redistributed provided that this copyright notice
-	is preserved on all copies. The intellectual property rights of
-	the algorithms used reside with the University of Manchester
-	Advanced Interfaces Group.
-
-	You may not use this software, in whole or in part, in support
-	of any commercial product without the express consent of the
-	author.
-
-	Software documentation at