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.) --- lang/python23/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lang/python23') diff --git a/lang/python23/Makefile b/lang/python23/Makefile index 491a1aa..80e254d 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -3,7 +3,7 @@ # Date created: 08 August 1995 # Whom: jkh # -# $Id: Makefile,v 1.39 1998/09/25 10:05:08 asami Exp $ +# $Id: Makefile,v 1.40 1998/10/06 06:49:12 tg Exp $ # DISTNAME= pyth151 @@ -82,7 +82,12 @@ post-configure: ${CAT} ${FILESDIR}/${file} >> ${WRKSRC}/Modules/Setup.local .endfor -OSVERSION!= sysctl -n kern.osreldate +.include + +.if ${PORTOBJFORMAT} == elf +LDFLAGS+= -rdynamic +CONFIGURE_ENV?= LDFLAGS="${LDFLAGS}" +.endif pre-install: .if ${OSVERSION} < 300000 @@ -97,10 +102,4 @@ post-install: ${INSTALL_SCRIPT} ${PREFIX}/lib/python1.5/plat-freebsd2/regen ${PREFIX}/lib/python1.5/plat-freebsd3 strip ${PREFIX}/bin/python -.include - -# need to get ${PORTOBJFORMAT} -.if ${PORTOBJFORMAT} == elf -LDFLAGS+= -rdynamic -CONFIGURE_ENV?= LDFLAGS="${LDFLAGS}" -.endif +.include -- cgit v1.1