Import libpgf-6.14.12 as graphics/libpgf, packaged for wip by Niclas
Rosenvik. LibPGF is a library for encoding and decoding the progressive graphics file (PGF) format. PGF is is based on discrete, fast wavelet transform with progressive coding features and has both lossy and lossless compression.
This commit is contained in:
parent
567521138e
commit
198e54bef8
8 changed files with 287 additions and 0 deletions
4
graphics/libpgf/DESCR
Normal file
4
graphics/libpgf/DESCR
Normal file
|
@ -0,0 +1,4 @@
|
|||
LibPGF is a library for encoding and decoding the progressive graphics
|
||||
file (PGF) format. PGF is is based on discrete, fast wavelet transform
|
||||
with progressive coding features and has both lossy and lossless
|
||||
compression.
|
32
graphics/libpgf/Makefile
Normal file
32
graphics/libpgf/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
|||
# $NetBSD: Makefile,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
DISTNAME= libpgf-src-6.14.12
|
||||
PKGNAME= ${DISTNAME:S/-src//}
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpgf/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://www.libpgf.org/
|
||||
COMMENT= Progressive Graphics File (PGF) library
|
||||
LICENSE= gnu-lgpl-v2.1
|
||||
|
||||
WRKSRC= ${WRKDIR}/libpgf
|
||||
GNU_CONFIGURE= yes
|
||||
USE_TOOLS+= aclocal autoconf automake pkg-config
|
||||
USE_LANGUAGES= c c++
|
||||
USE_LIBTOOL= yes
|
||||
|
||||
# https://sourceforge.net/p/libpgf/bugs/7/
|
||||
BUILD_DEPENDS+= dos2unix-[0-9]*:../../converters/dos2unix
|
||||
|
||||
pre-patch:
|
||||
${RUN} dos2unix ${WRKSRC}/configure.ac
|
||||
|
||||
pre-configure:
|
||||
${RUN} cd ${WRKSRC} && ./autogen.sh
|
||||
|
||||
PKGCONFIG_OVERRIDE+= libpgf.pc.in
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
180
graphics/libpgf/PLIST
Normal file
180
graphics/libpgf/PLIST
Normal file
|
@ -0,0 +1,180 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
include/libpgf/PGFimage.h
|
||||
include/libpgf/PGFplatform.h
|
||||
include/libpgf/PGFstream.h
|
||||
include/libpgf/PGFtypes.h
|
||||
lib/libpgf.la
|
||||
lib/pkgconfig/libpgf.pc
|
||||
${PLIST.doc}man/man3/BitStream.h.3
|
||||
${PLIST.doc}man/man3/CDecoder.3
|
||||
${PLIST.doc}man/man3/CDecoder_CMacroBlock.3
|
||||
${PLIST.doc}man/man3/CEncoder.3
|
||||
${PLIST.doc}man/man3/CEncoder_CMacroBlock.3
|
||||
${PLIST.doc}man/man3/CPGFFileStream.3
|
||||
${PLIST.doc}man/man3/CPGFImage.3
|
||||
${PLIST.doc}man/man3/CPGFMemoryStream.3
|
||||
${PLIST.doc}man/man3/CPGFStream.3
|
||||
${PLIST.doc}man/man3/CSubband.3
|
||||
${PLIST.doc}man/man3/CWaveletTransform.3
|
||||
${PLIST.doc}man/man3/Decoder.cpp.3
|
||||
${PLIST.doc}man/man3/Decoder.h.3
|
||||
${PLIST.doc}man/man3/Encoder.cpp.3
|
||||
${PLIST.doc}man/man3/Encoder.h.3
|
||||
${PLIST.doc}man/man3/IOException.3
|
||||
${PLIST.doc}man/man3/PGFHeader.3
|
||||
${PLIST.doc}man/man3/PGFMagicVersion.3
|
||||
${PLIST.doc}man/man3/PGFPostHeader.3
|
||||
${PLIST.doc}man/man3/PGFPreHeader.3
|
||||
${PLIST.doc}man/man3/PGFRect.3
|
||||
${PLIST.doc}man/man3/PGFimage.cpp.3
|
||||
${PLIST.doc}man/man3/PGFimage.h.3
|
||||
${PLIST.doc}man/man3/PGFplatform.h.3
|
||||
${PLIST.doc}man/man3/PGFstream.cpp.3
|
||||
${PLIST.doc}man/man3/PGFstream.h.3
|
||||
${PLIST.doc}man/man3/PGFtypes.h.3
|
||||
${PLIST.doc}man/man3/ROIBlockHeader.3
|
||||
${PLIST.doc}man/man3/ROIBlockHeader_RBH.3
|
||||
${PLIST.doc}man/man3/Subband.cpp.3
|
||||
${PLIST.doc}man/man3/Subband.h.3
|
||||
${PLIST.doc}man/man3/WaveletTransform.cpp.3
|
||||
${PLIST.doc}man/man3/WaveletTransform.h.3
|
||||
${PLIST.doc}man/man3/config.h.3
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/BitStream_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/BitStream_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Decoder_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Decoder_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Decoder_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Decoder_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Encoder_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Encoder_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Encoder_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Encoder_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFimage_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFimage_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFimage_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFimage_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFplatform_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFplatform_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFstream_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFstream_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFstream_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFstream_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFtypes_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/PGFtypes_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Subband_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Subband_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Subband_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/Subband_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/WaveletTransform_8cpp.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/WaveletTransform_8cpp_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/WaveletTransform_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/WaveletTransform_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/annotated.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/bc_s.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/bdwn.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCDecoder-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCDecoder.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCDecoder_1_1CMacroBlock-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCDecoder_1_1CMacroBlock.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCEncoder-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCEncoder.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCEncoder_1_1CMacroBlock-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCEncoder_1_1CMacroBlock.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFFileStream-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFFileStream.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFFileStream.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFImage-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFImage.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFMemoryStream-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFMemoryStream.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFMemoryStream.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFStream-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFStream.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCPGFStream.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCSubband-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCSubband.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCWaveletTransform-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classCWaveletTransform.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/classes.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/closed.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/config_8h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/config_8h_source.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/dir_000000.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/dir_000001.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/doxygen.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/files.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2blank.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2doc.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2folderclosed.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2folderopen.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2lastnode.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2link.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2mlastnode.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2mnode.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2node.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2plastnode.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2pnode.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2splitbar.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/ftv2vertline.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_b.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_c.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_d.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_e.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_f.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_func.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_g.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_h.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_i.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_l.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_m.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_n.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_o.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_p.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_q.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_r.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_rela.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_s.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_t.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_u.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_v.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_vars.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_w.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/functions_~.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_defs.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_enum.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_eval.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_func.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_type.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/globals_vars.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/hierarchy.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/index.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/nav_f.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/nav_g.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/nav_h.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/open.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structIOException-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structIOException.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFHeader-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFHeader.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFMagicVersion-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFMagicVersion.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFMagicVersion.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFPostHeader-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFPostHeader.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFPreHeader-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFPreHeader.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFPreHeader.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFRect-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structPGFRect.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structROIBlockHeader_1_1RBH-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/structROIBlockHeader_1_1RBH.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/sync_off.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/sync_on.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/tab_a.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/tab_b.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/tab_h.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/tab_s.png
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/unionROIBlockHeader-members.html
|
||||
${PLIST.doc}share/doc/${PKGNAME}/html/unionROIBlockHeader.html
|
12
graphics/libpgf/buildlink3.mk
Normal file
12
graphics/libpgf/buildlink3.mk
Normal file
|
@ -0,0 +1,12 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
BUILDLINK_TREE+= libpgf
|
||||
|
||||
.if !defined(LIBPGF_BUILDLINK3_MK)
|
||||
LIBPGF_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.libpgf+= libpgf>=6.14.12
|
||||
BUILDLINK_PKGSRCDIR.libpgf?= ../../graphics/libpgf
|
||||
.endif # LIBPGF_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -libpgf
|
7
graphics/libpgf/distinfo
Normal file
7
graphics/libpgf/distinfo
Normal file
|
@ -0,0 +1,7 @@
|
|||
$NetBSD: distinfo,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
SHA1 (libpgf-src-6.14.12.tar.gz) = bba68ebc8a4f275e56a7615cd1e6a252c59ca613
|
||||
RMD160 (libpgf-src-6.14.12.tar.gz) = 8ac4922959c31bb02b406165499e82417d0f6b1d
|
||||
Size (libpgf-src-6.14.12.tar.gz) = 91154 bytes
|
||||
SHA1 (patch-configure.ac) = a3965803c80bf6160eca1b9c0562620fdd8f213f
|
||||
SHA1 (patch-doc_Makefile.am) = 28e0ebf8d83bd15ac6456967c572322943262f34
|
14
graphics/libpgf/options.mk
Normal file
14
graphics/libpgf/options.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
# $NetBSD: options.mk,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.libpgf
|
||||
PKG_SUPPORTED_OPTIONS= doc
|
||||
|
||||
PLIST_VARS+= doc
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mdoc)
|
||||
BUILD_DEPENDS+= doxygen>=1.8.7:../../devel/doxygen
|
||||
PLIST.doc= yes
|
||||
CONFIGURE_ARGS+= --enable-doc
|
||||
.endif
|
19
graphics/libpgf/patches/patch-configure.ac
Normal file
19
graphics/libpgf/patches/patch-configure.ac
Normal file
|
@ -0,0 +1,19 @@
|
|||
$NetBSD: patch-configure.ac,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
* add --enable-doc option
|
||||
https://sourceforge.net/p/libpgf/patches/8/
|
||||
|
||||
--- configure.ac.orig 2014-06-18 08:16:27.000000000 +0000
|
||||
+++ configure.ac
|
||||
@@ -30,8 +30,11 @@ AC_CONFIG_HEADERS( config.h )
|
||||
AC_PROG_CXX
|
||||
|
||||
dnl Check for doxygen support
|
||||
+AC_ARG_ENABLE([doc],[AS_HELP_STRING([--enable-doc],[build docs])])
|
||||
+if test $enable_doc; then
|
||||
AC_PATH_PROG([DOXYGEN], [doxygen])
|
||||
AC_PATH_PROG([DOT], [dot])
|
||||
+fi
|
||||
AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN && $DOT)
|
||||
|
||||
# Generate output
|
19
graphics/libpgf/patches/patch-doc_Makefile.am
Normal file
19
graphics/libpgf/patches/patch-doc_Makefile.am
Normal file
|
@ -0,0 +1,19 @@
|
|||
$NetBSD: patch-doc_Makefile.am,v 1.1 2014/07/22 17:36:49 wiz Exp $
|
||||
|
||||
* install manpages in mandir
|
||||
https://sourceforge.net/p/libpgf/patches/9/
|
||||
|
||||
* do not install _usr_...3 manpage files
|
||||
https://sourceforge.net/p/libpgf/patches/10/
|
||||
|
||||
--- doc/Makefile.am.orig 2013-10-25 11:24:17.000000000 +0000
|
||||
+++ doc/Makefile.am
|
||||
@@ -11,6 +11,6 @@ html/index.html: Doxyfile
|
||||
|
||||
install-data-local: html/index.html
|
||||
$(mkinstalldirs) $(DOC_DIR)/html
|
||||
- $(mkinstalldirs) $(DESTDIR)$(datadir)/man/man3
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
|
||||
-(cd html && for f in *.html *.png; do $(INSTALL) -m 644 "$$f" "$(DOC_DIR)/html/$$f"; done)
|
||||
- -(cd man/man3; for f in *.3; do $(INSTALL) -m 644 "$$f" "$(DESTDIR)$(datadir)/man/man3/$$f"; done)
|
||||
+ -(cd man/man3; for f in [!_]*.3; do $(INSTALL) -m 644 "$$f" "$(DESTDIR)$(mandir)/man3/$$f"; done)
|
Loading…
Reference in a new issue