From beb3ed7ca658f5149ffb9653c5fd54db489f5a5d Mon Sep 17 00:00:00 2001 From: brad Date: Sun, 10 Sep 2000 08:28:55 +0000 Subject: [PATCH] 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 --- devel/popt/Makefile | 24 ++++++++++++++ devel/popt/files/md5 | 3 ++ devel/popt/patches/patch-configure | 11 +++++++ devel/popt/patches/patch-ltconfig | 10 ++++++ devel/popt/patches/patch-ltmain.sh | 52 ++++++++++++++++++++++++++++++ devel/popt/pkg/COMMENT | 1 + devel/popt/pkg/DESCR | 9 ++++++ devel/popt/pkg/PFRAG.shared | 3 ++ devel/popt/pkg/PLIST | 8 +++++ 9 files changed, 121 insertions(+) create mode 100644 devel/popt/Makefile create mode 100644 devel/popt/files/md5 create mode 100644 devel/popt/patches/patch-configure create mode 100644 devel/popt/patches/patch-ltconfig create mode 100644 devel/popt/patches/patch-ltmain.sh create mode 100644 devel/popt/pkg/COMMENT create mode 100644 devel/popt/pkg/DESCR create mode 100644 devel/popt/pkg/PFRAG.shared create mode 100644 devel/popt/pkg/PLIST diff --git a/devel/popt/Makefile b/devel/popt/Makefile new file mode 100644 index 00000000000..e9858b525cc --- /dev/null +++ b/devel/popt/Makefile @@ -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 diff --git a/devel/popt/files/md5 b/devel/popt/files/md5 new file mode 100644 index 00000000000..50e32c79355 --- /dev/null +++ b/devel/popt/files/md5 @@ -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 diff --git a/devel/popt/patches/patch-configure b/devel/popt/patches/patch-configure new file mode 100644 index 00000000000..8918752ee2e --- /dev/null +++ b/devel/popt/patches/patch-configure @@ -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 diff --git a/devel/popt/patches/patch-ltconfig b/devel/popt/patches/patch-ltconfig new file mode 100644 index 00000000000..6ef12e32025 --- /dev/null +++ b/devel/popt/patches/patch-ltconfig @@ -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*) diff --git a/devel/popt/patches/patch-ltmain.sh b/devel/popt/patches/patch-ltmain.sh new file mode 100644 index 00000000000..1f2d524c028 --- /dev/null +++ b/devel/popt/patches/patch-ltmain.sh @@ -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 + ;; + diff --git a/devel/popt/pkg/COMMENT b/devel/popt/pkg/COMMENT new file mode 100644 index 00000000000..569d08cefa3 --- /dev/null +++ b/devel/popt/pkg/COMMENT @@ -0,0 +1 @@ +getopt(3) like library with a number of enhancements diff --git a/devel/popt/pkg/DESCR b/devel/popt/pkg/DESCR new file mode 100644 index 00000000000..fc8e7e7f09a --- /dev/null +++ b/devel/popt/pkg/DESCR @@ -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 diff --git a/devel/popt/pkg/PFRAG.shared b/devel/popt/pkg/PFRAG.shared new file mode 100644 index 00000000000..63e338d00f5 --- /dev/null +++ b/devel/popt/pkg/PFRAG.shared @@ -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) diff --git a/devel/popt/pkg/PLIST b/devel/popt/pkg/PLIST new file mode 100644 index 00000000000..2597614ec40 --- /dev/null +++ b/devel/popt/pkg/PLIST @@ -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