mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
media-gfx/freepv: treeclean
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST freepv-0.3.0.tar.gz 175545 BLAKE2B 7169679ffb5eeaefb4f558056fc7abe9b8093722e21c0313bf22ad9839c8274d58f8123758a5842bfe06edd3fd9b84b927a25b932607efe7d0f67b772d99c8e3 SHA512 0b207dc25c51b19fd76637743adb8e395c6098d03611612086d66d3f1aa6e4d0c5700aa0e23210082d6aa7495f19d1c3d8f0f93ad11a5236df86d709d5f71a7d
|
||||
@@ -1,60 +0,0 @@
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/OpenGLRenderer.cpp 2010-03-11 16:15:04.000000000 +0100
|
||||
+++ freepv-0.3.0/src/libfreepv/OpenGLRenderer.cpp 2010-03-11 16:25:15.000000000 +0100
|
||||
@@ -26,7 +26,8 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <vector>
|
||||
-#include <math.h>
|
||||
+#include <cmath>
|
||||
+#include <cstdio>
|
||||
|
||||
#include "OpenGLRenderer.h"
|
||||
#include "Scene.h"
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/QTVRDecoder.cpp 2010-03-11 16:15:04.000000000 +0100
|
||||
+++ freepv-0.3.0/src/libfreepv/QTVRDecoder.cpp 2010-03-11 16:25:15.000000000 +0100
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <errno.h>
|
||||
#include <vector>
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp freepv-0.3.0/src/libfreepv/SPiVparser.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/SPiVparser.cpp 2010-03-11 16:15:04.000000000 +0100
|
||||
+++ freepv-0.3.0/src/libfreepv/SPiVparser.cpp 2010-03-11 16:18:53.000000000 +0100
|
||||
@@ -488,8 +488,8 @@
|
||||
//This method remplace the nodes that has src attributes
|
||||
void SPiVparser::parseNodeURL(const char* _url)
|
||||
{
|
||||
- char * aux_url=NULL;
|
||||
- char * url=(char*) _url;
|
||||
+ const char * aux_url=NULL;
|
||||
+ const char * url=(char*) _url;
|
||||
if(aux_url = strrchr (_url,'/'))
|
||||
{
|
||||
url=aux_url;
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp freepv-0.3.0/src/libfreepv/Utils/signatures.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp 2010-03-11 16:15:04.000000000 +0100
|
||||
+++ freepv-0.3.0/src/libfreepv/Utils/signatures.cpp 2010-03-11 16:25:15.000000000 +0100
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "signatures.h"
|
||||
#include <iostream>
|
||||
+#include <cstdio>
|
||||
|
||||
namespace FPV{
|
||||
namespace Utils{
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/utils.cpp freepv-0.3.0/src/libfreepv/utils.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/utils.cpp 2010-03-11 16:15:04.000000000 +0100
|
||||
+++ freepv-0.3.0/src/libfreepv/utils.cpp 2010-03-11 16:25:15.000000000 +0100
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <algorithm>
|
||||
+#include <cstdio>
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- freepv-0.3.0.orig/src/libfreepv/Action.h 2011-06-16 17:37:55.705868856 +0200
|
||||
+++ freepv-0.3.0/src/libfreepv/Action.h 2011-06-16 17:38:19.792311535 +0200
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#ifndef FPV_ACTION_H
|
||||
#define FPV_ACTION_H
|
||||
+#include <cstddef>
|
||||
#include "Behavior.h"
|
||||
|
||||
namespace FPV
|
||||
@@ -1,20 +0,0 @@
|
||||
--- freepv-0.3.0.orig/src/libfreepv/pngReader.cpp
|
||||
+++ freepv-0.3.0/src/libfreepv/pngReader.cpp
|
||||
@@ -135,7 +135,7 @@
|
||||
//Transfor grayscale images with less
|
||||
//than 8 bits to 8 bits
|
||||
if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
|
||||
- png_set_gray_1_2_4_to_8(p_png_struct);
|
||||
+ png_set_expand_gray_1_2_4_to_8(p_png_struct);
|
||||
|
||||
//Add a full alpha channel if there is
|
||||
//transparency information in the tRNS chunk
|
||||
@@ -283,7 +283,7 @@
|
||||
//Transfor grayscale images with less
|
||||
//than 8 bits to 8 bits.
|
||||
if(color_t == PNG_COLOR_TYPE_GRAY && depth<8)
|
||||
- png_set_gray_1_2_4_to_8(p_png_struct);
|
||||
+ png_set_expand_gray_1_2_4_to_8(p_png_struct);
|
||||
|
||||
//Add a full alpha channel if there is
|
||||
//transparency information in the tRNS chunk
|
||||
@@ -1,30 +0,0 @@
|
||||
diff -Naur freepv-0.3.0.orig//CMakeLists.txt freepv-0.3.0/CMakeLists.txt
|
||||
--- freepv-0.3.0.orig//CMakeLists.txt 2010-03-11 16:05:09.000000000 +0100
|
||||
+++ freepv-0.3.0/CMakeLists.txt 2010-03-11 16:05:18.000000000 +0100
|
||||
@@ -89,7 +89,6 @@
|
||||
find_package(FREEGLUT REQUIRED)
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(X11 REQUIRED)
|
||||
-find_package(GECKO REQUIRED)
|
||||
find_package(LibXml2 REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
find_package(XF86VM REQUIRED)
|
||||
@@ -107,7 +106,6 @@
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${FREEGLUT_INCLUDE_DIR}
|
||||
${X11_INCLUDE_DIR}
|
||||
- ${GECKO_INCLUDE_DIR}
|
||||
${LIBXML2_INCLUDE_DIR}
|
||||
${PNG_INCLUDE_DIR}
|
||||
${XF86VM_INCLUDE_DIR})
|
||||
diff -Naur freepv-0.3.0.orig//src/CMakeLists.txt freepv-0.3.0/src/CMakeLists.txt
|
||||
--- freepv-0.3.0.orig//src/CMakeLists.txt 2010-03-11 16:05:09.000000000 +0100
|
||||
+++ freepv-0.3.0/src/CMakeLists.txt 2010-03-11 16:05:28.000000000 +0100
|
||||
@@ -5,7 +5,6 @@
|
||||
add_subdirectory (freepv-glut)
|
||||
add_subdirectory (utils)
|
||||
if(UNIX)
|
||||
- add_subdirectory (freepv-mozilla)
|
||||
add_subdirectory (freepv-glx)
|
||||
endif(UNIX)
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- freepv-0.3.0.orig/src/libfreepv/Image.cpp 2009-05-02 01:12:31.000000000 +0200
|
||||
+++ freepv-0.3.0/src/libfreepv/Image.cpp 2013-04-11 09:37:07.436358208 +0200
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "Image.h"
|
||||
#include "JpegReader.h"
|
||||
@@ -1,47 +0,0 @@
|
||||
diff -Naur freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp freepv-0.3.0/src/libfreepv/Utils/signatures.cpp
|
||||
--- freepv-0.3.0.orig/src/libfreepv/Utils/signatures.cpp 2009-05-02 01:12:31.000000000 +0200
|
||||
+++ freepv-0.3.0/src/libfreepv/Utils/signatures.cpp 2017-01-25 15:51:23.781294110 +0100
|
||||
@@ -30,34 +30,34 @@
|
||||
|
||||
//JPEG Signature
|
||||
char jpg_size=1;
|
||||
- short jpg_sig[]={0xD8FF};
|
||||
+ unsigned short jpg_sig[]={0xD8FF};
|
||||
//PNG Signature
|
||||
char png_size=4;
|
||||
- short png_sig[]={0x5089, 0x474E, 0x0A0D, 0x0A1A};
|
||||
+ unsigned short png_sig[]={0x5089, 0x474E, 0x0A0D, 0x0A1A};
|
||||
//XML Signature
|
||||
char xml_size=3;
|
||||
- short xml_sig[]={0x3F3C, 0x6D78, 0x206C};
|
||||
+ unsigned short xml_sig[]={0x3F3C, 0x6D78, 0x206C};
|
||||
//DCR Signature
|
||||
char dcr_size=2;
|
||||
- short dcr_sig[]={0x4658, 0x5249};
|
||||
+ unsigned short dcr_sig[]={0x4658, 0x5249};
|
||||
//MOV (MOOV atom) Signature
|
||||
char mov_moov_size=4;
|
||||
- short mov_moov_sig[]={0x0000, 0x0000, 0x6F6D, 0x766F};
|
||||
+ unsigned short mov_moov_sig[]={0x0000, 0x0000, 0x6F6D, 0x766F};
|
||||
//MOV (FTYP atom) Siganture
|
||||
char mov_ftyp_size=4;
|
||||
- short mov_ftyp_sig[]={0x0000, 0x0000, 0x7466, 0x7079};
|
||||
+ unsigned short mov_ftyp_sig[]={0x0000, 0x0000, 0x7466, 0x7079};
|
||||
|
||||
//Signatures to check
|
||||
char sig_types_num=6;
|
||||
- short* signature[]={jpg_sig,png_sig,xml_sig,dcr_sig,mov_moov_sig,mov_ftyp_sig};
|
||||
+ unsigned short* signature[]={jpg_sig,png_sig,xml_sig,dcr_sig,mov_moov_sig,mov_ftyp_sig};
|
||||
char sig_sizes[]={jpg_size,png_size,xml_size,dcr_size,mov_moov_size,mov_ftyp_size};
|
||||
|
||||
const char* CheckMagicBytes(const char* filename)
|
||||
{
|
||||
FILE * p_file;
|
||||
p_file=fopen(filename, "rb");
|
||||
- short number;
|
||||
- short equal=0;
|
||||
+ unsigned short number;
|
||||
+ unsigned short equal=0;
|
||||
char i, type;
|
||||
|
||||
if(p_file==NULL){
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit cmake flag-o-matic xdg
|
||||
|
||||
DESCRIPTION="Panorama viewer (Quicktime, PangeaVR, GLPanoView formats)"
|
||||
HOMEPAGE="https://freepv.sourceforge.net/"
|
||||
SRC_URI="https://downloads.sourceforge.net/freepv/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/libxml2:=
|
||||
media-libs/libpng:0=
|
||||
media-libs/freeglut
|
||||
virtual/zlib:=
|
||||
virtual/jpeg:0
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXt
|
||||
x11-libs/libXxf86vm"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gcc44.patch
|
||||
"${FILESDIR}"/${P}-gcc46.patch
|
||||
"${FILESDIR}"/${P}-noplugin.patch
|
||||
"${FILESDIR}"/${P}-libpng14.patch
|
||||
"${FILESDIR}"/${P}-stringh.patch
|
||||
"${FILESDIR}"/${P}-unsigned_short.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
sed -e 's:jpeg_mem_src:freepv_jpeg_mem_src:g' \
|
||||
-i src/libfreepv/JpegReader.cpp || die
|
||||
|
||||
sed -e 's:^INSTALL(.*)::' \
|
||||
-i src/libfreepv/CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bug 618856
|
||||
append-cxxflags -std=c++14
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>voyageur@gentoo.org</email>
|
||||
<name>Bernard Cafarelli</name>
|
||||
</maintainer>
|
||||
<longdescription>OpenGL accelerated panorama viewer and browser plugin (supports Quicktime, PangeaVR and GLPanoView panoramas)</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">freepv</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -191,11 +191,6 @@ dev-python/pyproject-fmt
|
||||
# Snapshot versions, masked for testing.
|
||||
<app-editors/emacs-32.0.9999:32-vcs
|
||||
|
||||
# Bernard Cafarelli <voyageur@gentoo.org> (2026-08-24)
|
||||
# Abandoned (last release in 2009), and failing on sample QTVR panorama files
|
||||
# Removal on 2026-09-24. Bug #955494
|
||||
media-gfx/freepv
|
||||
|
||||
# Sam James <sam@gentoo.org> (2026-08-21)
|
||||
# Grave security vulnerabilities which either haven't been
|
||||
# fixed upstream or fixed insufficiently. Our version is out-of-date as
|
||||
|
||||
Reference in New Issue
Block a user