textproc/podofo uses -std=c++98 but cppunit now uses c++11 features for which ports-gcc insists that -std=c/gnu++11 should be used. Fix adapted from https://sourceforge.net/p/podofo/code/1826. Tested on sparc64 by jca@. OK sthen@ (maintainer), jca@
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2019/12/14 20:17:14 bket Exp $
|
|
|
|
COMMENT= library and tools to modify and parse PDF documents
|
|
|
|
DISTNAME= podofo-0.9.5
|
|
REVISION= 2
|
|
|
|
SHARED_LIBS += podofo 2.0 # 0.9
|
|
|
|
CATEGORIES= textproc
|
|
|
|
HOMEPAGE= http://podofo.sourceforge.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPLv2+ (tools) LGPLv2+ (lib)
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c crypto fontconfig freetype idn jpeg m png pthread tiff z
|
|
WANTLIB += ${COMPILER_LIBCXX}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=podofo/}
|
|
|
|
MODULES= devel/cmake
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
LIB_DEPENDS= devel/libidn \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
graphics/tiff
|
|
|
|
CONFIGURE_ARGS+= -DCMAKE_INCLUDE_PATH=${X11BASE}/include \
|
|
-DCMAKE_LIBRARY_PATH=${X11BASE}/lib \
|
|
-DFREETYPE_INCLUDE_DIR=${X11BASE}/include/freetype2 \
|
|
-DPODOFO_BUILD_SHARED=True \
|
|
-DPODOFO_BUILD_STATIC=True
|
|
|
|
post-extract:
|
|
rm ${WRKSRC}/cmake/modules/FindZLIB.cmake
|
|
|
|
BUILD_DEPENDS= devel/cppunit
|
|
do-test:
|
|
${WRKBUILD}/test/unit/podofo-test
|
|
|
|
.include <bsd.port.mk>
|