pkgsrc-WIP-changes archive

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

wip/lodepng-git: import lodepng-0.0nb20210920



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Mon Sep 20 23:15:23 2021 +0200
Changeset:	acef798d351883f514377cdbd7d728adb06a7ee2

Added Files:
	lodepng-git/DESCR
	lodepng-git/Makefile
	lodepng-git/PLIST
	lodepng-git/distinfo
	lodepng-git/patches/patch-lodepng__benchmark.cpp

Log Message:
wip/lodepng-git: import lodepng-0.0nb20210920

PNG encoder and decoder in C and C++ without dependencies.

This code is usually compiled in directly, but this packages
provides a libtool library.

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

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

diffstat:
 lodepng-git/DESCR                                |  1 +
 lodepng-git/Makefile                             | 32 ++++++++++++++++++++++++
 lodepng-git/PLIST                                |  3 +++
 lodepng-git/distinfo                             |  3 +++
 lodepng-git/patches/patch-lodepng__benchmark.cpp | 24 ++++++++++++++++++
 5 files changed, 63 insertions(+)

diffs:
diff --git a/lodepng-git/DESCR b/lodepng-git/DESCR
new file mode 100644
index 0000000000..fd68bcc311
--- /dev/null
+++ b/lodepng-git/DESCR
@@ -0,0 +1 @@
+PNG encoder and decoder in C and C++ without dependencies.
diff --git a/lodepng-git/Makefile b/lodepng-git/Makefile
new file mode 100644
index 0000000000..22d12a7109
--- /dev/null
+++ b/lodepng-git/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.2 2018/09/08 14:10:52 leot Exp $
+
+DISTNAME=	lodepng-0.0
+CATEGORIES=	graphics
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/lvandeve/lodepng
+COMMENT=	PNG encoder and decoder in C and C++
+LICENSE=	zlib
+
+GIT_REPOSITORIES=	lodepng
+GIT_REPO.lodepng=	git://github.com/lvandeve/lodepng.git
+WRKSRC=			${WRKDIR}/lodepng
+
+USE_LANGUAGES=	c++
+USE_LIBTOOL=	yes
+
+INSTALLATION_DIRS+=	include lib
+
+do-build:
+	cd ${WRKSRC} && ${LIBTOOL} --mode compile --tag=CXX ${CXX} \
+	    ${CXXFLAGS} -I. -c lodepng.cpp && \
+        ${LIBTOOL} --mode link --tag=CXX ${CXX} ${LDFLAGS} \
+            -rpath ${PREFIX}/lib -version-info 1:1:0 -release 0.1 \
+            -o liblodepng.la lodepng.lo
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/lodepng.h ${DESTDIR}${PREFIX}/include
+	${LIBTOOL} --mode install ${INSTALL_LIB} ${WRKSRC}/liblodepng.la ${DESTDIR}${PREFIX}/lib
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lodepng-git/PLIST b/lodepng-git/PLIST
new file mode 100644
index 0000000000..65584eece0
--- /dev/null
+++ b/lodepng-git/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+include/lodepng.h
+lib/liblodepng.la
diff --git a/lodepng-git/distinfo b/lodepng-git/distinfo
new file mode 100644
index 0000000000..2fe02a8ceb
--- /dev/null
+++ b/lodepng-git/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-lodepng__benchmark.cpp) = 25ed6fbd67b531a08f8a3a429fdc5ad09f87b718
diff --git a/lodepng-git/patches/patch-lodepng__benchmark.cpp b/lodepng-git/patches/patch-lodepng__benchmark.cpp
new file mode 100644
index 0000000000..17409e0673
--- /dev/null
+++ b/lodepng-git/patches/patch-lodepng__benchmark.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+lodepng_benchmark.cpp:86:10: error: 'exit' is not a member of 'std'; did you mean 'exit'?
+
+--- lodepng_benchmark.cpp.orig	2021-09-20 15:32:18.000000000 +0000
++++ lodepng_benchmark.cpp
+@@ -75,7 +75,7 @@ void assertEquals(const T& expected, con
+   if(expected != (T)actual) {
+     std::cout << "Error: Not equal! Expected " << expected << " got " << actual << "." << std::endl;
+     std::cout << "Message: " << message << std::endl;
+-    std::exit(1);
++    exit(1);
+   }
+ }
+ 
+@@ -83,7 +83,7 @@ void assertTrue(bool value, const std::s
+   if(!value) {
+     std::cout << "Error: expected true." << std::endl;
+     std::cout << "Message: " << message << std::endl;
+-    std::exit(1);
++    exit(1);
+   }
+ }
+ 


Home | Main Index | Thread Index | Old Index