summaryrefslogtreecommitdiff
path: root/devel/libgetopt
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-29 05:43:28 +0000
committerjlam <jlam>2004-03-29 05:43:28 +0000
commitbdc005d46035e154e9ab9ada79f502e80e17e643 (patch)
tree2684bb3d4a41538be1b78668954f44c69a49033d /devel/libgetopt
parentcd3720af313224c26d5eacfaeb6f053262932c5b (diff)
downloadpkgsrc-bdc005d46035e154e9ab9ada79f502e80e17e643.tar.gz
Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links) use the new format correctly.
Diffstat (limited to 'devel/libgetopt')
-rw-r--r--devel/libgetopt/builtin.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/devel/libgetopt/builtin.mk b/devel/libgetopt/builtin.mk
index 74615cdb8be..7c43be9e1c5 100644
--- a/devel/libgetopt/builtin.mk
+++ b/devel/libgetopt/builtin.mk
@@ -1,19 +1,17 @@
-# $NetBSD: builtin.mk,v 1.1 2004/03/10 17:57:14 jlam Exp $
+# $NetBSD: builtin.mk,v 1.2 2004/03/29 05:43:30 jlam Exp $
.if !defined(IS_BUILTIN.getopt)
IS_BUILTIN.getopt= no
. if exists(/usr/include/getopt.h)
IS_BUILTIN.getopt= yes
. endif
-.endif
-
-CHECK_BUILTIN.getopt?= no
-.if !empty(CHECK_BUILTIN.getopt:M[yY][eE][sS])
-USE_BUILTIN.getopt= yes
-.endif
+.endif # IS_BUILTIN.getopt
USE_BUILTIN.getopt?= ${IS_BUILTIN.getopt}
+CHECK_BUILTIN.getopt?= no
+.if !empty(CHECK_BUILTIN.getopt:M[nN][oO])
+
.if !empty(USE_BUILTIN.getopt:M[nN][oO])
LIBGETOPT= -lgetopt
.else
@@ -24,3 +22,5 @@ BUILDLINK_LDADD.getopt?= ${LIBGETOPT}
CONFIGURE_ENV+= LIBGETOPT="${LIBGETOPT}"
MAKE_ENV+= LIBGETOPT="${LIBGETOPT}"
+
+.endif # CHECK_BUILTIN.getopt