mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
b1bf1620a6
Remove patch to add -I/usr/local/include in freetype-config --cflags. If ports need extra headers they should look for them, and not get them via a side-effect. Freetype had a header resuffle in 2.5.1, patch ports to use the new header style. Thanks go to bdrewery for the two exp-runs and rakuco for helping me with some troublesome cmake ports. PR: ports/184587
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: stas
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= podofo
|
|
PORTVERSION= 0.9.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
|
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
|
COMMENT= PDF manipulation library and tools
|
|
|
|
LICENSE= GPLv2 LGPL21
|
|
LICENSE_COMB= multi
|
|
|
|
LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
USES= cmake dos2unix
|
|
CMAKE_ARGS= -DPODOFO_BUILD_SHARED:BOOL=TRUE \
|
|
-DPODOFO_BUILD_STATIC:BOOL=FALSE \
|
|
-DOPENSSL_INCLUDE_DIR:PATH="${OPENSSLINC}" \
|
|
-DOPENSSL_LIBRARIES:PATH="${OPENSSLDIR}"
|
|
USE_OPENSSL= yes
|
|
USE_LDCONFIG= yes
|
|
DOS2UNIX_FILES= cmake/modules/FindFREETYPE.cmake
|
|
|
|
OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF
|
|
OPTIONS_DEFAULT= JPEG PNG TIFF
|
|
IMPOSE_DESC= Build impose tool (needs Lua)
|
|
|
|
IMPOSE_CMAKE_ON= -DWANT_LUA:BOOL=TRUE
|
|
IMPOSE_CXXFLAGS= -I${LUA_INCDIR}
|
|
IMPOSE_LDFLAGS= -L${LUA_LIBDIR}
|
|
|
|
JPEG_CMAKE_ON= -DWANT_LIBJPEG:BOOL=TRUE
|
|
JPEG_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
|
|
|
|
PNG_CMAKE_ON= -DWANT_PNG:BOOL=TRUE
|
|
PNG_LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
|
|
|
|
TIFF_CMAKE_ON= -DWANT_TIFF:BOOL=TRUE
|
|
TIFF_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MIMPOSE}
|
|
USE_LUA= 5.1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|