From 559e1bc28bd975c38b561de15be3918ba1f71b5e Mon Sep 17 00:00:00 2001 From: asami Date: Wed, 11 Nov 1998 05:37:39 +0000 Subject: Use bsd.port.{pre,post}.mk. Either use them to avoid having to define something already there (PORTOBJFORMAT, OSVERSION) or move stuff from after .include to before. (This is not by any means the complete list but just the ones I've noticed recently.) --- graphics/pgplot/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'graphics/pgplot') diff --git a/graphics/pgplot/Makefile b/graphics/pgplot/Makefile index ef83f76f6c0e..2377bd57df05 100644 --- a/graphics/pgplot/Makefile +++ b/graphics/pgplot/Makefile @@ -3,7 +3,7 @@ # Date created: 21 December 1996 # Whom: jmz # -# $Id: Makefile,v 1.5 1998/10/05 03:01:29 steve Exp $ +# $Id: Makefile,v 1.6 1998/10/12 03:19:03 jseger Exp $ # DISTNAME= pgplot5.2 @@ -15,21 +15,22 @@ MAINTAINER= jmz@FreeBSD.org WRKSRC= ${WRKDIR}/pgplot -OSVERSION!= sysctl -n kern.osreldate +.include + .if ${OSVERSION} >= 300000 BROKEN= makehtml not found .endif +.if ${PORTOBJFORMAT} == "elf" +VERSION= 5 +.else +VERSION= 5.2 +.endif + post-install: .for f in libcpgplot.so libpgplot.so ${LN} -sf $f.${VERSION} ${PREFIX}/lib/$f .endfor ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib -.include - -.if ${PORTOBJFORMAT} == "elf" -VERSION= 5 -.else -VERSION= 5.2 -.endif +.include -- cgit