2020-05-06 16:04:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.43 2020/05/06 14:04:35 adam Exp $
|
2014-05-25 20:26:57 +02:00
|
|
|
|
2019-03-25 12:34:05 +01:00
|
|
|
DISTNAME= OpenCPN-5.0.0
|
2018-03-12 12:15:24 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/OpenCPN/opencpn/}
|
2020-05-06 16:04:05 +02:00
|
|
|
PKGREVISION= 9
|
2019-03-25 12:34:05 +01:00
|
|
|
#PKGREVISION= 1
|
2014-05-25 20:26:57 +02:00
|
|
|
CATEGORIES= geography
|
2016-03-14 12:01:06 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenCPN/}
|
|
|
|
GITHUB_PROJECT= OpenCPN
|
2019-03-25 12:34:05 +01:00
|
|
|
GITHUB_TAG= v5.0.0
|
2016-03-14 12:01:06 +01:00
|
|
|
EXTRACT_SUFX= .zip
|
2014-05-25 20:26:57 +02:00
|
|
|
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.opencpn.org/
|
2014-05-25 20:26:57 +02:00
|
|
|
COMMENT= Concise ChartPlotter/Navigator
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2019-03-25 12:34:05 +01:00
|
|
|
USE_LANGUAGES= c c++11
|
2018-07-19 19:58:57 +02:00
|
|
|
USE_TOOLS+= gettext pkg-config
|
|
|
|
USE_CMAKE= yes
|
2014-05-25 20:26:57 +02:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -DPREFIX:PATH=${PREFIX} -DPREFIX_PLUGINS:PATH=${PREFIX}/lib/opencpn
|
2015-01-22 13:34:15 +01:00
|
|
|
CMAKE_ARGS+= -DBUNDLE_DOCS=ON -DBUNDLE_GSHHS=CRUDE -DBUNDLE_TCDATA=ON
|
2016-05-25 16:38:48 +02:00
|
|
|
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
|
2014-05-25 20:26:57 +02:00
|
|
|
CMAKE_MODULE_PATH_OVERRIDE = \
|
2016-03-14 12:01:06 +01:00
|
|
|
plugins/chartdldr_pi/CMakeLists.txt \
|
|
|
|
plugins/dashboard_pi/CMakeLists.txt \
|
|
|
|
plugins/grib_pi/CMakeLists.txt \
|
|
|
|
plugins/wmm_pi/CMakeLists.txt \
|
|
|
|
plugins/CMakeLists.txt
|
2014-05-25 20:26:57 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= prefix
|
|
|
|
SUBST_STAGE.prefix= pre-configure
|
|
|
|
SUBST_MESSAGE.prefix= replace /usr/local with ${PREFIX}
|
|
|
|
SUBST_FILES.prefix= src/mygdal/cpl_csv.cpp \
|
|
|
|
src/mygdal/cpl_findfile.cpp \
|
|
|
|
data/doc/help_en_US.html \
|
|
|
|
Findgps.cmake
|
|
|
|
SUBST_SED.prefix= -e s,"/usr/local,"${PREFIX},g
|
|
|
|
|
|
|
|
# Ensure we export symbols in the linked shared object.
|
|
|
|
LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
|
|
|
|
|
2019-10-27 18:44:33 +01:00
|
|
|
# hack so that pango find harfbuzz's headers
|
|
|
|
CFLAGS+= -I${PREFIX}/include/harfbuzz
|
|
|
|
CXXFLAGS+= -I${PREFIX}/include/harfbuzz
|
|
|
|
|
2019-03-25 12:34:05 +01:00
|
|
|
.include "../../audio/libsndfile/buildlink3.mk"
|
2014-05-25 20:26:57 +02:00
|
|
|
.include "../../devel/cmake/buildlink3.mk"
|
2016-03-14 12:01:06 +01:00
|
|
|
.include "../../x11/wxGTK30/buildlink3.mk"
|
2018-04-05 17:34:33 +02:00
|
|
|
.include "../../graphics/libexif/buildlink3.mk"
|
2014-05-25 20:26:57 +02:00
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2019-10-20 13:10:47 +02:00
|
|
|
.include "../../audio/portaudio/buildlink3.mk"
|
2014-05-25 20:26:57 +02:00
|
|
|
.include "../../textproc/tinyxml/buildlink3.mk"
|
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2016-03-14 12:01:06 +01:00
|
|
|
.include "../../www/curl/buildlink3.mk"
|
2014-05-25 20:26:57 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|