From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 16 00:30:10 2003 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 936AF37B4A7 for ; Fri, 16 May 2003 00:30:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A604343FDD for ; Fri, 16 May 2003 00:30:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4G7U9Up084854 for ; Fri, 16 May 2003 00:30:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4G7U9w9084853; Fri, 16 May 2003 00:30:09 -0700 (PDT) Resent-Date: Fri, 16 May 2003 00:30:09 -0700 (PDT) Resent-Message-Id: <200305160730.h4G7U9w9084853@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, Sebastian Yepes Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC33A37B401 for ; Fri, 16 May 2003 00:23:04 -0700 (PDT) Received: from mail.x123.info (165.Red-80-37-224.pooles.rima-tde.net [80.37.224.165]) by mx1.FreeBSD.org (Postfix) with SMTP id 26EF543F75 for ; Fri, 16 May 2003 00:23:03 -0700 (PDT) (envelope-from esn@mail.x123.info) Received: (qmail 53523 invoked by uid 1000); 16 May 2003 07:22:56 -0000 Message-Id: <20030516072256.53522.qmail@mail.x123.info> Date: 16 May 2003 07:22:56 -0000 From: Sebastian Yepes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/52311: [ADD MAKE ARGS]:: WITH_GTK And WITH_THREADS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sebastian Yepes List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2003 07:30:10 -0000 >Number: 52311 >Category: ports >Synopsis: [ADD MAKE ARGS]:: WITH_GTK And WITH_THREADS >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 16 00:30:08 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Sebastian Yepes [ESN] >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD agosto 4.8-STABLE FreeBSD 4.8-STABLE #1: Wed Apr 30 18:51:45 GMT 2003 root@wire2:/usr/obj/usr/src/sys/MYK4 i386 >Description: Added the WITH_GTK & WITH_THREADS Args. to the Makefile >How-To-Repeat: >Fix: diff -ur unison.old/Makefile unison/Makefile --- unison.old/Makefile Fri Feb 21 14:15:06 2003 +++ unison/Makefile Fri May 16 09:07:57 2003 @@ -7,6 +7,7 @@ PORTNAME= unison PORTVERSION= 2.9.20 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/beta-test/unison-${PORTVERSION}/ DISTNAME= src @@ -20,9 +21,43 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_GMAKE= yes -MAKE_ARGS= UISTYLE=text CFLAGS="" +MAKE_ARGS= CFLAGS="" post-install: strip ${PREFIX}/bin/unison -.include +.include + + + + +.if defined(WITH_GTK) +BUILD_DEPENDS= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk +MAKE_ARGS+= UISTYLE=gtk +PLIST_SUB+= WITH_GTK="" +.else +MAKE_ARGS+= UISTYLE=text +PLIST_SUB+= WITH_GTK="@comment" +.endif + +.if defined(WITH_THREADS) +MAKE_ARGS+= THREADS=true +PLIST_SUB+= WITH_THREADS="" +.else +PLIST_SUB+= WITH_THREADS="@comment" +.endif + + +pre-everything:: +.if !defined(WITH_GTK) || !defined(WITH_THREADS) + @${ECHO_MSG} "You can specify the following command lines:" + @${ECHO_MSG} "" +.endif +.if !defined(WITH_GTK) + @${ECHO_MSG} "WITH_GTK=yes Build with the GTK GUI" +.endif +.if !defined(WITH_THREADS) + @${ECHO_MSG} "WITH_THREADS=yes Build with Thread support" +.endif + +.include >Release-Note: >Audit-Trail: >Unformatted: