From 8ff906eb42be3794e0aedcb5111999e5a1da3ccf Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Sun, 27 Sep 2009 12:54:38 +0000 Subject: [PATCH] Fix automated lzo2 linking - use OPTIONs instead. Approved by: miwi (mentor) Feature safe: yes --- editors/hte/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/editors/hte/Makefile b/editors/hte/Makefile index 2857d887e8e9..09f0f6ea8d24 100644 --- a/editors/hte/Makefile +++ b/editors/hte/Makefile @@ -20,15 +20,23 @@ GNU_CONFIGURE= yes PLIST_FILES= bin/ht +OPTIONS= LZO2 "Enable external lzo2 compresssion support" off + .include .if ${ARCH} == "ia64" BROKEN= Does not build on ia64 .endif +.if defined(WITH_LZO2) +LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2 +.else +CONFIGURE_ARGS= --with-included-lzo +.endif + .if defined(WITHOUT_X11) PKGNAMESUFFIX= -nox11 -CONFIGURE_ARGS=--disable-x11-textmode +CONFIGURE_ARGS+=--disable-x11-textmode .else USE_XORG= x11 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"