blob: 0fe96bd9bb52d8d80a7ef35fbbe7ed8e37b74834 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: stas
# $FreeBSD$
PORTNAME= podofo
PORTVERSION= 0.9.5
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} \
-DOPENSSL_LIBRARIES=${OPENSSLDIR}
CMAKE_ON= PODOFO_BUILD_SHARED PODOFO_BUILD_STATIC
USE_LDCONFIG= yes
USES= cmake compiler 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
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
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} >= 50
CXXFLAGS+= -std=gnu++11 -D_GLIBCXX_USE_C99=1
.endif
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.post.mk>
|