From owner-freebsd-ports@FreeBSD.ORG Sun May 21 22:44:25 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71DFE16AF94 for ; Sun, 21 May 2006 22:44:25 +0000 (UTC) (envelope-from serge.gagnon@b2b2c.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA45243D53 for ; Sun, 21 May 2006 22:44:23 +0000 (GMT) (envelope-from serge.gagnon@b2b2c.ca) Received: from quenix2.dyndns.org ([66.131.244.21]) by VL-MH-MR002.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IZN00H0A0HYUH10@VL-MH-MR002.ip.videotron.ca> for freebsd-ports@freebsd.org; Sun, 21 May 2006 18:44:22 -0400 (EDT) Received: from quenix1 ([192.168.0.11] helo=quenix1.dyndns.org) by quenix2.dyndns.org with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Fhwes-0001h4-Gk for freebsd-ports@freebsd.org; Sun, 21 May 2006 18:44:22 -0400 Received: from localhost ([127.0.0.1] helo=quenix1.dyndns.org) by quenix1.dyndns.org with esmtp (Exim 4.61 (FreeBSD)) (envelope-from ) id 1Fhwes-000Cca-AE for freebsd-ports@freebsd.org; Sun, 21 May 2006 18:44:22 -0400 X-URL: http://quenix2.dyndns.org:8080/ Date: Sun, 21 May 2006 18:44:22 -0400 From: serge.gagnon@b2b2c.ca (Serge Gagnon) X-Face: 22hG-S23Un!fw[I:kZ_K7I+f60+dloy!5F:r?K6cz<'"^"PLy1GDD@PRPqG%TAIgFsdu0~6PSZaVqf+|36?En?&l+XNZnp:f-%c#&a=)Ho7qey#PYD+X~> X'A`4n v*{d+t1b%fk>X1nJ?R}&en;\;kLrH MIME-version: 1.0 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Operating-System: FreeBSD 6.0-STABLE i386 X-Location: Quebec, Qc Canada lat 46deg 49'12" lon -71deg 13'48" X-Image-URL: http://quenix2.dyndns.org:8080/images/s.gagnon-48x48.gif X-Face-URL: http://quenix2.dyndns.org:8080/images/s.gagnon-48x48.gif Subject: Problem with a configure script in a new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 May 2006 22:44:42 -0000 Hi, I'm trying to port webcit-6.81 http://www.citadel.org/ and I got a problem with the configure script. This port needs devel/libical but the configure script failed to find ${LOCALBASE}/include/ical.h and ${LOCALBASE}/lib/libical*. configure --help tell me that this script handle --prefix= and --includedir=, so I put this in the Makefile as a start CONFIGURE_ARGS= --prefix=${PREFIX} \ --includedir=${LOCALBASE}/include/ \ --with-libical=yes but that doesn't works. I also tried to put the includedir directly hardcoded in the configure script, but it doesn't seems to handle its value itself... s|includedir='${prefix}/include'|includedir='/usr/local/include'| Someone suggest me, at https://uncensored.citadel.org/ in a citadel forum, to put some value in the CONFIGURE_ENV. That's what I did CONFIGURE_ENV+= ${CPPFLAGS}="${CPPFLAGS} -I${LOCALBASE}/include" ${LDFLAGS}="${L DFLAGS} -L${LOCALBASE}/lib" but it doesn't works. Anyway, I was sure that -I${LOCALBASE}/include was already in the CPPFLAGS when it calls from a port, think. The port can be build by putting this field in the Makefile: MAKE_ARGS= CFLAGS="${CFLAGS} -DHAVE_ICAL_H=1 -DHAVE_LIBICAL=1 -DHAVE_ICONV= 1 -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lical -liconv" but I don't think that is a "clean" way to build this port. I have a lot of difficulty to understand configure script and to patch it, but that's probably because I'm not a programmer. So, if the configure script is buggy and it doesn't handle properly --prefix and --includedir, I don't really know what you can suggest me, but in case that someone here have got something similar... and you're the best programmer on earth after all. ;) Thanks. -- GAGNON serge PGP KEY-ID: 0xBBC1478F PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777 Cvsdadm: Tool for CVSd pserver user administration http://quenix2.dyndns.org:8080/Unix-soft/cvsdadm.html