Bug 76256 - The configure script of sysutils/torsmo does not find Xlib.h and Xdbe.h
Summary: The configure script of sysutils/torsmo does not find Xlib.h and Xdbe.h
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-14 21:00 UTC by Boris Kotzev
Modified: 2005-01-15 20:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Kotzev 2005-01-14 21:00:54 UTC
It seems that the configure script is looking for the header files X11/Xlib.h and X11/extensions/Xdbe.h in /usr/include instead of /usr/X11R6/include. Consequently, the compiled torsmo binary does not recognize the option "double_buffer yes" in .torsmorc:

torsmo: /home/boko/.torsmorc: 35: no such configuration: 'double_buffer'

Fix: 

Add the line

CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include"

to /usr/ports/sysutils/torsmo/Makefile.
How-To-Repeat: cd /usr/ports/sysutils/torsmo
make configure

Then look for the lines:

checking for X11/Xlib.h... no
checking for X11/extensions/Xdbe.h... no
Comment 1 Roman Bogorodskiy 2005-01-15 13:03:19 UTC
You're right, thanks!

Among these changes I've also included some new knobs and bumped
PORTREVISION (patch attached).

-Roman Bogorodskiy
Comment 2 Roman Bogorodskiy 2005-01-15 19:38:56 UTC
diff -ru torsmo.orig/Makefile torsmo/Makefile
--- torsmo.orig/Makefile	Sat Jan 15 15:35:21 2005
+++ torsmo/Makefile	Sat Jan 15 15:53:01 2005
@@ -7,7 +7,7 @@
=20
 PORTNAME=3D	torsmo
 PORTVERSION=3D	0.18
-PORTREVISION=3D	2
+PORTREVISION=3D	3
 CATEGORIES=3D	sysutils
 MASTER_SITES=3D	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=3D	${PORTNAME}
@@ -16,6 +16,7 @@
 COMMENT=3D	System monitor that renders text on desktop
=20
 GNU_CONFIGURE=3D	yes
+CONFIGURE_ENV=3D	CPPFLAGS=3D"-I${X11BASE}/include"
 USE_X_PREFIX=3D	yes
 MAN1=3D		torsmo.1
=20
@@ -24,13 +25,23 @@
 PLIST_DIRS=3D	%%EXAMPLESDIR%%
 PORTDOCS=3D	AUTHORS ChangeLog NEWS README
=20
-OPTIONS=3D	XFT "Enable XFT support" on
+OPTIONS=3D	XFT "XFT support" on \
+		OWN_WINDOW "Ccreating own window support" on \
+		DOUBLE_BUFFER "Flicker-free operation support" on
=20
 .include <bsd.port.pre.mk>
=20
 .if defined(WITH_XFT)
 LIB_DEPENDS+=3D		Xft.2:${PORTSDIR}/x11-fonts/libXft
 CONFIGURE_ARGS+=3D	--enable-xft
+.endif
+
+.if !defined(WITH_OWN_WINDOW)
+CONFIGURE_ARGS+=3D	--disable-own-window
+.endif
+
+.if !defined(WITH_DOUBLE_BUFFER)
+CONFIGURE_ARGS+=3D	--disable-double-buffer
 .endif
=20
 post-install:
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-01-15 20:27:08 UTC
State Changed
From-To: open->closed

Maintainer's patch committed.