svn commit: r319430 - in head/graphics/pgplot: . files
Brendan Fabeny
bf at FreeBSD.org
Thu May 30 14:25:03 UTC 2013
Author: bf
Date: Thu May 30 14:25:02 2013
New Revision: 319430
URL: http://svnweb.freebsd.org/changeset/ports/319430
Log:
Minor style changes and clean-up, including: use shebangfix and remove
a redundant patch [1]
Submitted by: J. Marino [1]
Deleted:
head/graphics/pgplot/files/patch-aa
Modified:
head/graphics/pgplot/Makefile (contents, props changed)
Modified: head/graphics/pgplot/Makefile
==============================================================================
--- head/graphics/pgplot/Makefile Thu May 30 14:07:20 2013 (r319429)
+++ head/graphics/pgplot/Makefile Thu May 30 14:25:02 2013 (r319430)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: pgplot
-# Date created: 21 December 1996
-# Whom: jmz
-#
+# Created by: jmz
# $FreeBSD$
-#
PORTNAME= pgplot
PORTVERSION= 5.2.2
@@ -13,23 +9,25 @@ MASTER_SITES= ftp://ftp.astro.caltech.ed
DISTNAME= ${PORTNAME}${PORTVERSION:R}
MAINTAINER= bf at FreeBSD.org
-COMMENT= A C/FORTRAN library for drawing graphs on a variety of display devices
+COMMENT= C/FORTRAN library for drawing graphs on a variety of display devices
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
MAKE_JOBS_UNSAFE= yes
+USES= shebangfix
USE_FORTRAN= yes
USE_LDCONFIG= yes
USE_XORG= x11 xproto xt
MAKE_ENV= SSP_CFLAGS=
+SHEBANG_FILES= makehtml maketex
SUFFIXES= flib clib bin
WRKSRC= ${WRKDIR}/${PORTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !empty(ARCH:M*64*)
+.if ${ARCH:M*64*}
EXTRA_PATCHES += ${FILESDIR}/drivers_64bit_patch
.endif
@@ -37,7 +35,7 @@ EXTRA_PATCHES += ${FILESDIR}/drivers_64b
PORTDATA= grfont.dat
.endif
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
DOCS= cpg/cpgplot.doc pgplot-routines.tex pgplot.doc pgplot.html \
readme.pgdisp rgb.txt
SUFFIXES+= doc
@@ -45,14 +43,12 @@ PORTDOCS= ${DOCS:C|.*/||}
USE_PERL5_BUILD= yes
.endif
-.ifndef(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLES= Makefile.demo cpg/cpgdemo.c examples/pgdemo*.f
PORTEXAMPLES= ${EXAMPLES:C|.*/||}
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/bin/perl|${PERL}|' \
- ${WRKSRC}/makehtml ${WRKSRC}/maketex
@${REINPLACE_CMD} -e 's|png_ptr->jmpbuf|png_jmpbuf(png_ptr)|' \
${WRKSRC}/drivers/pndriv.c
@${REINPLACE_CMD} -e 's|/usr/local/pgplot|${DATADIR}|g' \
@@ -78,12 +74,12 @@ do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDATA} ${DATADIR}
.endif
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}; ${CP} pgdispd/aaaread.me readme.pgdisp; \
${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
-.ifndef(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}; ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.endif
@@ -99,4 +95,4 @@ check test: build
PGPLOT_DIR="${WRKSRC}" PGPLOT_DEV="/xwin" ${WRKSRC}/${DEMO}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list