package metapixel

This commit is contained in:
Daniel Olsen 2021-01-16 17:32:54 +01:00
parent e63a4068be
commit b17e9eb84c
3 changed files with 63 additions and 0 deletions

View File

@ -39,6 +39,8 @@ in
# radical-native = pkgs.callPackage ./pkgs/radical-native { }; # radical-native = pkgs.callPackage ./pkgs/radical-native { };
photini = pkgs.libsForQt5.callPackage ./pkgs/photini { }; photini = pkgs.libsForQt5.callPackage ./pkgs/photini { };
metapixel = pkgs.callPackage ./pkgs/metapixel { };
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { }; plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
# wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { }; # wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { };

View File

@ -0,0 +1,26 @@
{stdenv, fetchFromGitHub, libpng, libjpeg, giflib, libxslt, pkg-config}:
stdenv.mkDerivation {
pname = "metapixel";
version = "1.0.2";
src = fetchFromGitHub {
owner = "schani";
repo = "metapixel";
rev = "98ee9daa093b6c334941242e63f90b1c2876eb4f";
fetchSubmodules = true;
sha256 = "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309";
};
patches = [ ./no-docbook.patch ];
nativeBuildInputs = [ libxslt pkg-config ];
buildInputs = [ libpng libjpeg giflib ];
meta = with stdenv.lib; {
homepage = "https://github.com/schani/metapixel";
description = "Tool for generating photomosaics";
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,35 @@
diff --git a/Makefile b/Makefile
index 84c9373..53fa926 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PREFIX = /usr/local
+PREFIX = $(out)
INSTALL = install
MANPAGE_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl
@@ -33,8 +33,8 @@ all : metapixel convert metapixel-imagesize
metapixel : $(OBJS) librwimg
$(CC) $(LDOPTS) -o metapixel $(OBJS) rwimg/librwimg.a -lpng -ljpeg -lgif $(LIBFFM) -lm -lz
-metapixel.1 : metapixel.xml
- xsltproc --nonet $(MANPAGE_XSL) metapixel.xml
+#metapixel.1 : metapixel.xml
+# xsltproc --nonet $(MANPAGE_XSL) metapixel.xml
convert : $(CONVERT_OBJS)
$(CC) $(LDOPTS) -o convert $(CONVERT_OBJS)
@@ -51,11 +51,11 @@ zoom : zoom.c librwimg
librwimg :
$(MAKE) CFLAGS="$(RWIMG_CFLAGS)" -C rwimg
-install : metapixel metapixel.1
+install : metapixel #metapixel.1
$(INSTALL) -d $(BINDIR)
$(INSTALL) metapixel $(BINDIR)
$(INSTALL) metapixel-prepare $(BINDIR)
- $(INSTALL) metapixel.1 $(MANDIR)/man1
+# $(INSTALL) metapixel.1 $(MANDIR)/man1
$(INSTALL) metapixel-imagesize $(BINDIR)
$(INSTALL) metapixel-sizesort $(BINDIR)