# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_2_0/science/cgribex/Makefile 377455 2015-01-19 19:51:01Z sunpoet $

PORTNAME=	cgribex
PORTVERSION=	1.6.3
CATEGORIES=	science
MASTER_SITES=	https://code.zmaw.de/attachments/download/7200/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Lightweight GRIBEX in C with portable Fortran interface

LICENSE=	GPLv2

LIB_DEPENDS=	libjasper.so:${PORTSDIR}/graphics/jasper \
		libsz.so:${PORTSDIR}/science/szip

CONFIGURE_ARGS=	--with-jasper=${LOCALBASE} \
		--with-szlib=${LOCALBASE}
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes
USES=		libtool

#post-install:
#	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgribex.so.0.0.0

.include <bsd.port.mk>
