freebsd-ports/graphics/podofo/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: stas
# $FreeBSD$
PORTNAME= podofo
2018-08-14 18:40:46 +02:00
PORTVERSION= 0.9.6
PORTREVISION= 1
CATEGORIES= graphics print
MASTER_SITES= SF
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PDF manipulation library and tools
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libidn.so:dns/libidn
OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF
OPTIONS_DEFAULT=JPEG PNG TIFF
IMPOSE_DESC= Build impose tool (Lua required)
CMAKE_ARGS= -DFONTCONFIG_LIBRARIES=${LOCALBASE}/lib/libfontconfig.so \
-DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \
2018-02-19 11:29:34 +01:00
-DOPENSSL_LIBRARIES=${OPENSSLDIR}
CMAKE_ON= PODOFO_BUILD_SHARED PODOFO_BUILD_STATIC
USE_LDCONFIG= yes
USES= cmake compiler:c++11-lang dos2unix pkgconfig ssl
DOS2UNIX_FILES= cmake/modules/FindFREETYPE.cmake
IMPOSE_CMAKE_BOOL= WANT_LUA
IMPOSE_CXXFLAGS= -I${LUA_INCDIR}
IMPOSE_LDFLAGS= -L${LUA_LIBDIR}
IMPOSE_USES= lua
JPEG_CMAKE_BOOL= WANT_LIBJPEG
2015-06-22 20:33:20 +02:00
JPEG_USES= jpeg
PNG_CMAKE_BOOL= WANT_PNG
PNG_LIB_DEPENDS= libpng.so:graphics/png
TIFF_CMAKE_BOOL= WANT_TIFF
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
post-patch:
@${REINPLACE_CMD} -e 's|$${LIBDIRNAME}/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -e '/^Libs: / s|-@PODOFO_VERSION_MAJOR@||' ${WRKSRC}/src/libpodofo.pc.in
.include <bsd.port.mk>