1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/science/cdo/Makefile
Cheng-Lung Sung 025d00d6cc - Update to 1.1.1
PR:		ports/122667
Submitted by:	maintainer (Sunpoet Po-Chuan Hsieh)
2008-04-12 01:35:21 +00:00

52 lines
1.3 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: CDO
# Date created: 29 May 2006
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
#
# $FreeBSD$
#
PORTNAME= cdo
PORTVERSION= 1.1.1
CATEGORIES= science
MASTER_SITES= http://www.mpimet.mpg.de/fileadmin/software/cdo/ \
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet@sunpoet.net
COMMENT= Climate Data Operators
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-transform-name=""
CONFIGURE_ENV= CC="${CC}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
PLIST_FILES= bin/cdo
OPTIONS= NETCDF "NETCDF support" off
.include <bsd.port.pre.mk>
.if (${OSVERSION} > 700000) || (${ARCH} != "sparc64" && ${OSVERSION} > 600000)
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -DPTHREAD_MUTEXATTR_CONDATTR"
.endif
.if defined(WITH_NETCDF)
CONFIGURE_ARGS+= --with-netcdf=${LOCALBASE}
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-Makefile.in
PLIST_FILES+= bin/cdotest
.endif
post-build:
.if defined(WITH_NETCDF)
cd "${WRKSRC}/src" && ${SETENV} CDO_PATH="${WRKSRC}/src/cdo" "${WRKSRC}/src/cdotest"
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>