Date: Mon, 6 Feb 2006 20:26:24 +0200 From: "Ion-Mihai "IOnut" Tetcu" <itetcu@people.tecnik93.com> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/92907: [PATCH] www/links: OPTIONify Message-ID: <1139250384.96725@it.buh.cameradicommercio.ro> Resent-Message-ID: <200602061830.k16IUCiu018514@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 92907 >Category: ports >Synopsis: [PATCH] www/links: OPTIONify >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: Mon Feb 06 18:30:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ion-Mihai "IOnut" Tetcu >Release: FreeBSD 6.0-STABLE i386 >Organization: Tecnik'93 >Environment: System: FreeBSD 6.0-STABLE #10: Wed Jan 4 23:48:26 EET 2006 >Description: Add OPTIONS support. Drop USE_REINPLACE while here >How-To-Repeat: >Fix: --- links_Makefile.diff begins here --- diff -urN links.FPT/Makefile links/Makefile --- links.FPT/Makefile Mon Jan 23 12:18:52 2006 +++ links/Makefile Mon Feb 6 20:23:33 2006 @@ -22,7 +22,9 @@ USE_OPENSSL= yes USE_BZIP2= yes -USE_REINPLACE= yes + +OPTIONS= SVGALIB "non-X11 graphics support" off \ + X11 "X11 graphics support" on .include <bsd.port.pre.mk> @@ -32,8 +34,10 @@ jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff CONFIGURE_ARGS+= --enable-graphics +OPTIONS_MESG= "non-X11 graphics support enabled, " .else CONFIGURE_ARGS+= --without-svgalib +OPTIONS_MESG= "non-X11 graphics support disabled, " .endif .if !defined(WITHOUT_X11) @@ -42,16 +46,17 @@ tiff.4:${PORTSDIR}/graphics/tiff USE_XLIB= yes CONFIGURE_ARGS+= --enable-graphics --with-x +OPTIONS_MESG+= "X11 graphics support enabled." .else CONFIGURE_ARGS+= --without-x +OPTIONS_MESG+= "X11 graphics support disabled." .endif MAN1= links.1 PLIST_FILES= bin/links pre-everything:: - @${ECHO_MSG} "Use 'make -DWITH_SVGALIB' to enable svgalib (non-X11) graphics support." - @${ECHO_MSG} "Use 'make -DWITHOUT_X11' to disable X11 graphics support." + @${ECHO_MSG} ${OPTIONS_MESG} post-patch: @${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/default.c --- links_Makefile.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1139250384.96725>