pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

FLIF-git: Import FLIF-0.1alpha as wip/FLIF-git



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Tue Mar 8 23:59:29 2016 +0100
Changeset:	89de52a2a3bf9ffece84a5397801b224a079a2c1

Modified Files:
	Makefile
Added Files:
	FLIF-git/DESCR
	FLIF-git/Makefile
	FLIF-git/PLIST
	FLIF-git/distinfo
	FLIF-git/patches/patch-src_Makefile

Log Message:
FLIF-git: Import FLIF-0.1alpha as wip/FLIF-git

FLIF is a novel lossless image format which outperforms
PNG, lossless WebP, lossless BPG, lossless JPEG2000,
and lossless JPEG XR in terms of compression ratio.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=89de52a2a3bf9ffece84a5397801b224a079a2c1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 FLIF-git/DESCR                      |  3 ++
 FLIF-git/Makefile                   | 24 +++++++++++++++
 FLIF-git/PLIST                      |  8 +++++
 FLIF-git/distinfo                   |  6 ++++
 FLIF-git/patches/patch-src_Makefile | 61 +++++++++++++++++++++++++++++++++++++
 Makefile                            |  1 +
 6 files changed, 103 insertions(+)

diffs:
diff --git a/FLIF-git/DESCR b/FLIF-git/DESCR
new file mode 100644
index 0000000..6490629
--- /dev/null
+++ b/FLIF-git/DESCR
@@ -0,0 +1,3 @@
+FLIF is a novel lossless image format which outperforms
+PNG, lossless WebP, lossless BPG, lossless JPEG2000,
+and lossless JPEG XR in terms of compression ratio.
diff --git a/FLIF-git/Makefile b/FLIF-git/Makefile
new file mode 100644
index 0000000..aaaa787
--- /dev/null
+++ b/FLIF-git/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	FLIF-0.1alpha
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_GITHUB:=FLIF-hub/}
+
+GIT_REPOSITORIES=	flif
+GIT_REPO.flif=		https://github.com/FLIF-hub/flif.git
+WRKSRC=			${WRKDIR}/${PKGBASE}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://flif.info/
+COMMENT=	Free Lossless Image Format
+LICENSE=	gnu-lgpl-v3
+
+BUILD_DIRS=	src
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake
+MAKE_ENV+=	MANDIR=${PREFIX}/${PKGMANDIR}
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/FLIF-git/PLIST b/FLIF-git/PLIST
new file mode 100644
index 0000000..db82821
--- /dev/null
+++ b/FLIF-git/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/apng2flif
+bin/flif
+bin/gif2flif
+bin/viewflif
+lib/libflif.so.0
+lib/libflif_dec.so.0
+man/man1/flif.1
diff --git a/FLIF-git/distinfo b/FLIF-git/distinfo
new file mode 100644
index 0000000..ab7a6c2
--- /dev/null
+++ b/FLIF-git/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (FLIF-0.1alpha.tar.gz) = 55ddb13397a2fa6ff6b786a65a40237d15559d56
+RMD160 (FLIF-0.1alpha.tar.gz) = 0872bca3ea9d33da51b9fb935ece37e6124083f5
+Size (FLIF-0.1alpha.tar.gz) = 1543110 bytes
+SHA1 (patch-src_Makefile) = b9763ae6d2e36510d7112a5378f0e47b71029efe
diff --git a/FLIF-git/patches/patch-src_Makefile b/FLIF-git/patches/patch-src_Makefile
new file mode 100644
index 0000000..b283aa1
--- /dev/null
+++ b/FLIF-git/patches/patch-src_Makefile
@@ -0,0 +1,61 @@
+$NetBSD$
+
+Make use of DESTDIR and MANDIR.
+
+--- src/Makefile.orig	2016-03-08 21:05:02.000000000 +0000
++++ src/Makefile
+@@ -1,4 +1,5 @@
+-PREFIX := $(DESTDIR)/usr
++PREFIX ?= $(DESTDIR)/usr
++MANDIR ?= $(PREFIX)/share/man
+ CXXFLAGS := $(shell pkg-config --cflags zlib libpng)
+ LDFLAGS := $(shell pkg-config --libs libpng)
+ 
+@@ -63,30 +64,30 @@ viewflif: libflif_dec.so viewflif.c
+ 
+ 
+ install: all
+-	install -d $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/share/man/man1
+-	install -s -m 755 flif viewflif $(PREFIX)/bin
+-	install -s -m 755 libflif_dec.so.* $(PREFIX)/lib
+-	install -s -m 755 libflif.so.* $(PREFIX)/lib
+-	install -m 644 ../doc/flif.1 $(PREFIX)/share/man/man1
+-	install -m 755 ../tools/gif2flif $(PREFIX)/bin
+-	install -m 755 ../tools/apng2flif $(PREFIX)/bin
++	install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/lib $(DESTDIR)$(MANDIR)/man1
++	install -s -m 755 flif viewflif $(DESTDIR)$(PREFIX)/bin
++	install -s -m 755 libflif_dec.so.* $(DESTDIR)$(PREFIX)/lib
++	install -s -m 755 libflif.so.* $(DESTDIR)$(PREFIX)/lib
++	install -m 644 ../doc/flif.1 $(DESTDIR)$(MANDIR)/man1
++	install -m 755 ../tools/gif2flif $(DESTDIR)$(PREFIX)/bin
++	install -m 755 ../tools/apng2flif $(DESTDIR)$(PREFIX)/bin
+ 
+ install-dev:
+-	install -m 644 library/*.h $(PREFIX)/include
++	install -m 644 library/*.h $(DESTDIR)$(PREFIX)/include
+ 
+ magic:
+ 	if ! grep -q FLIF /etc/magic; then cat ../doc/flif.magic >> /etc/magic; fi
+ 
+ uninstall:
+-	rm -f $(PREFIX)/bin/flif
+-	rm -f $(PREFIX)/bin/viewflif
+-	rm -f $(PREFIX)/bin/gif2flif
+-	rm -f $(PREFIX)/bin/apng2flif
+-	rm -f $(PREFIX)/lib/libflif.so
+-	rm -f $(PREFIX)/lib/libflif_dec.so
+-	rm -f $(PREFIX)/lib/libflif.so.0
+-	rm -f $(PREFIX)/lib/libflif_dec.so.0
+-	rm -f $(PREFIX)/share/man/man1/flif.1
++	rm -f $(DESTDIR)$(PREFIX)/bin/flif
++	rm -f $(DESTDIR)$(PREFIX)/bin/viewflif
++	rm -f $(DESTDIR)$(PREFIX)/bin/gif2flif
++	rm -f $(DESTDIR)$(PREFIX)/bin/apng2flif
++	rm -f $(DESTDIR)$(PREFIX)/lib/libflif.so
++	rm -f $(DESTDIR)$(PREFIX)/lib/libflif_dec.so
++	rm -f $(DESTDIR)$(PREFIX)/lib/libflif.so.0
++	rm -f $(DESTDIR)$(PREFIX)/lib/libflif_dec.so.0
++	rm -f $(DESTDIR)$(MANDIR)/man1/flif.1
+ 
+ clean:
+ 	rm -f flif dflif libflif*.so* viewflif flif.asan flif.dbg flif.prof flif.stats test-interface
diff --git a/Makefile b/Makefile
index d87d562..a812dc4 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ SUBDIR+=	Bear
 SUBDIR+=	Chinput
 SUBDIR+=	ETL
 SUBDIR+=	FLIF
+SUBDIR+=	FLIF-git
 SUBDIR+=	FontManager
 SUBDIR+=	GNUMail-pgp
 SUBDIR+=	GSCommander


Home | Main Index | Thread Index | Old Index