1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/dataplot/Makefile
Martin Wilke 3e4ed01146 - 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 17:56:05 +00:00

67 lines
1.8 KiB
Makefile

# New ports collection makefile for: dataplot
# Date created: 20 July 2003
# Whom: Pedro F. Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#
PORTNAME= dataplot
PORTVERSION= 20061219
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.nist.gov/pub/dataplot/unix/:source \
http://www.alaskaparadise.com/freebsd/:source \
http://www.itl.nist.gov/div898/software/dataplot.html/:doc \
http://www.alaskaparadise.com/freebsd/:doc
DISTFILES= dpsrc.12_19_2006.tar.gz:source \
dpsnapsh.pdf:doc
DIST_SUBDIR= dataplot
EXTRACT_ONLY= dpsrc.12_19_2006.tar.gz
MAINTAINER= beech@FreeBSD.org
COMMENT= A free software system for statistical visualization
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
png:${PORTSDIR}/graphics/png \
jpeg:${PORTSDIR}/graphics/jpeg
USE_FORTRAN= yes
FFLAGS+= -fno-range-check
MAKE_ENV+= FFLAGS="${FFLAGS}"
USE_XORG= x11 xi
NO_WRKSUBDIR= yes
MAXOBV?= 20000 # Make bigger if you need more observations/variable
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= Does not link on alpha (.got subsegment exceeds 64k)
.endif
FORTRANLIBS= -lgfortranbegin -lgfortran
GCCLIBDIR= -L`${CAT} ${WRKSRC}/LIBDIR` -L`${CAT} ${WRKSRC}/LIBDIR`/../../..
post-extract:
@${INSTALL_DATA} ${FILESDIR}/Makefile.tmpl ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's;%%LOCALBASE%%;${LOCALBASE};g ; \
s;%%LOCALBASE%%;${LOCALBASE};g' \
${WRKSRC}/Makefile
@${MV} ${WRKSRC}/gl_src.c ${WRKSRC}/gl_src.c.bogus
pre-patch:
@${REINPLACE_CMD} -e 's/MAXOBV=100000/MAXOBV=${MAXOBV}/' \
${WRKSRC}/DPCOPA.INC
pre-build:
${DIRNAME} `${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR
${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+${GCCLIBDIR}+" -e "s+%%FORTRANLIBS%%+${FORTRANLIBS}+" ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dpsnapsh.pdf \
${DOCSDIR}
.endif
.include <bsd.port.post.mk>