1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

add argtable 2.2

An ANSI C library for parsing GNU style command line arguments
This commit is contained in:
Ying-Chieh Liao 2003-12-17 02:53:52 +00:00
parent 57b1861029
commit 2de43035f1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96002
6 changed files with 71 additions and 0 deletions

View File

@ -30,6 +30,7 @@
SUBDIR += apr
SUBDIR += arch
SUBDIR += argouml
SUBDIR += argtable
SUBDIR += arm-aout-binutils
SUBDIR += arm-elf-binutils
SUBDIR += arm-elf-gcc295

28
devel/argtable/Makefile Normal file
View File

@ -0,0 +1,28 @@
# ex:ts=8
# Ports collection makefile for: argtable
# Date created: Dec 17, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= argtable
PORTVERSION= 2.2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= An ANSI C library for parsing GNU style command line arguments
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext
USE_GETOPT_LONG= yes
WRKSRC= ${WRKDIR}/argtable2
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN3= argtable2.3
.include <bsd.port.mk>

1
devel/argtable/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (argtable-2.2.tar.gz) = 35b8948c9f4b81bb4b46dbd2b863e1b6

View File

@ -0,0 +1,13 @@
--- Makefile.in.orig Wed Dec 17 10:51:08 2003
+++ Makefile.in Wed Dec 17 10:51:31 2003
@@ -34,8 +34,8 @@
incldir = $(prefix)/include
libdir = $(prefix)/lib
mandir = $(prefix)/man/man3
-docdir = $(prefix)/share/doc/argtable-2.x
-exmdir = $(prefix)/share/doc/argtable-2.x/example
+docdir = $(prefix)/share/doc/argtable
+exmdir = $(prefix)/share/examples/argtable
all:

11
devel/argtable/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
Parsing a program's command line arguments has always been a distraction from
the main programming task at hand. The argtable library simplifies the job by
enabling the programmer to define the command line options directly in the
source code as a static array of structs and then pass that array to argtable
library functions which parse the command line accordingly. The values
extracted from the comand line are deposited directly into user-defined program
variables where they can be accessed by the main program. Argtable can also
generate descriptions of the command line syntax from that same array for
display as on-line help.
WWW: http://argtable.sourceforge.net/

17
devel/argtable/pkg-plist Normal file
View File

@ -0,0 +1,17 @@
include/argtable2.h
lib/libargtable2.a
%%DOCSDIR%%/argtable2-intro.html
%%DOCSDIR%%/argtable2-intro.pdf
%%DOCSDIR%%/argtable2-intro.ps
%%DOCSDIR%%/argtable2.html
%%DOCSDIR%%/argtable2.pdf
%%DOCSDIR%%/argtable2.ps
@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/Makefile
%%EXAMPLESDIR%%/echo.c
%%EXAMPLESDIR%%/ls.c
%%EXAMPLESDIR%%/mv.c
%%EXAMPLESDIR%%/myprog.c
%%EXAMPLESDIR%%/rm.c
%%EXAMPLESDIR%%/uname.c
@dirrm %%EXAMPLESDIR%%