File:  [cvs.NetBSD.org] / pkgsrc / geography / opencpn / Makefile
Revision 1.47: download - view: text, annotated - select for diffs
Tue Aug 18 17:58:00 2020 UTC (4 years, 3 months ago) by leot
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
*: revbump for libsndfile

# $NetBSD: Makefile,v 1.47 2020/08/18 17:58:00 leot Exp $

DISTNAME=	OpenCPN-5.0.0
PKGNAME=	${DISTNAME:S/OpenCPN/opencpn/}
PKGREVISION=	13
CATEGORIES=	geography
MASTER_SITES=	${MASTER_SITE_GITHUB:=OpenCPN/}
GITHUB_PROJECT=	OpenCPN
GITHUB_TAG=	v5.0.0
EXTRACT_SUFX=	.zip

MAINTAINER=	bouyer@NetBSD.org
HOMEPAGE=	https://www.opencpn.org/
COMMENT=	Concise ChartPlotter/Navigator
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c c++11
USE_TOOLS+=	gettext pkg-config
USE_CMAKE=	yes

CMAKE_ARGS+=	-DPREFIX:PATH=${PREFIX} -DPREFIX_PLUGINS:PATH=${PREFIX}/lib/opencpn
CMAKE_ARGS+=	-DBUNDLE_DOCS=ON -DBUNDLE_GSHHS=CRUDE -DBUNDLE_TCDATA=ON
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
CMAKE_MODULE_PATH_OVERRIDE = \
	plugins/chartdldr_pi/CMakeLists.txt \
	plugins/dashboard_pi/CMakeLists.txt \
	plugins/grib_pi/CMakeLists.txt \
	plugins/wmm_pi/CMakeLists.txt \
	plugins/CMakeLists.txt

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		\
			cmake/Findgps.cmake
SUBST_SED.prefix=	-e s,"/usr/local,"${PREFIX},g

# Ensure we export symbols in the linked shared object.
LDFLAGS+=	${EXPORT_SYMBOLS_LDFLAGS}

# hack so that pango find harfbuzz's headers
CFLAGS+=	-I${PREFIX}/include/harfbuzz
CXXFLAGS+=	-I${PREFIX}/include/harfbuzz

.include "../../audio/libsndfile/buildlink3.mk"
.include "../../devel/cmake/buildlink3.mk"
.include "../../x11/wxGTK30/buildlink3.mk"
.include "../../graphics/libexif/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../audio/portaudio/buildlink3.mk"
.include "../../textproc/tinyxml/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>