blob: 9895b3fac2051d1c30956a8628744b5f0c0ad3bd (
plain)
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
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= libharu
PORTVERSION= 2.3.0
CATEGORIES= print
MAINTAINER= jlaffaye@FreeBSD.org
COMMENT= Haru Free PDF Library
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
OPTIONS_DEFINE= EXAMPLES
USE_LDCONFIG= yes
USES+= cmake:outsource
CMAKE_ARGS+= -DDEVPAK:BOOL=ON
USE_GITHUB= yes
GH_ACCOUNT= libharu
GH_TAGNAME= RELEASE_2_3_0
GH_COMMIT= 4ae1d5f
SOVERSION= 2
PLIST_SUB+= SOVERSION=${SOVERSION}
PORTEXAMPLES= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
CMAKE_ARGS+= -DLIBHPDF_EXAMPLES:BOOL=ON \
-DEXAMPLESDIR:STRING=share/examples/${PORTNAME}
.endif
post-install:
${LN} -s libhpdf.so ${STAGEDIR}${PREFIX}/lib/libhpdf.so.${SOVERSION}
.include <bsd.port.mk>
|