check to make sure that STATIC is set to yes instead of just being defined

and use :U modifier as well.
This commit is contained in:
brad 1999-12-10 14:38:56 +00:00
parent 4de22a4edf
commit d5035ab0c8
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 1999/12/07 22:48:59 brad Exp $ # $OpenBSD: Makefile,v 1.9 1999/12/10 14:38:56 brad Exp $
DISTNAME= zsh-3.1.6 DISTNAME= zsh-3.1.6
CATEGORIES= shells CATEGORIES= shells
@ -16,10 +16,10 @@ MAINTAINER= ports@openbsd.org
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-zsh-mem --enable-zsh-secure-free --enable-dynamic CONFIGURE_ARGS= --enable-zsh-mem --enable-zsh-secure-free --enable-dynamic
# invoke with -DSTATIC to build a static binary # invoke make with STATIC=yes to build a static binary
.if defined(STATIC) .if defined(STATIC) && ${STATIC:U} == YES
CONFIGURE_ENV+= LDFLAGS=-static CONFIGURE_ENV+= LDFLAGS=-static
PKGNAME= ${DISTNAME}-static PKGNAME= ${DISTNAME}-static
.endif .endif
post-install: post-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 1999/12/07 23:06:52 brad Exp $ # $OpenBSD: Makefile,v 1.14 1999/12/10 14:38:56 brad Exp $
DISTNAME= zsh-3.0.7 DISTNAME= zsh-3.0.7
CATEGORIES= shells CATEGORIES= shells
@ -16,8 +16,8 @@ MAINTAINER= ports@openbsd.org
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-zsh-mem --enable-zsh-secure-free CONFIGURE_ARGS= --enable-zsh-mem --enable-zsh-secure-free
# invoke with -DSTATIC to build a static binary # invoke make with STATIC=yes to build a static binary
.if defined(STATIC) .if defined(STATIC) && ${STATIC:U} == YES
CONFIGURE_ENV+= LDFLAGS=-static CONFIGURE_ENV+= LDFLAGS=-static
PKGNAME= ${DISTNAME}-static PKGNAME= ${DISTNAME}-static
.endif .endif