summaryrefslogtreecommitdiff
path: root/math/udunits/Makefile
blob: b78593c7e3497ca75258918983af4e6ddc84db1a (plain)
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
# $NetBSD: Makefile,v 1.35 2015/03/12 17:35:06 tnn Exp $

DISTNAME=		udunits-1.12.1
PKGREVISION=		8
CATEGORIES=		math devel
MASTER_SITES=		ftp://ftp.unidata.ucar.edu/pub/udunits/
EXTRACT_SUFX=		.tar.Z

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.unidata.ucar.edu/software/udunits/
COMMENT=		Library and program for manipulating units of physical quantities

MAKE_JOBS_SAFE=		no

USE_TOOLS+=		perl soelim
WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}/src

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

CPPFLAGS+=		-Df2cFortran -Dunix
PERL5_CONFIGURE=	no
PERL5_PACKLIST=		auto/UDUNITS/.packlist

EGDIR=			${PREFIX}/share/examples/udunits
CONF_FILES=		${EGDIR}/udunits.dat ${PKG_SYSCONFDIR}/udunits.dat

INSTALL_MAKE_FLAGS+=	MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \
			BINDIR=${DESTDIR}${PREFIX}/bin \
			INCDIR=${DESTDIR}${PREFIX}/include \
			LIBDIR=${DESTDIR}${PREFIX}/lib

post-install:
	${RM} -rf ${WRKSRC}/perl/blib/lib

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"