Fix automated lzo2 linking - use OPTIONs instead.

Approved by:	miwi (mentor)
Feature safe:	yes
This commit is contained in:
Marcus von Appen 2009-09-27 12:54:38 +00:00
parent fd262bb000
commit 8ff906eb42
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242165

View file

@ -20,15 +20,23 @@ GNU_CONFIGURE= yes
PLIST_FILES= bin/ht
OPTIONS= LZO2 "Enable external lzo2 compresssion support" off
.include <bsd.port.pre.mk>
.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"