26aa0848b4
This program generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct . Thus your program can now handle options such as: myprog --input foo.c -o foo.o --no-tabs -i 100 *.class And both long options (those that start with --) and short options (start with - and consist of only one character) can be handled. Gengetopt can also generate a function to save the command line options into a file, and a function to read the command line options from a file. Of course, these two kinds of files are compliant.
20 lines
483 B
Makefile
20 lines
483 B
Makefile
# $NetBSD: Makefile,v 1.1 2013/10/23 17:41:57 wiz Exp $
|
|
|
|
DISTNAME= gengetopt-2.22.6
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gengetopt/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/gengetopt/
|
|
COMMENT= Command line parser generator
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
# complains about missing ../src/somelibrary.la
|
|
MAKE_JOBS_SAFE= no
|
|
INFO_FILES= yes
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|