BSD Ports

devel/gengetopt 2.23.1 FreeBSD

Tool for generating a C function which parses command line arguments

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
105a68531d
License
GPLv3+
Categories
devel
Package size
213.1 KiB, 1045.2 KiB installed

Description

This program generate a C function that uses getopt_long function to parse the command line options, validate them and fill 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. For standards about short and long options you may want to take a look at the GNU Coding Standards.

In the other systems

SystemPortVersion
FreeBSDdevel/gengetopt2.23.1
OpenBSDdevel/gengetopt2.23.1
NetBSDdevel/gengetopt2.22.6
DragonFlydevel/gengetopt2.23_1
MidnightBSDdevel/gengetopt2.23_1
HardenedBSDdevel/gengetopt2.23.1
GhostBSDdevel/gengetopt2.23_1

Install

Binary package:

pkg install gengetopt

From the ports tree:

cd /usr/ports/devel/gengetopt/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	gengetopt>0:devel/gengetopt

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.23.12.23.12.232.23_12.23.1
FreeBSD:14:quarterly2.23.12.23.1n/a2.23_12.23.1
FreeBSD:15:latest2.23.12.23.1n/a2.23_12.23_1
FreeBSD:15:quarterly2.23.12.23.1n/an/an/a
FreeBSD:16:latest2.23.12.23.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 9
Run dependencies 1

Configuration

Options name: devel_gengetopt

OptionDefaultDescription
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
USES
makeinfo tar:xz
Service scripts
none

Files

Manual pages 1
  • gengetopt(1)
pkg-plist 5
  • bin/gengetopt
  • share/man/man1/gengetopt.1.gz
  • share/gengetopt/getopt.c
  • share/gengetopt/getopt1.c
  • share/gengetopt/gnugetopt.h
distinfo 1
FileSizeSHA256
gengetopt-2.23.1.tar.xz6607403b9def48422bd45f78af95936200b7f9287369a3db76c4907c42fe10f4922ab6
Master sites 1
  • GNU

Commit history 1

DateCommitCreditsLog message
105a68531d Muhammad Moinur Rahman devel/gengetopt: Update version 2.23=>2.23.1
Changelog: https://cgit.git.savannah.gnu.org/cgit/gengetopt.git/tree/NEWS