1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/science/cdo/Makefile
Sunpoet Po-Chuan Hsieh 511e2c74e1 - Use USES=localbase
- Remove unnecessary REINPLACE_CMD
2016-04-23 06:46:51 +00:00

70 lines
1.8 KiB
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
# $FreeBSD$
PORTNAME= cdo
PORTVERSION= 1.7.1
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://code.zmaw.de/attachments/download/12070/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Climate Data Operators
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= CGRIBEX HDF5 JASPER NETCDF PROJ SZIP UDUNITS
OPTIONS_DEFAULT=CGRIBEX HDF5 JASPER NETCDF PROJ SZIP UDUNITS
OPTIONS_SUB= yes
HDF5_IMPLIES= SZIP
NETCDF_IMPLIES= HDF5
PORTSCOUT= site:https://code.zmaw.de/projects/cdo/files
CONFIGURE_ARGS= --disable-cgribex \
--disable-data \
--disable-extra \
--disable-grib \
--disable-ieg \
--disable-openmp \
--disable-service \
--enable-cdi-lib \
--program-transform-name="" \
--with-zlib=/usr
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
USES= gmake libtool localbase pathfix
CGRIBEX_CONFIGURE_WITH= cgribex
CGRIBEX_LIB_DEPENDS= libcgribex.so:science/cgribex
HDF5_CONFIGURE_WITH= hdf5
HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5
JASPER_CONFIGURE_WITH= jasper
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
NETCDF_CONFIGURE_WITH= netcdf
NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf
PROJ_CONFIGURE_WITH= proj
PROJ_LIB_DEPENDS= libproj.so:graphics/proj
SZIP_CONFIGURE_WITH= szlib
SZIP_LIB_DEPENDS= libsz.so:science/szip
UDUNITS_CONFIGURE_WITH= udunits2
UDUNITS_LIB_DEPENDS= libudunits2.so:science/udunits
.include <bsd.port.pre.mk>
.if ${ARCH} != "sparc64"
CFLAGS+= -DPTHREAD_MUTEXATTR_CONDATTR
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/\($$$$pkgconfigfile\)|${PREFIX}/libdata/\1|' ${WRKSRC}/libcdi/src/Makefile.in
@${REINPLACE_CMD} -e 's|unsigned32 |uint32_t |' ${WRKSRC}/libcdi/src/cdilib.c ${WRKSRC}/libcdi/src/util.c
test-NETCDF-on:
@cd ${WRKSRC}/ && ${SETENV} CDO_PATH=src/cdo src/cdotest
.include <bsd.port.post.mk>