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

defined and use :U modifier as well.
- use proper PKGNAME when building a static binary.
This commit is contained in:
brad 1999-12-10 14:34:22 +00:00
parent be669ebe77
commit 4de22a4edf

View File

@ -1,7 +1,11 @@
# $OpenBSD: Makefile,v 1.14 1999/11/25 22:11:35 brad Exp $
# $OpenBSD: Makefile,v 1.15 1999/12/10 14:34:22 brad Exp $
DISTNAME= tcsh-6.09
.if defined(STATIC) && ${STATIC:U} == YES
PKGNAME= tcsh-6.09.00-static
.else
PKGNAME= tcsh-6.09.00
.endif
CATEGORIES= shells
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/
@ -9,10 +13,9 @@ MAINTAINER= brad@openbsd.org
GNU_CONFIGURE= yes
# invoke with -DSTATIC to build a static binary
.if defined(STATIC)
# invoke make with STATIC=yes to build a static binary
.if defined(STATIC) && ${STATIC:U} == YES
CONFIGURE_ENV+= LDFLAGS=-static
PKGNAME= ${DISTNAME}-static
.endif
ALL_TARGET= all catalogs