Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 12:21:05 +0300 (MSK)
From:      "Lev A. Serbryakov" <lev@serebryakov.spb.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45960: Add WITHOUT_X11 knob to `games/angband' port
Message-ID:  <200212030921.gB39L5ti038519@ftp.translate.ru>

next in thread | raw e-mail | index | archive | help

>Number:         45960
>Category:       ports
>Synopsis:       Add WITHOUT_X11 knob to `games/angband' port
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 03 01:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lev A. Serbryakov
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD ftp.translate.ru 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 22 20:10:56 MSK 2002 lev@ftp.translate.ru:/usr/obj/usr/src/sys/FTPTR i386
Ports collection: 3 Dec 2002

>Description:

    Port `games/angabnd' is rogue-like game.
    It could work without X11 (via ncurses).
    This PR add ability to build port without X11 (WITHOUT_X11).
  
>How-To-Repeat:

>Fix:

diff -ruN angband.orig/Makefile angband/Makefile
--- angband.orig/Makefile	Tue Dec  3 12:01:06 2002
+++ angband/Makefile	Tue Dec  3 12:18:22 2002
@@ -14,8 +14,18 @@
 MAINTAINER=	mph@freebsd.org
 
 GNU_CONFIGURE=	yes
+.if !defined(WITHOUT_X11)
 USE_XLIB=	yes
-
 CONFIGURE_ARGS=	--with-setgid=games --with-x
+.else
+CONFIGURE_ARGS=	--with-setgid=games
+.endif
+
+pre-fetch:
+.if !defined(WITHOUT_X11)
+	@${ECHO_MSG} "You could define WITHOUT_X11, if you don't want X support"
+.else
+	@${ECHO_MSG} "Build without X support"
+.endif
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212030921.gB39L5ti038519>