head	1.1;
access;
symbols
	pkgsrc-2026Q3:1.1.0.8
	pkgsrc-2026Q3-base:1.1
	pkgsrc-2026Q2:1.1.0.6
	pkgsrc-2026Q2-base:1.1
	pkgsrc-2026Q1:1.1.0.4
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.2
	pkgsrc-2025Q4-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.11.13.22.51.41;	author wiz;	state Exp;
branches;
next	;
commitid	fdDNdEbfCRHrHriG;


desc
@@


1.1
log
@print/podofo09: import podofo-0.9.8nb7

PoDoFo is a library to work with the PDF file format. The name
comes from the first letter of PDF (Portable Document Format). A
few tools to work with PDF files are already included in the PoDoFo
package.

The PoDoFo library is a free, portable C++ library which includes
classes to parse PDF files and modify their contents into memory.
The changes can be written back to disk easily. The parser can also
be used to extract information from a PDF file (for example the
parser could be used in a PDF viewer). Besides parsing PoDoFo
includes also very simple classes to create your own PDF files.
All classes are documented so it is easy to start writing your own
application using PoDoFo.

This is the old 0.9 version, just for calibre.
@
text
@# $NetBSD: Makefile,v 1.52 2025/08/30 22:46:11 wiz Exp $

DISTNAME=	podofo-0.9.8
PKGREVISION=	7
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=podofo/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/podofo/podofo/
COMMENT=	Library to work with the PDF file format (old 0.9 branch)
LICENSE=	gnu-lgpl-v2 AND gnu-gpl-v2

USE_LANGUAGES=		c c++

USE_TOOLS+=	pkg-config

CMAKE_CONFIGURE_ARGS+=	-DPODOFO_BUILD_SHARED=ON
CMAKE_CONFIGURE_ARGS+=	-DPODOFO_BUILD_STATIC=ON
CMAKE_CONFIGURE_ARGS+=	-DFREETYPE_INCLUDE_DIR_FT2BUILD:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CMAKE_CONFIGURE_ARGS+=	-DFREETYPE_INCLUDE_DIR_FTHEADER:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2/config
CMAKE_CONFIGURE_ARGS+=	-DFREETYPE_LIB_PATHS:PATH=${BUILDLINK_PREFIX.freetype2}/lib

# Avoid building unit tests.
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_DISABLE_FIND_PACKAGE_CppUnit=TRUE
CMAKE_CONFIGURE_ARGS+=	-DCMAKE_DISABLE_FIND_PACKAGE_LUA=TRUE

# Podofo uses thread_local, which is a C++11 feature, but does not
# appropriately set -std=c++11.
USE_CXX_FEATURES+=	c++11
FORCE_CXX_STD+=		c++11

.include "options.mk"

.include "../../devel/cmake/build.mk"
# tests-depend on cppunit (for unit tests)
.include "../../devel/libidn/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libunistring/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@
