summaryrefslogtreecommitdiff
path: root/devel/libgetopt/Makefile.getopt
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libgetopt/Makefile.getopt')
-rw-r--r--devel/libgetopt/Makefile.getopt34
1 files changed, 0 insertions, 34 deletions
diff --git a/devel/libgetopt/Makefile.getopt b/devel/libgetopt/Makefile.getopt
deleted file mode 100644
index 928f131037f..00000000000
--- a/devel/libgetopt/Makefile.getopt
+++ /dev/null
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile.getopt,v 1.3 2001/05/22 16:45:38 jlam Exp $
-#
-# This Makefile fragment is included by packages that use getopt_long().
-#
-# If getopt_long() is not present in the base system, then a dependency
-# on devel/libgetopt is added, and the appropriate headers are linked
-# into ${WRKINCDIR} (${WRKSRC}/include).
-#
-# To use this Makefile, simply include this Makefile fragment in the
-# package Makefile, optionally define WRKINCDIR, add
-# link-getopt-headers to the prerequisite targets for pre-configure,
-# and add ${WRKINCDIR} to the compiler's header search path.
-
-.if exists(/usr/include/getopt.h)
-GETOPT_H= /usr/include/getopt.h
-.else
-GETOPT_H= ${LOCALBASE}/include/getopt.h
-DEPENDS+= libgetopt>=1.3:../../devel/libgetopt
-.if defined(GNU_CONFIGURE)
-CONFIGURE_ENV+= LIBS="${LIBS}"
-LIBS+= -lgetopt
-.endif
-.endif
-
-WRKINCDIR?= ${WRKDIR}/include
-
-# This target links the getopt header into ${WRKINCDIR}, which should be
-# searched first by the C preprocessor.
-#
-link-getopt-headers:
- @${ECHO} "Linking getopt headers into ${WRKINCDIR}."
- @${MKDIR} -p ${WRKINCDIR}
- @${RM} -f ${WRKINCDIR}/getopt.h
- @${LN} -sf ${GETOPT_H} ${WRKINCDIR}