add pcre flavour, rework MAKE_{CCARGS,AUXLIBS}

This commit is contained in:
jakob 2000-10-05 21:13:23 +00:00
parent 4263003c99
commit 2419cdbca9

View File

@ -1,22 +1,25 @@
# $OpenBSD: Makefile,v 1.2 2000/10/05 19:42:23 jakob Exp $
# $OpenBSD: Makefile,v 1.3 2000/10/05 21:13:23 jakob Exp $
DISTNAME= snapshot-20001005
PKGNAME= postfix-${DISTNAME}
MASTER_SITE_SUBDIR= experimental
FLAVORS= pcre sasl
FLAVOR?=
.if ${FLAVOR:L:Mpcre}
LIB_DEPENDS+= pcre::devel/pcre
FLAVORS= sasl
MAKE_CCARGS+= -I${PREFIX}/include -DHAS_PCRE
MAKE_AUXLIBS+= -L${PREFIX}/lib -lpcre
.endif
FLAVOR?=
.if ${FLAVOR:L:Msasl}
MAKE_FLAGS+= CCARGS="-DHAS_PCRE -I${PREFIX}/include -DUSE_SASL_AUTH -I${PREFIX}/include/sasl" \
AUXLIBS="-L${PREFIX}/lib -lpcre -lsasl -lkrb"
LIB_DEPENDS+= sasl::security/cyrus-sasl
.else
MAKE_FLAGS+= CCARGS="-DHAS_PCRE -I${PREFIX}/include" \
AUXLIBS="-L${PREFIX}/lib -lpcre"
MAKE_CCARGS+= -DUSE_SASL_AUTH -I${PREFIX}/include/sasl
MAKE_AUXLIBS+= -lsasl -lkrb
.endif
.include <bsd.port.mk>