aboutsummaryrefslogtreecommitdiffstats
path: root/editors/hte
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-07-11 13:17:09 +0800
committerdaichi <daichi@FreeBSD.org>2003-07-11 13:17:09 +0800
commitfbd7ed45c48fa53a7e2e38e9765bf2a595606d79 (patch)
tree18a34086d00a9a6f75768cd486ce03802b5b81cd /editors/hte
parentc8ad376ce7595499ce253546bc5503a26a0319e2 (diff)
downloadfreebsd-ports-gnome-fbd7ed45c48fa53a7e2e38e9765bf2a595606d79.tar.gz
freebsd-ports-gnome-fbd7ed45c48fa53a7e2e38e9765bf2a595606d79.tar.zst
freebsd-ports-gnome-fbd7ed45c48fa53a7e2e38e9765bf2a595606d79.zip
update editors/hte: Add WITHOUT_X11 knob
PR: 54323 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'editors/hte')
-rw-r--r--editors/hte/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/editors/hte/Makefile b/editors/hte/Makefile
index 97ce6f54d1e3..5167a7624294 100644
--- a/editors/hte/Makefile
+++ b/editors/hte/Makefile
@@ -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: