aboutsummaryrefslogtreecommitdiffstats
path: root/science/libkml/Makefile
blob: bc410d95756bf35a527964865592ddf24e8fa196 (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
# Created by: Wen Heping <wen@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libkml
PORTVERSION=    1.3.0
PORTREVISION=   7
CATEGORIES= science

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Reference implementation of OGC KML 2.2

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

BROKEN_powerpc64=   fails to compile: iomem_simple.h: redefinition of typedef 'open_file_func'

BUILD_DEPENDS=  boost-libs>=1.44.0:devel/boost-libs \
        googletest>=1.7.0:devel/googletest \
        minizip>=1.2.8:archivers/minizip
LIB_DEPENDS=    libboost_thread.so:devel/boost-libs \
        libexpat.so:textproc/expat2 \
        libgtest.so:devel/googletest \
        libminizip.so:archivers/minizip \
        liburiparser.so:net/uriparser

OPTIONS_DEFINE= EXAMPLES

CMAKE_ARGS= -DWITH_JAVA=OFF -DWITH_PYTHON=OFF -DWITH_SWIG=OFF
USE_LDCONFIG=   yes
USES=       cmake pathfix

PORTEXAMPLES=   *

USE_GITHUB= yes

EXAMPLES_CMAKE_OFF= -DBUILD_EXAMPLES=OFF -DINSTALL_EXAMPLES=OFF
EXAMPLES_CMAKE_ON=  -DBUILD_EXAMPLES=ON -DINSTALL_EXAMPLES=ON -DKML_EXAMPLES_DIR=${EXAMPLESDIR}
EXAMPLES_LIB_DEPENDS=   libcurl.so:ftp/curl

post-patch-EXAMPLES-on:
    @${REINPLACE_CMD} -e 's|DESTINATION examples/|DESTINATION $${KML_EXAMPLES_DIR}/|' ${WRKSRC}/examples/*/CMakeLists.txt

.include <bsd.port.mk>