Date: Fri, 20 Oct 2000 08:18:19 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "James Housley" <jim@thehousleys.net> Cc: "FreeBSD-Ports" <ports@FreeBSD.ORG> Subject: Re: New bsd.apache.mk Message-ID: <001001c03a98$38334ce0$7d7885c0@genroco.com> References: <200010200259.VAA00433@wbiw01.westbend.net> <39F0361E.E5C46A56@thehousleys.net>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "James Housley" <jim@thehousleys.net> > "Scot W. Hetzel" wrote: > > +# check if an existing Apache port is installed in ${PREFIX} > > +.if exists(${APXS}) > > +APXS_WORKS!= ${APXS} -q TARGET 2>/dev/null || echo no > > +.endif > > +.if exists(${APXS}) && ${APXS_WORKS} != no > > +.if !defined(_AP_PATHS) > > +_AP_PATHS!= ${APXS} -q TARGET PREFIX SBINDIR INCLUDEDIR LIBEXECDIR SYSCONFDIR | \ > > + /usr/bin/awk '{print "TARGET" $$1 " PREFIX" $$2 " SBINDIR" $$3 " INCLUDEDIR" $$4 " LIBEXECDIR" $$5 " SYSCONFDIR" $$6 }' > > +.endif > > + > > +AP_TARGET= ${_AP_PATHS:MTARGET*:S/^TARGET//} > > +AP_PREFIX= ${_AP_PATHS:MPREFIX*:S/^PREFIX//} > > +AP_SBINDIR= ${_AP_PATHS:MSBINDIR*:S/^SBINDIR//} > > +AP_INCLUDE= ${_AP_PATHS:MINCLUDEDIR*:S/^INCLUDEDIR//} > > +AP_LIBEXEC= ${_AP_PATHS:MLIBEXECDIR*:S/^LIBEXECDIR//} > > +AP_SYSCONF= ${_AP_PATHS:MSYSCONFDIR*:S/^SYSCONFDIR//} > > + > > I am probably wrong, but shouldn't those be AP_TARGET?= and not > AP_TARGET= ??? > You want to use the values returned from APXS, as it has the correct values defined for TARGET compiled into it. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c03a98$38334ce0$7d7885c0>