diff options
author | edwin <edwin@FreeBSD.org> | 2006-04-14 14:07:45 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2006-04-14 14:07:45 +0800 |
commit | 0457bd39403aca16611fd17bca415e442cbc0de9 (patch) | |
tree | cd6620b18eb16e74a2651cd7cfae1b65ee311134 | |
parent | fd3e2c2dfd361ba9e2775ee9a4a50172c1d2e3f6 (diff) | |
download | freebsd-ports-gnome-0457bd39403aca16611fd17bca415e442cbc0de9.tar.gz freebsd-ports-gnome-0457bd39403aca16611fd17bca415e442cbc0de9.tar.zst freebsd-ports-gnome-0457bd39403aca16611fd17bca415e442cbc0de9.zip |
[PATCH] www/links: OPTIONify
Add OPTIONS support.
Drop USE_REINPLACE while here
PR: ports/92907
Submitted by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
Approved by: maintainer timeout
-rw-r--r-- | www/links/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/www/links/Makefile b/www/links/Makefile index 8e471258d5cc..4800576675dc 100644 --- a/www/links/Makefile +++ b/www/links/Makefile @@ -22,7 +22,9 @@ LDFLAGS+= -L${LOCALBASE}/lib 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 @@ LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib \ 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 @@ LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png \ 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 |