diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-11 05:17:09 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-11 05:17:09 +0000 |
commit | d7224af8d21b8954847020fd5dd71d64b47acdbf (patch) | |
tree | eb473034e0e32b6224479e34105e524e0e4eb9a0 /editors/hte/Makefile | |
parent | b33c9b0472aebc66f2bc357a4bcc8d4e188d34fb (diff) | |
download | ports-d7224af8d21b8954847020fd5dd71d64b47acdbf.tar.gz ports-d7224af8d21b8954847020fd5dd71d64b47acdbf.zip |
Notes
Diffstat (limited to 'editors/hte/Makefile')
-rw-r--r-- | editors/hte/Makefile | 17 |
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: |