update editors/hte: Add WITHOUT_X11 knob

PR:		54323
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
Daichi GOTO 2003-07-11 05:17:09 +00:00
parent b33c9b0472
commit d7224af8d2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84641

View file

@ -17,13 +17,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A file editor/viewer/analyzer for executables
USE_BZIP2= yes
USE_XLIB= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-release
CONFIGURE_ENV= CPPFLAGS+="-I${X11BASE}/include" \
LIBS+="-L${X11BASE}/lib"
.include <bsd.port.pre.mk>
@ -31,9 +29,18 @@ CONFIGURE_ENV= CPPFLAGS+="-I${X11BASE}/include" \
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
CONFIGURE_ARGS+= --disable-x11-textmode
.else
USE_XLIB= yes
CPPFLAGS= -I${X11BASE}/include
LDFLAGS= -L${X11BASE}/lib
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|$$FLAGS_PIPE $$FLAGS_ALL|$$CFLAGS|g' \
@${REINPLACE_CMD} -e 's|$$FLAGS_PIPE $$FLAGS_ALL|$$CFLAGS|g ; \
s|-L/usr/X11/lib -L/usr/X11R6/lib|$$LDFLAGS|g' \
${WRKSRC}/configure
post-install: