From 96bc8048c3217bb231f2f30eadeb628134b557f5 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Sat, 14 Nov 1998 09:43:39 +0000 Subject: Use bsd.port.{pre,post}.mk to move PORTOBJFORMAT to front, or change shell loops to make loops. Use EXTRA_PKG_FLAGS to add install scripts instead of adding it to PKG_FLAGS after bsd.port.mk. --- math/plplot/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'math/plplot') diff --git a/math/plplot/Makefile b/math/plplot/Makefile index 1a5f28b022e1..055ff6f3167d 100644 --- a/math/plplot/Makefile +++ b/math/plplot/Makefile @@ -3,7 +3,7 @@ # Date created: 03 Oct 1997 # Whom: Thomas Gellekum # -# $Id: Makefile,v 1.4 1997/12/24 01:21:31 alex Exp $ +# $Id: Makefile,v 1.5 1998/09/27 20:11:17 steve Exp $ # DISTNAME= plplot4p99j @@ -16,15 +16,17 @@ MAINTAINER= tg@FreeBSD.ORG GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-gcc=yes --with-double=yes +.include + post-patch: @perl -pi.bak -e "s|/usr/local/plplot/lib|${PREFIX}/lib/plplot|g;" \ ${WRKSRC}/src/plctrl.c post-install: - if [ "${PORTOBJFORMAT}" = "elf" ]; then \ - ${LN} -sf libplplotdX.so.4 ${PREFIX}/lib/libplplotdX.so; \ - else \ - ${LN} -sf libplplotdX.so.4.99 ${PREFIX}/lib/libplplotdX.so; \ - fi +.if ${PORTOBJFORMAT} == "elf" + ${LN} -sf libplplotdX.so.4 ${PREFIX}/lib/libplplotdX.so +.else + ${LN} -sf libplplotdX.so.4.99 ${PREFIX}/lib/libplplotdX.so +.endif -.include +.include -- cgit v1.2.3