Date: 16 May 2003 07:22:56 -0000 From: Sebastian Yepes <esn@x123.info> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/52311: [ADD MAKE ARGS]:: WITH_GTK And WITH_THREADS Message-ID: <20030516072256.53522.qmail@mail.x123.info> Resent-Message-ID: <200305160730.h4G7U9w9084853@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.mk> +.include <bsd.port.pre.mk> + + + + +.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 <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030516072256.53522.qmail>