From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 27 12:10:36 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8539016A4CE for ; Mon, 27 Dec 2004 12:10:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CD0943D3F for ; Mon, 27 Dec 2004 12:10:36 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBRCAaeo044704 for ; Mon, 27 Dec 2004 12:10:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBRCAan6044703; Mon, 27 Dec 2004 12:10:36 GMT (envelope-from gnats) Date: Mon, 27 Dec 2004 12:10:36 GMT Message-Id: <200412271210.iBRCAan6044703@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Guido Falsi Subject: Re: ports/75442: gnokii port does not include ical support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guido Falsi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 12:10:36 -0000 The following reply was made to PR ports/75442; it has been noted by GNATS. From: Guido Falsi To: Volker Stolz Cc: freebsd-gnats-submit@freebsd.org, sven@berkvens.net Subject: Re: ports/75442: gnokii port does not include ical support Date: Mon, 27 Dec 2004 13:09:43 +0100 On Mon, Dec 27, 2004 at 12:22:50PM +0100, Volker Stolz wrote: > Dear maintainer, please look into this issue! Here is a patch to the port. It fixes the problem and also automatically adds the dependency on ical library, or calls it with the new knob "WITH_ICAL", I took the idea from the mplayer port which has lots of such knobs. -- Guido Falsi diff -ruN gnokii.old/Makefile gnokii/Makefile --- gnokii.old/Makefile Mon Dec 27 12:45:36 2004 +++ gnokii/Makefile Mon Dec 27 13:04:06 2004 @@ -43,6 +43,14 @@ .include +.if exists(${LOCALBASE}/lib/libical.so.0) +WITH_ICAL= yes +.endif + +.if defined(WITH_ICAL) +LIB_DEPENDS+= ical.0:${PORTSDIR}/devel/libical +.endif + # If smsd is enabled check if MySQL or PostgreSQL are installed and # build the modules, no switches to make this port build those, if # you want them, just install them before this port. The port will diff -ruN gnokii.old/files/patch-configure gnokii/files/patch-configure --- gnokii.old/files/patch-configure Mon Dec 27 12:45:36 2004 +++ gnokii/files/patch-configure Mon Dec 27 12:49:07 2004 @@ -1,5 +1,5 @@ ---- configure.orig Mon Jul 5 00:04:50 2004 -+++ configure Tue Jul 6 12:56:33 2004 +--- configure.orig Sun Oct 17 21:44:38 2004 ++++ configure Mon Dec 27 12:48:43 2004 @@ -26348,13 +26348,15 @@ # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using @@ -30,3 +30,12 @@ *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac echo "$as_me:$LINENO: result: ${flag}" >&5 +@@ -27570,7 +27572,7 @@ + USE_LIBICAL="no" + OLD_LIBS="$LIBS" + OLD_CFLAGS="$CFLAGS" +-LIBS="$LIBS $ICAL_LIBS -lpthread -lical" ++LIBS="$LIBS $ICAL_LIBS -L/usr/local -pthread -lical" + CFLAGS="$CFLAGS $ICAL_CFLAGS" + echo "$as_me:$LINENO: checking whether libical is installed" >&5 + echo $ECHO_N "checking whether libical is installed... $ECHO_C" >&6