# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_1_0/science/cgribex/Makefile 352619 2014-04-29 13:28:31Z 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
USE_LDCONFIG=	yes
USES=		libtool

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

.include <bsd.port.mk>
