trafshow and libslang
Peter Pentchev
roam at ringlet.net
Tue Sep 16 00:45:58 PDT 2003
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.
>
> 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
--
Peter Pentchev roam at ringlet.net roam at sbnd.net roam at 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
===================================================================
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_SLANG))
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
.else
+BREAK_SLANG= yes
.if ${OSVERSION} < 400010
LIB_DEPENDS= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
@@ -37,6 +38,9 @@
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c
+.if defined(BREAK_SLANG)
+ ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/configure-noslang.patch
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
Index: ports/net/trafshow/files/configure-noslang.patch
===================================================================
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="-lslang $ac_cv_save_LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1513 "configure"
++break this program :)
+ #include "confdefs.h"
+ #include <slcurses.h>
+ int main() {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20030916/0c43b7e6/attachment.bin
More information about the freebsd-net
mailing list