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/libranlib/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'math/libranlib') diff --git a/math/libranlib/Makefile b/math/libranlib/Makefile index 7f899107d9ed..427dbe91cabf 100644 --- a/math/libranlib/Makefile +++ b/math/libranlib/Makefile @@ -3,7 +3,7 @@ # Date created: 06 April 1997 # Whom: Thomas Gellekum # -# $Id: Makefile,v 1.2 1997/04/23 06:57:54 tg Exp $ +# $Id: Makefile,v 1.3 1998/10/26 07:45:01 asami Exp $ # DISTNAME= ranlib.c @@ -15,6 +15,8 @@ MAINTAINER= tg@FreeBSD.ORG WRKSRC= ${WRKDIR}/${DISTNAME}/src +.include + post-extract: @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile @@ -23,9 +25,9 @@ post-install: @${MKDIR} ${PREFIX}/share/doc/ranlib @${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/ranlib .endif - if [ "${PORTOBJFORMAT}" = "aout" ]; then \ - ${LN} -sf libranlib.so.1.0 ${PREFIX}/lib/libranlib.so; \ - fi +.if ${PORTOBJFORMAT} == "aout" + ${LN} -sf libranlib.so.1.0 ${PREFIX}/lib/libranlib.so +.endif @${LDCONFIG} -m ${PREFIX}/lib -.include +.include -- cgit v1.2.3