From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 19 03:20:03 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56CB710658DB for ; Thu, 19 Jun 2008 03:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2AC8FC14 for ; Thu, 19 Jun 2008 03:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5J3K1NV005221 for ; Thu, 19 Jun 2008 03:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5J3K15G005220; Thu, 19 Jun 2008 03:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 19 Jun 2008 03:20:01 GMT Resent-Message-Id: <200806190320.m5J3K15G005220@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0C8010656D6 for ; Thu, 19 Jun 2008 03:12:23 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 06F2C8FC0A for ; Thu, 19 Jun 2008 03:12:22 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=hive.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1K9Agb-000HlX-99 for FreeBSD-gnats-submit@freebsd.org; Thu, 19 Jun 2008 07:19:45 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 691AD8642 for ; Thu, 19 Jun 2008 07:11:04 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id BBF051702D; Thu, 19 Jun 2008 07:12:40 +0400 (MSD) Message-Id: <20080619031240.BBF051702D@hades.panopticon> Date: Thu, 19 Jun 2008 07:12:40 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/124742: [PATCH] graphics/ogre3d: make demos compilation optional, disabled by default X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2008 03:20:08 -0000 >Number: 124742 >Category: ports >Synopsis: [PATCH] graphics/ogre3d: make demos compilation optional, disabled by default >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 19 03:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 7.0-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Apr 25 11:18:45 MSD 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: * Make samples compilation optional and disabled by default, as samples are not installed and useful only for developers * Don't add -NDEBUG to CPPFLAGS in case of ogre3d is compiled with WITH_DEBUG flag >How-To-Repeat: >Fix: --- ogre3d.patch begins here --- diff -ruN ogre3d.orig/Makefile ogre3d/Makefile --- ogre3d.orig/Makefile 2008-06-19 06:22:10.000000000 +0400 +++ ogre3d/Makefile 2008-06-19 06:24:48.000000000 +0400 @@ -23,11 +23,11 @@ WRKSRC= ${WRKDIR}/ogre CONFIGURE_ARGS= --disable-cg --program-transform-name= --enable-static \ --with-cppunit-prefix=/nonexistent --disable-freeimage -CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -DNDEBUG" \ - ZZIPLIB_CFLAGS="-I${LOCALBASE}/include" \ +CONFIGURE_ENV+= ZZIPLIB_CFLAGS="-I${LOCALBASE}/include" \ ZZIPLIB_LIBS="-L${LOCALBASE}/lib -lzzip" -OPTIONS= GTK "Use GTK instead of Xt gui" off +OPTIONS= GTK "Use GTK instead of Xt gui" off \ + DEMOS "Build OGRE demos" off GNU_CONFIGURE= YES USE_AUTOTOOLS= libtool:15 @@ -40,6 +40,16 @@ .include +.if !defined(WITH_DEBUG) +CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -DNDEBUG" +.else +CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include" +.endif + +.if !defined(WITH_DEMOS) +CONGIGURE_ARGS+= --disable-ogre-demos +.endif + .if defined(WITH_GTK) USE_GNOME+= gtk20 CONFIGURE_ARGS+=--with-gui=gtk --- ogre3d.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: