[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / GMT

File: [cvs.NetBSD.org] / pkgsrc / graphics / GMT / Makefile (download)

Revision 1.60, Fri Nov 8 03:09:22 2019 UTC (4 weeks, 2 days ago) by kivinen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.59: +2 -2 lines

Fixed graphics/GMT package to not have conflict with www/libpsl.

Both of them installed libpsl library, meaning only one of them could
be installed at one time. Changed the GMT libpsl library name to
libgmtpsl. Changing GMT library was more appropriate as only iGMT
depends on GMT and it does not use libraries.

# $NetBSD: Makefile,v 1.60 2019/11/08 03:09:22 kivinen Exp $

DISTNAME=	GMT4.1.4
PKGNAME=	GMT-4.1.4
PKGREVISION=	19
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/4/
MASTER_SITES+=	ftp://ftp.iris.washington.edu/pub/gmt/4/
DISTFILES=	GMT4.1.4_man.tar.bz2 GMT4.1.4_pdf.tar.bz2	\
		GMT4.1.4_scripts.tar.bz2 GMT4.1.4_share.tar.bz2 \
		GMT4.1.4_src.tar.bz2 GMT4.1.4_suppl.tar.bz2	\
		GMT4.1.4_tut.tar.bz2 GMT4.1.4_web.tar.bz2	\
		GMT4.1_coast.tar.bz2 GMT4.1_high.tar.bz2	\
		GMT4.1_full.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://gmt.soest.hawaii.edu/
COMMENT=	Generic Mapping Tools
LICENSE=	gnu-gpl-v2

MAKE_JOBS_SAFE=		no

EXTRACT_SUFX=	.tar.bz2
DIST_SUBDIR=	${DISTNAME}

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	pax

CONFIGURE_ARGS+=	--includedir=${PREFIX}/include/gmt
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/gmt
CONFIGURE_ARGS+=	--enable-eps
CONFIGURE_ARGS+=	--enable-netcdf=${BUILDLINK_PREFIX.netcdf}
CONFIGURE_ARGS+=	--enable-www=${PREFIX}/share/doc
CONFIGURE_ARGS+=	--enable-mansect=1
CONFIGURE_ARGS+=	--disable-mex

BUILD_TARGET=	all suppl
INSTALL_TARGET=	install-all
LIBS+=		${X11_LDFLAGS} # XXX: LDFLAGS doesn't work

post-extract:
	${RM} -f ${WRKSRC}/examples/*.bat ${WRKSRC}/examples/*/*.bat

INSTALLATION_DIRS=	share/doc/gmt share/examples/gmt/tutorial share/gmt

pre-install:
	rm -f ${WRKSRC}/share/.gmtdefaults_SI.orig
	rm -f ${WRKSRC}/share/.gmtdefaults_US.orig
	rm -f ${WRKSRC}/share/gmt.conf.orig

post-install:
	cd ${WRKSRC}/tutorial && ${INSTALL_DATA} bermuda.nc quakes.cpt	\
		ship.xyz us.nc data quakes.ngdc topo.cpt		\
		${DESTDIR}${PREFIX}/share/examples/gmt/tutorial
	cd ${WRKSRC}/share && pax -rw . ${DESTDIR}${PREFIX}/share/gmt
	cd ${WRKDIR}/share && pax -rw . ${DESTDIR}${PREFIX}/share/gmt
	cd ${WRKSRC}/examples && pax -rw . ${DESTDIR}${PREFIX}/share/examples/gmt

.include "../../devel/netcdf/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"