commit
b6c1d73aec
@ -1,18 +1,23 @@
|
||||
{ stdenv, fetchurl, zlib }:
|
||||
{ stdenv, fetchurl, freetype, libjpeg, libungif, zlib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "swftools-0.8.1";
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "swftools-${version}";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.swftools.org/swftools-0.8.1.tar.gz;
|
||||
sha256 = "0l75c3ibwd24g9nqghp1rv1dfrlicw87s0rbdnyffjv4izz6gc2l";
|
||||
url = "http://www.swftools.org/${name}.tar.gz";
|
||||
sha256 = "1w81dyi81019a6jmnm5z7fzarswng27lg1d4k4d5llxzqszr2s5z";
|
||||
};
|
||||
|
||||
buildInputs = [ zlib ];
|
||||
patches = [ ./swftools.patch ];
|
||||
|
||||
meta = {
|
||||
buildInputs = [ freetype libjpeg libungif zlib ];
|
||||
|
||||
meta = {
|
||||
description = "Collection of SWF manipulation and creation utilities";
|
||||
homepage = http://www.swftools.org/about.html;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.koral ];
|
||||
};
|
||||
}
|
||||
|
17
pkgs/tools/video/swftools/swftools.patch
Normal file
17
pkgs/tools/video/swftools/swftools.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- a/swfs/Makefile.in.orig
|
||||
+++ b/swfs/Makefile.in
|
||||
@@ -41,10 +41,10 @@ install:
|
||||
$(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
|
||||
$(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
|
||||
$(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
|
||||
- rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
|
||||
- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
|
||||
- rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
|
||||
- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
|
||||
+ rm -f $(pkgdatadir)/swfs/default_viewer.swf # -o -L $(pkgdatadir)/swfs/default_viewer.swf
|
||||
+ $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
|
||||
+ rm -f $(pkgdatadir)/swfs/default_loader.swf # -o -L $(pkgdatadir)/swfs/default_loader.swf
|
||||
+ $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
|
||||
|
||||
uninstall:
|
||||
$(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
|
Loading…
Reference in New Issue
Block a user