46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Swftools(AutotoolsPackage):
|
|
"""SWFTools is a collection of utilities for working with Adobe Flash files
|
|
(SWF files). The tool collection includes programs for reading SWF files,
|
|
combining them, and creating them from other content (like images, sound
|
|
files, videos or sourcecode). SWFTools is released under the GPL.
|
|
"""
|
|
|
|
homepage = "http://swftools.org"
|
|
url = "http://swftools.org/swftools-0.9.2.tar.gz"
|
|
|
|
license("GPL-2.0-only")
|
|
|
|
version("0.9.2", sha256="bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1")
|
|
|
|
depends_on("c", type="build") # generated
|
|
depends_on("cxx", type="build") # generated
|
|
|
|
patch("configure.patch")
|
|
patch("swfs_Makefile.in.patch")
|
|
patch(
|
|
"https://aur.archlinux.org/cgit/aur.git/plain/giflib-5.1.patch?h=swftools",
|
|
sha256="6a995dfd674c5954f5b967e3d45d6845a186872fcaa4223d725902fd4d679f1b",
|
|
level=0,
|
|
)
|
|
|
|
# The patches below are needed for swftools to compile on newer GCC
|
|
# versions. These are derived from:
|
|
# https://aur.archlinux.org/packages/swftools/#comment-839523
|
|
patch("extern.patch", level=0, when="%gcc@10:")
|
|
patch("pointer_compare.patch", level=0, when="%gcc@11:")
|
|
|
|
depends_on("giflib")
|
|
depends_on("lame")
|
|
depends_on("poppler")
|
|
depends_on("freetype")
|
|
depends_on("jpeg")
|
|
depends_on("fftw")
|