freeglut: drop old unused package

BUG=None
TEST=CQ passes

Change-Id: Ia6d16d954809eaa40afbf1c3e835eccf73dc85c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/2945373
Reviewed-by: David Riley <davidriley@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/media-libs/freeglut/Manifest b/media-libs/freeglut/Manifest
deleted file mode 100644
index b749c61..0000000
--- a/media-libs/freeglut/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST freeglut-2.4.0.tar.gz 469557 RMD160 77465647f3d65fbb5cf253eb93ac7409e0c37b14 SHA1 91a528aa72758b7288a0d69a964b1b7e3f322a12 SHA256 269f2d50ba30b381622eb36f20b552ad43a1b43d544b9075e484e7146e81b052
diff --git a/media-libs/freeglut/files/2.4.0-cursor.patch b/media-libs/freeglut/files/2.4.0-cursor.patch
deleted file mode 100644
index fab7f9e..0000000
--- a/media-libs/freeglut/files/2.4.0-cursor.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- src/freeglut_cursor.c.old	2006-10-11 20:49:13.000000000 +0200
-+++ src/freeglut_cursor.c	2006-10-11 20:51:43.000000000 +0200
-@@ -147,11 +147,13 @@
-             }
-         }
- 
--        if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) ) {
-+	if ( cursorIDToUse == GLUT_CURSOR_INHERIT ) {
-+            XUndefineCursor( fgDisplay.Display, window->Window.Handle );
-+	} else if ( cursor != None ) {
-+            XDefineCursor( fgDisplay.Display, window->Window.Handle, cursor );
-+	} else if ( cursorIDToUse != GLUT_CURSOR_NONE ) {
-             fgError( "Failed to create cursor" );
-         }
--        XDefineCursor( fgDisplay.Display,
--                       window->Window.Handle, cursor );
-     }
- 
- #elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
diff --git a/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch b/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch
deleted file mode 100644
index 08aa132..0000000
--- a/media-libs/freeglut/files/freeglut-2.4.0-bsd-usb-joystick.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-We disable BSD usb joystick support until upstream has a better support for it
-so that it can at least build. For now it builds but does not link to libusbhid
-so that libglut.so has undefined references to hid_* symbols and causes linking
-errors later on in the build process.
-
---- freeglut-2.4.0/src/freeglut_joystick.c.old	2008-08-08 15:26:15 +0000
-+++ freeglut-2.4.0/src/freeglut_joystick.c	2008-08-08 15:26:32 +0000
-@@ -78,7 +78,7 @@
- #    include <errno.h>
- #    if defined(__FreeBSD__) || defined(__NetBSD__)
- /* XXX The below hack is done until freeglut's autoconf is updated. */
--#        define HAVE_USB_JS    1
-+#        undef HAVE_USB_JS
- 
- #        if defined(__FreeBSD__) && __FreeBSD_version >= 500000
- #            include <sys/joystick.h>
diff --git a/media-libs/freeglut/files/freeglut-2.4.0-macos.patch b/media-libs/freeglut/files/freeglut-2.4.0-macos.patch
deleted file mode 100644
index 8a05b94..0000000
--- a/media-libs/freeglut/files/freeglut-2.4.0-macos.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- freeglut-2.4.0/src/freeglut_joystick.c.orig	2005-07-02 10:41:52.000000000 +0200
-+++ freeglut-2.4.0/src/freeglut_joystick.c	2005-07-02 10:44:17.000000000 +0200
-@@ -1389,7 +1389,7 @@
- #    endif
- #endif
- 
--#if defined( __linux__ )
-+#if defined( __linux__ ) || defined(__APPLE_CC__)
-     /* Default for older Linux systems. */
-     joy->num_axes    =  2;
-     joy->num_buttons = 32;
diff --git a/media-libs/freeglut/files/freeglut-gcc42.patch b/media-libs/freeglut/files/freeglut-gcc42.patch
deleted file mode 100644
index 27404ea..0000000
--- a/media-libs/freeglut/files/freeglut-gcc42.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/freeglut_joystick.c.old	2006-07-25 21:15:14.000000000 -0600
-+++ src/freeglut_joystick.c	2006-07-25 21:21:54.000000000 -0600
-@@ -1684,9 +1684,6 @@
- 
-   fgInitialiseJoysticks ();
- 
--  if ( !fgJoystick )
--    return 0;
--
-   if ( !fgState.JoysticksInitialised )
-     return 0;
- 
diff --git a/media-libs/freeglut/freeglut-2.4.0-r3.ebuild b/media-libs/freeglut/freeglut-2.4.0-r3.ebuild
deleted file mode 100644
index 8be0b6b..0000000
--- a/media-libs/freeglut/freeglut-2.4.0-r3.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/freeglut/freeglut-2.4.0-r2.ebuild,v 1.2 2009/12/14 11:49:26 remi Exp $
-
-inherit eutils flag-o-matic libtool autotools
-
-DESCRIPTION="A completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library"
-HOMEPAGE="http://freeglut.sourceforge.net/"
-SRC_URI="mirror://sourceforge/freeglut/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="*"
-IUSE=""
-
-RDEPEND="virtual/opengl
-	virtual/glu
-	!media-libs/glut"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
-	# bug #134586
-	if [[ ${CFLAGS/march/} = ${CFLAGS} ]]; then
-		ewarn "You do not have 'march' set in your CFLAGS."
-		ewarn "This is known to cause compilation problems"
-		ewarn "in ${P}.  If the compile fails, please set"
-		ewarn "'march' to the appropriate architecture."
-		epause 5
-	fi
-}
-
-src_unpack() {
-	unpack ${A}
-	cd "${S}"
-
-	# fixes bug #97390
-	epatch "${FILESDIR}"/${P}-macos.patch
-
-	# #131856
-	epatch "${FILESDIR}"/${PN}-gcc42.patch
-
-	# (#140542) fix cursor handling so flightgear works
-	epatch "${FILESDIR}"/${PV}-cursor.patch
-
-	# Disable BSD's usb joystick support, see reasons in the patch
-	epatch "${FILESDIR}"/${P}-bsd-usb-joystick.patch
-
-	# bug #134586
-	replace-flags -O3 -O2
-
-	# Needed for sane .so versionning on bsd, please don't drop
-	elibtoolize
-	eautoreconf
-}
-
-src_compile() {
-	# (#191589) Don't let -Werror get tagged on
-	econf --disable-warnings || die "econf failed"
-	emake || die "emake failed"
-}
-
-src_install() {
-	emake DESTDIR="${D}" install || die "make install failed"
-	dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
-	dohtml -r doc/*.html doc/*.png || die "dohtml failed"
-}
diff --git a/media-libs/freeglut/metadata.xml b/media-libs/freeglut/metadata.xml
deleted file mode 100644
index ac6ab69..0000000
--- a/media-libs/freeglut/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>x11</herd>
-<use>
-	<flag name="mpx">
-		Enable support for multi-pointer-X. One pointer for each pointer
-		device.
-	</flag>
-</use>
-<longdescription>
-	Freeglut provides an open-source alternative to the OpenGL Utility Toolkit
-	(GLUT) library. It is actively developed and maintained, while not being
-	restricted by its license.
-</longdescription>
-</pkgmetadata>
diff --git a/virtual/glut/glut-1.0.ebuild b/virtual/glut/glut-1.0.ebuild
deleted file mode 100644
index 022d1f9..0000000
--- a/virtual/glut/glut-1.0.ebuild
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/virtual/glut/glut-1.0.ebuild,v 1.9 2010/01/11 10:59:08 ulm Exp $
-
-DESCRIPTION="Virtual for OpenGL utility toolkit"
-HOMEPAGE=""
-SRC_URI=""
-LICENSE=""
-SLOT="0"
-KEYWORDS="*"
-IUSE=""
-RDEPEND="media-libs/freeglut"
-DEPEND=""