aboutsummaryrefslogtreecommitdiffstats
path: root/astro/opencpn/Makefile
blob: c2917704458e5e466e323146ef82d7fb8cd88895 (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
# $FreeBSD$

PORTNAME=   opencpn
PORTVERSION=    4.4.0
DISTVERSIONPREFIX=  v
PORTREVISION=   5
CATEGORIES= astro geography

MAINTAINER= ml@netfence.it
COMMENT=    Concise ChartPlotter/Navigator

LICENSE=    GPLv2+

LIB_DEPENDS=    libportaudio.so:audio/portaudio \
        libcurl.so:ftp/curl \
        libexpat.so:textproc/expat2 \
        libtinyxml.so:textproc/tinyxml

USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
GH_PROJECT= OpenCPN

USES=       cmake compiler:c++11-lib gettext-tools localbase
USE_CXXSTD= c++11
USE_GL=     gl
USE_GNOME=  cairo gdkpixbuf2 gtk20
USE_WX=     3.0+
USE_XORG=   x11
INSTALLS_ICONS= yes

CMAKE_ARGS= -DBUNDLE_DOCS=ON -DBUNDLE_GSHHS=CRUDE -DBUNDLE_TCDATA=ON
LDFLAGS+=   -Wl,-E # plugins
LDFLAGS+=   -Wl,--as-needed # ICE, SM, Xext

BROKEN_aarch64=     Fails to compile: use of undeclared identifier rand

post-patch:
    @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
        ${WRKSRC}/src/mygdal/cpl_csv.cpp \
        ${WRKSRC}/src/mygdal/cpl_findfile.cpp \
        ${WRKSRC}/data/doc/help_en_US.html

.include <bsd.port.mk>