add popt port

--
This is the popt command line option parsing library. While it is similiar
to getopt(3), it contains a number of enhancements, including:

        1) popt is fully reentrant
        2) popt can parse arbitrary argv[] style arrays while
           getopt(2) makes this quite difficult
        3) popt allows users to alias command line arguments
        4) popt provides convience functions for parsing strings
           into argv[] style arrays
This commit is contained in:
brad 2000-09-10 08:28:55 +00:00
parent bea86ddfca
commit beb3ed7ca6
9 changed files with 121 additions and 0 deletions

24
devel/popt/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/09/10 08:28:55 brad Exp $
DISTNAME= popt-1.5
CATEGORIES= devel
NEED_VERSION= 1.320
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/
LIB_DEPENDS= intl.1::devel/gettext
MAINTAINER= ports@openbsd.org
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

3
devel/popt/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (popt-1.5.tar.gz) = 13f88aa5db9fa21aa164afdec9c7cfea
RMD160 (popt-1.5.tar.gz) = e783a287152cea500cd5036876fa062b4517f947
SHA1 (popt-1.5.tar.gz) = 2f6b976512226ce89e08bbf4cc4ea154381a1bb4

View File

@ -0,0 +1,11 @@
--- configure.orig Sun Sep 10 04:18:57 2000
+++ configure Sun Sep 10 04:19:19 2000
@@ -3678,7 +3678,7 @@
cat conftest.$ac_ext >&5
rm -rf conftest*
CATOBJEXT=.mo
- DATADIRNAME=lib
+ DATADIRNAME=share
fi
rm -f conftest*
INSTOBJEXT=.mo

View File

@ -0,0 +1,10 @@
--- ltconfig.orig Sun Sep 10 03:56:20 2000
+++ ltconfig Sun Sep 10 03:56:42 2000
@@ -2004,6 +2004,7 @@
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,52 @@
--- ltmain.sh.orig Sun Sep 10 03:56:49 2000
+++ ltmain.sh Sun Sep 10 03:57:02 2000
@@ -2619,7 +2619,7 @@
# linked before any other PIC object. But we must not use
# pic_flag when linking with -static. The problem exists in
# FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
- *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
case "$compile_command " in
*" -static "*) ;;
*) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
@@ -3555,40 +3555,6 @@
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

1
devel/popt/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
getopt(3) like library with a number of enhancements

9
devel/popt/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
This is the popt command line option parsing library. While it is similiar
to getopt(3), it contains a number of enhancements, including:
1) popt is fully reentrant
2) popt can parse arbitrary argv[] style arrays while
getopt(2) makes this quite difficult
3) popt allows users to alias command line arguments
4) popt provides convience functions for parsing strings
into argv[] style arrays

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2000/09/10 08:28:56 brad Exp $
lib/libpopt.so.0.0
DYNLIBDIR(%B)

8
devel/popt/pkg/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/09/10 08:28:56 brad Exp $
include/popt.h
lib/libpopt.a
lib/libpopt.la
%%SHARED%%
man/man3/popt.3
share/locale/sk/LC_MESSAGES/popt.mo
share/locale/ro/LC_MESSAGES/popt.mo