2013-02-24 01:23:52 +01:00
|
|
|
# Created by: stas
|
2009-10-17 12:29:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= podofo
|
2018-08-14 18:40:46 +02:00
|
|
|
PORTVERSION= 0.9.6
|
2019-04-02 05:35:54 +02:00
|
|
|
PORTREVISION= 1
|
2009-10-17 12:29:21 +02:00
|
|
|
CATEGORIES= graphics print
|
2016-05-18 16:11:33 +02:00
|
|
|
MASTER_SITES= SF
|
2009-10-17 12:29:21 +02:00
|
|
|
|
2017-05-07 23:26:29 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2009-10-17 12:29:21 +02:00
|
|
|
COMMENT= PDF manipulation library and tools
|
|
|
|
|
2012-03-25 05:55:58 +02:00
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
2017-05-07 23:26:29 +02:00
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
2016-04-01 16:00:51 +02:00
|
|
|
libfreetype.so:print/freetype2 \
|
2017-05-07 23:26:29 +02:00
|
|
|
libidn.so:dns/libidn
|
2009-10-17 12:29:21 +02:00
|
|
|
|
2017-05-07 23:26:29 +02:00
|
|
|
OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF
|
|
|
|
OPTIONS_DEFAULT=JPEG PNG TIFF
|
|
|
|
IMPOSE_DESC= Build impose tool (Lua required)
|
|
|
|
|
2017-05-21 16:56:49 +02:00
|
|
|
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
|
2012-03-25 05:55:58 +02:00
|
|
|
USE_LDCONFIG= yes
|
2019-12-31 02:28:29 +01:00
|
|
|
USES= cmake compiler:c++11-lang dos2unix pkgconfig ssl
|
2009-10-17 12:29:21 +02:00
|
|
|
|
2017-05-07 23:26:29 +02:00
|
|
|
DOS2UNIX_FILES= cmake/modules/FindFREETYPE.cmake
|
2011-11-27 14:10:20 +01:00
|
|
|
|
2017-05-07 23:26:29 +02:00
|
|
|
IMPOSE_CMAKE_BOOL= WANT_LUA
|
2013-07-10 21:41:30 +02:00
|
|
|
IMPOSE_CXXFLAGS= -I${LUA_INCDIR}
|
|
|
|
IMPOSE_LDFLAGS= -L${LUA_LIBDIR}
|
2017-05-07 23:26:29 +02:00
|
|
|
IMPOSE_USES= lua
|
|
|
|
JPEG_CMAKE_BOOL= WANT_LIBJPEG
|
2015-06-22 20:33:20 +02:00
|
|
|
JPEG_USES= jpeg
|
2017-05-07 23:26:29 +02:00
|
|
|
PNG_CMAKE_BOOL= WANT_PNG
|
2016-04-01 16:00:51 +02:00
|
|
|
PNG_LIB_DEPENDS= libpng.so:graphics/png
|
2017-05-07 23:26:29 +02:00
|
|
|
TIFF_CMAKE_BOOL= WANT_TIFF
|
2016-04-01 16:00:51 +02:00
|
|
|
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
|
2013-07-10 21:41:30 +02:00
|
|
|
|
2017-08-01 19:09:56 +02:00
|
|
|
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
|
|
|
|
|
2019-09-15 00:01:13 +02:00
|
|
|
.include <bsd.port.mk>
|