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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/gengetopt | 2.23.1 |
| OpenBSD | devel/gengetopt | 2.23.1 |
| NetBSD | devel/gengetopt | 2.22.6 |
| DragonFly | devel/gengetopt | 2.23_1 |
| MidnightBSD | devel/gengetopt | 2.23_1 |
| HardenedBSD | devel/gengetopt | 2.23.1 |
| GhostBSD | devel/gengetopt | 2.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.23.1 | 2.23.1 | 2.23 | 2.23_1 | 2.23.1 |
| FreeBSD:14:quarterly | 2.23.1 | 2.23.1 | n/a | 2.23_1 | 2.23.1 |
| FreeBSD:15:latest | 2.23.1 | 2.23.1 | n/a | 2.23_1 | 2.23_1 |
| FreeBSD:15:quarterly | 2.23.1 | 2.23.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.23.1 | 2.23.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| EXAMPLES | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| gengetopt-2.23.1.tar.xz | 660740 | 3b9def48422bd45f78af95936200b7f9287369a3db76c4907c42fe10f4922ab6 |
Master sites 1
- GNU