44 lines
987 B
Makefile
44 lines
987 B
Makefile
# $OpenBSD: Makefile,v 1.4 2016/03/11 23:03:21 naddy Exp $
|
|
|
|
COMMENT= library and tools to modify and parse PDF documents
|
|
|
|
DISTNAME= podofo-0.9.3
|
|
|
|
SHARED_LIBS += podofo 1.0 # 0.9
|
|
|
|
CATEGORIES= textproc
|
|
|
|
HOMEPAGE= http://podofo.sourceforge.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPLv2+ (tools) LGPLv2+ (lib)
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c crypto fontconfig freetype idn jpeg m png pthread
|
|
WANTLIB += stdc++ tiff z
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=podofo/}
|
|
|
|
MODULES= devel/cmake
|
|
|
|
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>
|