2013-05-06 10:31:29 +02:00
|
|
|
# Created by: Greg Lewis <glewis@FreeBSD.org>
|
2005-04-07 23:48:51 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= grads
|
2009-01-21 06:28:27 +01:00
|
|
|
PORTVERSION= 1.9b4
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 10
|
2005-04-07 23:48:51 +02:00
|
|
|
CATEGORIES= graphics science math
|
|
|
|
MASTER_SITES= ftp://grads.iges.org/grads/1.9/:src \
|
2015-04-10 06:16:28 +02:00
|
|
|
ftp://cola.gmu.edu/grads/1.9/:src \
|
|
|
|
ftp://grads.iges.org/grads/:other \
|
|
|
|
ftp://cola.gmu.edu/grads/:other
|
2009-01-21 06:28:27 +01:00
|
|
|
DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}:src \
|
2005-04-07 23:48:51 +02:00
|
|
|
example.tar.gz:other
|
2009-01-21 06:28:27 +01:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}
|
2005-04-07 23:48:51 +02:00
|
|
|
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= The Grid Analysis and Display System
|
|
|
|
|
2009-11-08 23:48:08 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libudunits2.a:${PORTSDIR}/science/udunits \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
2014-05-25 00:55:31 +02:00
|
|
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \
|
2014-12-25 20:04:25 +01:00
|
|
|
libpng.so:${PORTSDIR}/graphics/png
|
2005-04-07 23:48:51 +02:00
|
|
|
|
2016-02-07 11:10:56 +01:00
|
|
|
USES= jpeg ncurses
|
2005-04-07 23:48:51 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= SUPPLIBS="${LOCALBASE}"
|
|
|
|
CONFIGURE_ARGS+= --enable-dyn-supplibs \
|
|
|
|
--with-readline \
|
|
|
|
--with-printim \
|
|
|
|
--with-gui \
|
|
|
|
--with-x
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
OPTIONS_DEFINE= HDF NETCDF DOCS EXAMPLES
|
2014-06-28 22:48:59 +02:00
|
|
|
OPTIONS_DEFAULT= NETCDF
|
2013-05-06 10:31:29 +02:00
|
|
|
HDF_DESC= Build hdf-support (only hdf OR netcdf is supported)
|
|
|
|
NETCDF_DESC= Build netcdf-support
|
2005-04-07 23:48:51 +02:00
|
|
|
|
2009-01-21 05:54:57 +01:00
|
|
|
PORTDATA= *
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2009-01-21 05:54:57 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2009-01-21 05:54:57 +01:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MHDF}
|
2014-06-28 22:48:59 +02:00
|
|
|
BROKEN= Fails to package
|
2014-05-25 00:55:31 +02:00
|
|
|
LIB_DEPENDS+= libmfhdf.so:${PORTSDIR}/science/hdf
|
2005-04-07 23:48:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-hdf
|
|
|
|
PLIST_SUB+= NETCDF="@comment " HDF=""
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
2014-05-03 05:17:19 +02:00
|
|
|
LIB_DEPENDS+= libnetcdf.so:${PORTSDIR}/science/netcdf
|
2005-04-07 23:48:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-nc
|
|
|
|
PLIST_SUB+= NETCDF="" HDF="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} "${WRKSRC}/examples"
|
|
|
|
cd "${WRKSRC}/examples" && ${TAR} -xzf "${DISTDIR}/example.tar.gz"
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e "s:%%DATADIR%%:${DATADIR}:" ${WRKSRC}/src/gx.h
|
2009-11-09 06:53:48 +01:00
|
|
|
${REINPLACE_CMD} -e "s:ludunits:ludunits2:" ${WRKSRC}/src/Makefile
|
2005-04-07 23:48:51 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-05-25 00:55:31 +02:00
|
|
|
${MKDIR} "${STAGEDIR}${DATADIR}"
|
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . "${STAGEDIR}${DATADIR}"
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-05-25 00:55:31 +02:00
|
|
|
${MKDIR} "${STAGEDIR}${EXAMPLESDIR}"
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . "${STAGEDIR}${EXAMPLESDIR}"
|
2009-01-21 05:54:57 +01:00
|
|
|
.endif
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-05-25 00:55:31 +02:00
|
|
|
${MKDIR} "${STAGEDIR}${DOCSDIR}"
|
|
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . "${STAGEDIR}${DOCSDIR}"
|
2005-04-07 23:48:51 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.mk>
|