Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 15:00:01 -0700 (PDT)
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/30058: Update: audio/ecasound fails to detect properly audiofile
Message-ID:  <200108282200.f7SM01Y37428@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/30058; it has been noted by GNATS.

From: The Anarcat <anarcat@anarcat.dyndns.org>
To: Peter Pentchev <roam@ringlet.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/30058: Update: audio/ecasound fails to detect properly audiofile
Date: Tue, 28 Aug 2001 17:51:48 -0400

 --XStn23h1fwudRqtG
 Content-Type: multipart/mixed; boundary="zaRBsRFn0XYhEU69"
 Content-Disposition: inline
 
 
 --zaRBsRFn0XYhEU69
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 > When GNU configure scripts check for include files, they usually only
 > invoke gcc -E, not a full compiler.  In that case, only the preprocessor
 > is invoked, and it does not honor CFLAGS.
 >=20
 > Try setting CPPFLAGS, as in mail/fetchmail/Makefile.
 >=20
 > Also, I believe you might need to modify the MAKE_ENV, too, though most
 > GNU configure scripts pass CFLAGS, CPPFLAGS and the rest properly.
 
 Ok, the attached patch modifies MAKE_ENV and adds CPPFLAGS. It also uses
 LOCAL_BASE instead of /usr/local.
 
 I think it works. I haven't finished recompiling it yet (it does take a
 while here...), but the -I/usr/local/include flags are passed properly,
 so I think everything is fine, for audiofile, that is. :)
 
 Note that the patch also disables pyecasound for real, which isn't done
 in the original port, and might lead to have stray py files around.
 
 Thanks for your help
 
 A.
 
 --zaRBsRFn0XYhEU69
 Content-Type: text/plain; charset=us-ascii
 Content-Description: final patch
 Content-Disposition: attachment; filename=patch
 Content-Transfer-Encoding: quoted-printable
 
 --- /usr/ports/audio/ecasound/Makefile	Fri Aug 24 14:36:01 2001
 +++ Makefile	Tue Aug 28 17:43:31 2001
 @@ -21,6 +21,9 @@
  USE_LIBTOOL=3D	yes
  INSTALLS_SHLIB=3D	yes
 =20
 +CONFIGURE_ARGS+=3D	--enable-sys-readline
 +MAKE_ENV+=3D      ${CONFIGURE_ENV}
 +
  .if defined(WITH_MPG123)
  RUN_DEPENDS+=3D	mpg123:${PORTSDIR}/audio/mpg123
  .endif
 @@ -34,6 +37,11 @@
  .endif
 =20
  .if defined(WITH_AUDIOFILE)
 +# very crappy hack to detect audiofile properly
 +CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include" \
 +                LDFLAGS=3D"-L${LOCALBASE}/lib" \
 +                CFLAGS=3D"-I${LOCALBASE}/include ${CFLAGS}" \
 +		CXXFLAGS=3D"-I${LOCALBASE}/include ${CXXFLAGS}"
  LIB_DEPENDS+=3D	audiofile.0:${PORTSDIR}/audio/libaudiofile
  .else
  CONFIGURE_ARGS+=3D	--disable-audiofile
 @@ -43,21 +51,19 @@
  #USE_PYTHON=3D	yes
  #PLIST_SUB+=3D	WITH_PYECASOUND=3D""
  #.else
 -#CONFIGURE_ARGS+=3D	--disable-pyecasound
 -#PLIST_SUB+=3D	WITH_PYECASOUND=3D"@comment "
 +CONFIGURE_ARGS+=3D	--disable-pyecasound
 +PLIST_SUB+=3D	WITH_PYECASOUND=3D"@comment "
  #.endif
 =20
  MAN1=3D		ecasound-iam.1 ecasound.1 ecatools.1
  MAN5=3D		ecasoundrc.5
 =20
 -#post-install:
  post-install:
  .if !defined(NOPORTDOCS)
  	${MKDIR} ${PREFIX}/share/doc/ecasound
  	${MKDIR} ${PREFIX}/share/doc/ecasound/programmers_guide
  	${MKDIR} ${PREFIX}/share/doc/ecasound/users_guide
 -	${INSTALL_MAN} ${WRKSRC}/Documentation/*.html \
 -		${WRKSRC}/Documentation/*.txt \
 +	${INSTALL_MAN} ${WRKSRC}/Documentation/*.html ${WRKSRC}/Documentation/*.t=
 xt \
  		${PREFIX}/share/doc/ecasound
  	${INSTALL_MAN} ${WRKSRC}/Documentation/programmers_guide/*.html \
  		${PREFIX}/share/doc/ecasound/programmers_guide
 
 --zaRBsRFn0XYhEU69--
 
 --XStn23h1fwudRqtG
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjuMEnMACgkQttcWHAnWiGesOgCeL3fnjA/wyMHHUpE30bYMR/h4
 bbcAn2s8IfXv9FAInpU61GQrguYiaMIB
 =8NmS
 -----END PGP SIGNATURE-----
 
 --XStn23h1fwudRqtG--

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?200108282200.f7SM01Y37428>