Date: Tue, 16 Sep 2003 10:45:53 +0300 From: Peter Pentchev <roam@ringlet.net> To: Luigi Rizzo <rizzo@icir.org> Cc: net@freebsd.org Subject: Re: trafshow and libslang Message-ID: <20030916074553.GN397@straylight.oblivion.bg> In-Reply-To: <20030916002808.A5624@xorpc.icir.org> References: <20030916002808.A5624@xorpc.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--TU+u6i6jrDPzmlWF Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 16, 2003 at 12:28:08AM -0700, Luigi Rizzo wrote: > hi, > there seems to be no way to build trafshow without slang -- even > if the port's Makefile tries to remove slang from LIB_DEPENDS if > you set WITHOUT_TRAFSHOW_SLANG, config will detect the library and > use it anyways. >=20 > Does anyone have ideas on how to convince config to stick to ncurses > instead (i am not fond of slang, and anyways it's an additional > library that i do not need to carry in picobsd configs) Unfortunately, as you've found out yourself, trafshow's configure script does not provide for disabling slang. The attached patch to the port should be fine for a quick workaround, and I might try to fix up the configure script itself to add a --enable/disable-slang option later. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I were you, who would be reading this sentence? Index: ports/net/trafshow/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/net/trafshow/Makefile,v retrieving revision 1.25 diff -u -r1.25 Makefile --- ports/net/trafshow/Makefile 29 Jun 2003 16:54:55 -0000 1.25 +++ ports/net/trafshow/Makefile 16 Sep 2003 07:40:59 -0000 @@ -22,6 +22,7 @@ (exists(${LOCALBASE}/lib/libslang.a) && !defined(WITHOUT_TRAFSHOW_SLAN= G)) LIB_DEPENDS=3D slang.1:${PORTSDIR}/devel/libslang .else +BREAK_SLANG=3D yes .if ${OSVERSION} < 400010 LIB_DEPENDS=3D ncurses.5:${PORTSDIR}/devel/ncurses .endif @@ -37,6 +38,9 @@ =20 post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c +.if defined(BREAK_SLANG) + ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/configure-noslang.patch +.endif =20 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin Index: ports/net/trafshow/files/configure-noslang.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: ports/net/trafshow/files/configure-noslang.patch diff -N ports/net/trafshow/files/configure-noslang.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/trafshow/files/configure-noslang.patch 16 Sep 2003 07:36:50 -= 0000 @@ -0,0 +1,10 @@ +--- configure.old Tue Sep 16 10:36:10 2003 ++++ configure Tue Sep 16 10:36:20 2003 +@@ -1510,6 +1510,7 @@ + LIBS=3D"-lslang $ac_cv_save_LIBS" + cat > conftest.$ac_ext <<EOF + #line 1513 "configure" ++break this program :) + #include "confdefs.h" + #include <slcurses.h> + int main() { --TU+u6i6jrDPzmlWF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/Zr+x7Ri2jRYZRVMRAigZAKCg2sHcXd2wkpd/03z1ugGo4BOQgACgtzoE wtwFmJdlXhYf2owRPFzOXcg= =lVLY -----END PGP SIGNATURE----- --TU+u6i6jrDPzmlWF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030916074553.GN397>