New package: png++-0.2.9

This commit is contained in:
misuchiru03 2018-10-17 20:29:28 -05:00 committed by maxice8
parent 8527a6563d
commit 4a72398a96
5 changed files with 71 additions and 0 deletions

1
srcpkgs/png++-doc Symbolic link
View File

@ -0,0 +1 @@
png++

View File

@ -0,0 +1,22 @@
--- Makefile.orig
+++ Makefile
@@ -54,8 +54,8 @@
uninstall: uninstall-headers uninstall-docs
install-headers:
- mkdir -p $(PREFIX)/include/png++
- cp $(headers) $(PREFIX)/include/png++
+ mkdir -p $(DESTDIR)/$(PREFIX)/include/png++
+ cp $(headers) $(DESTDIR)/$(PREFIX)/include/png++
uninstall-headers:
rm -rf $(PREFIX)/include/png++
@@ -103,7 +103,7 @@
install-docs:
if [ -d doc ]; then \
- dir=$(PREFIX)/share/doc/$(dist_dir); \
+ dir=$(DESTDIR)/$(PREFIX)/share/doc/$(dist_dir); \
rm -rf $$dir; \
mkdir -p $$dir \
&& cp -r $(doc_files) doc/html $$dir; \

View File

@ -0,0 +1,10 @@
--- config.hpp 2015-10-25 20:42:45.000000000 +0100
+++ config.hpp 2018-11-07 12:52:38.903453133 +0100
@@ -34,7 +34,7 @@
#include <stdlib.h>
// Endianness test
-#if defined(__GLIBC__)
+#if defined(__linux__)
#include <endian.h>

View File

@ -0,0 +1,11 @@
--- error.hpp 2015-10-25 20:42:45.000000000 +0100
+++ - 2018-11-07 12:49:36.093450988 +0100
@@ -100,7 +100,7 @@
strerror_s(buf, ERRBUF_SIZE, errnum);
return std::string(buf);
#else
-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE
+#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE) || !defined(__GLIBC__)
strerror_r(errnum, buf, ERRBUF_SIZE);
return std::string(buf);
#else

27
srcpkgs/png++/template Normal file
View File

@ -0,0 +1,27 @@
# Template file for 'png++'
pkgname=png++
version=0.2.9
revision=1
build_style=gnu-makefile
make_build_target="docs"
make_use_env=yes
hostmakedepends="doxygen"
depends="libpng-devel"
short_desc="C++ wrapper for libpng library"
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.nongnu.org/pngpp"
distfiles="${NONGNU_SITE}/pngpp/${pkgname}-${version}.tar.gz"
checksum=abbc6a0565122b6c402d61743451830b4faee6ece454601c5711e1c1b4238791
post_install() {
vlicense COPYING
}
png++-doc_package() {
short_desc+=" - documentation"
depends="${sourcepkg}"
pkg_install() {
vmove usr/share
}
}