From 17565d52fa62335f77dd3333ddafdc36cc86dee3 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Sat, 7 Nov 1998 02:33:51 +0000 Subject: Build and install correctly for a.out and ELF. --- security/krb5-appl/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'security/krb5-appl/Makefile') diff --git a/security/krb5-appl/Makefile b/security/krb5-appl/Makefile index b35ac831039d..e8c16064d25d 100644 --- a/security/krb5-appl/Makefile +++ b/security/krb5-appl/Makefile @@ -3,7 +3,7 @@ # Date created: 6/5/1998 # Whom: n@nectar.com # -# $Id: Makefile,v 1.5 1998/09/14 19:23:42 markm Exp $ +# $Id: Makefile,v 1.6 1998/09/27 11:34:28 markm Exp $ # DISTNAME= krb5-1.0.5 @@ -154,8 +154,8 @@ do-fetch: pre-configure: ${RECONF_COOKIE} ${RECONF_COOKIE}: - @(cd ${WRKSRC}/util/autoconf && ./configure && gmake) - @(cd ${WRKSRC} && ./util/reconf --force) + ${SETENV} PORTOBJFORMAT="${PORTOBJFORMAT}" \ + ${SH} -c 'cd ${WRKSRC}/util/autoconf && ./configure && ${GMAKE} && cd ${WRKSRC} && ./util/reconf --force' ${TOUCH} ${RECONF_COOKIE} post-build: @@ -168,7 +168,7 @@ post-install: # it, I think. @rm -f ${PREFIX}/man/man1/tmac.doc # shared libs - ${LDCONFIG} -m ${PREFIX}/lib + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib # html documentation .if defined(WANT_HTML) && ${WANT_HTML} == "YES" @${MKDIR} ${PREFIX}/share/doc/krb5 @@ -191,5 +191,12 @@ post-install: .for info in ${INFO_FILES:M*.info} install-info ${PREFIX}/info/${info} ${PREFIX}/info/dir .endfor +# fixup packing list (no libs without version numbers in aout case) + @if test "${PORTOBJFORMAT}" = "aout"; then \ + ${ECHO_MSG} "Fixing packing list for a.out"; \ + ${MV} ${TMPPLIST} ${TMPPLIST}.new; \ + ${GREP} -v '\.so$$' ${TMPPLIST}.new > ${TMPPLIST}; \ + ${RM} ${TMPPLIST}.new; \ + fi .include -- cgit v1.2.3