perl scripts metapixel

This commit is contained in:
Daniel Olsen 2021-01-16 17:53:56 +01:00
parent b17e9eb84c
commit ad1e109f49
2 changed files with 13 additions and 39 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, libpng, libjpeg, giflib, libxslt, pkg-config}: {stdenv, fetchFromGitHub, libpng, libjpeg, giflib, perl, pkg-config}:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "metapixel"; pname = "metapixel";
@ -12,10 +12,19 @@ stdenv.mkDerivation {
sha256 = "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309"; sha256 = "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309";
}; };
patches = [ ./no-docbook.patch ]; makeFlags = [ "PREFIX=build" "metapixel" ];
nativeBuildInputs = [ libxslt pkg-config ]; #patches = [ ./no-docbook.patch ];
buildInputs = [ libpng libjpeg giflib ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpng libjpeg giflib perl ];
installPhase = ''
mkdir -p $out/bin
cp metapixel $out/bin/metapixel
cp metapixel-prepare $out/bin/metapixel-prepare
cp metapixel-sizesort $out/bin/metapixel-sizesort
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/schani/metapixel"; homepage = "https://github.com/schani/metapixel";

View File

@ -1,35 +0,0 @@
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)