From 483523c91e79c81e8b22d1b7effd9ef94649d71e Mon Sep 17 00:00:00 2001 From: todd Date: Thu, 8 Feb 2001 20:05:21 +0000 Subject: [PATCH] import of libutf8; from Shell Hung --- misc/libutf8/Makefile | 18 ++++ misc/libutf8/files/md5 | 3 + misc/libutf8/patches/patch-autoconf_ltconfig | 45 +++++++++ misc/libutf8/patches/patch-autoconf_ltmain_sh | 50 ++++++++++ misc/libutf8/pkg/COMMENT | 1 + misc/libutf8/pkg/DESCR | 3 + misc/libutf8/pkg/PFRAG.shared | 3 + misc/libutf8/pkg/PLIST | 92 +++++++++++++++++++ 8 files changed, 215 insertions(+) create mode 100644 misc/libutf8/Makefile create mode 100644 misc/libutf8/files/md5 create mode 100644 misc/libutf8/patches/patch-autoconf_ltconfig create mode 100644 misc/libutf8/patches/patch-autoconf_ltmain_sh create mode 100644 misc/libutf8/pkg/COMMENT create mode 100644 misc/libutf8/pkg/DESCR create mode 100644 misc/libutf8/pkg/PFRAG.shared create mode 100644 misc/libutf8/pkg/PLIST diff --git a/misc/libutf8/Makefile b/misc/libutf8/Makefile new file mode 100644 index 00000000000..cf2e81ee989 --- /dev/null +++ b/misc/libutf8/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/02/08 20:05:21 todd Exp $ + +DISTNAME= libutf8-0.7.3 +CATEGORIES= devel +NEED_VERSION= 1.352 +MASTER_SITES= ftp://ftp.shellhung.org/pub/OpenBSD/packages/devel/ + +MAINTAINER= Shell Hung + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +CONFIGURE_STYLE= gnu dest +CONFIGURE_ARGS+= ${CONFIGURE_SHARED} --enable-static + +.include diff --git a/misc/libutf8/files/md5 b/misc/libutf8/files/md5 new file mode 100644 index 00000000000..1f310084f69 --- /dev/null +++ b/misc/libutf8/files/md5 @@ -0,0 +1,3 @@ +MD5 (libutf8-0.7.3.tar.gz) = 47074bc0c191b86aa7fe80d841623ec0 +RMD160 (libutf8-0.7.3.tar.gz) = 43d361070914a7c450c53bd1cb732e33c7be7795 +SHA1 (libutf8-0.7.3.tar.gz) = d6711932e5d29aa9e6984ca5a9e6e2458af43ed2 diff --git a/misc/libutf8/patches/patch-autoconf_ltconfig b/misc/libutf8/patches/patch-autoconf_ltconfig new file mode 100644 index 00000000000..4c536a6d8fb --- /dev/null +++ b/misc/libutf8/patches/patch-autoconf_ltconfig @@ -0,0 +1,45 @@ +$OpenBSD: patch-autoconf_ltconfig,v 1.1.1.1 2001/02/08 20:05:22 todd Exp $ +--- autoconf/ltconfig.orig Thu Feb 1 11:49:59 2001 ++++ autoconf/ltconfig Thu Feb 1 11:53:47 2001 +@@ -826,10 +826,18 @@ else + ;; + + openbsd*) +- archive_cmds='$LD -Bshareable -o $lib$libobjs' +- hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ++ case "$host_os" in ++ openbsd2.[01234567]) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' ++ hardcode_libdir_flag_spec='-R$libdir' ++ ;; ++ *) ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ ;; ++ esac + ;; + + os2*) +@@ -1199,11 +1207,19 @@ linux-gnu*) + fi + ;; + +-netbsd* | openbsd*) ++netbsd*) + version_type=sunos + library_names_spec='${libname}${release}.so.$versuffix' + finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ ++openbsd*) ++ version_type=sunos ++ library_names_spec='${libname}${release}.so.$versuffix' ++ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' ++ shlibpath_var=LD_LIBRARY_PATH ++ deplibs_check_method='pass_all' + ;; + + os2*) diff --git a/misc/libutf8/patches/patch-autoconf_ltmain_sh b/misc/libutf8/patches/patch-autoconf_ltmain_sh new file mode 100644 index 00000000000..54586ae09e7 --- /dev/null +++ b/misc/libutf8/patches/patch-autoconf_ltmain_sh @@ -0,0 +1,50 @@ +$OpenBSD: patch-autoconf_ltmain_sh,v 1.1.1.1 2001/02/08 20:05:22 todd Exp $ +--- autoconf/ltmain.sh.orig Thu Feb 1 11:50:04 2001 ++++ autoconf/ltmain.sh Thu Feb 1 11:55:51 2001 +@@ -1004,7 +1004,7 @@ if test -z "$show_help"; then + + # Add libc to deplibs on all systems. + dependency_libs="$deplibs" +- deplibs="$deplibs -lc" ++ deplibs="$deplibs" + + if test "$build_libtool_libs" = yes; then + # Get the real and link names of the library. +@@ -2025,37 +2025,6 @@ libdir='$install_libdir'\ + done + fi + +- echo "------------------------------------------------------------------------------" +- echo "Libraries have been installed in:" +- for libdir in $libdirs; do +- echo " $libdir" +- done +- echo +- echo "To link against installed libraries in a given directory, LIBDIR," +- echo "you must use the \`-LLIBDIR' flag during linking." +- echo +- echo " You will also need to do 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 -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/misc/libutf8/pkg/COMMENT b/misc/libutf8/pkg/COMMENT new file mode 100644 index 00000000000..1fcdc312f93 --- /dev/null +++ b/misc/libutf8/pkg/COMMENT @@ -0,0 +1 @@ +provides UTF-8 locale support diff --git a/misc/libutf8/pkg/DESCR b/misc/libutf8/pkg/DESCR new file mode 100644 index 00000000000..c8450a0a68a --- /dev/null +++ b/misc/libutf8/pkg/DESCR @@ -0,0 +1,3 @@ +This library provides UTF-8 locale support, for use on systems +which don't have UTF-8 locales, or whose UTF-8 locales are +unreasonably slow. diff --git a/misc/libutf8/pkg/PFRAG.shared b/misc/libutf8/pkg/PFRAG.shared new file mode 100644 index 00000000000..1ff7e1f8f2c --- /dev/null +++ b/misc/libutf8/pkg/PFRAG.shared @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/02/08 20:05:22 todd Exp $ +lib/libutf8.so.0.0 +DYNLIBDIR(%B) diff --git a/misc/libutf8/pkg/PLIST b/misc/libutf8/pkg/PLIST new file mode 100644 index 00000000000..dddfa76a705 --- /dev/null +++ b/misc/libutf8/pkg/PLIST @@ -0,0 +1,92 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/08 20:05:22 todd Exp $ +include/libutf8.h +include/utf8/config.h +include/utf8/limits.h +include/utf8/locale.h +include/utf8/stdio.h +include/utf8/stdlib.h +include/utf8/types.h +include/utf8/wchar.h +include/utf8/wctype.h +lib/libutf8.a +lib/libutf8.la +man/man3/MB_CUR_MAX.3 +man/man3/MB_LEN_MAX.3 +man/man3/btowc.3 +man/man3/fgetwc.3 +man/man3/fgetws.3 +man/man3/fputwc.3 +man/man3/fputws.3 +man/man3/fwide.3 +man/man3/fwprintf.3 +man/man3/getwchar.3 +man/man3/iswalnum.3 +man/man3/iswalpha.3 +man/man3/iswblank.3 +man/man3/iswcntrl.3 +man/man3/iswctype.3 +man/man3/iswdigit.3 +man/man3/iswgraph.3 +man/man3/iswlower.3 +man/man3/iswprint.3 +man/man3/iswpunct.3 +man/man3/iswspace.3 +man/man3/iswupper.3 +man/man3/iswxdigit.3 +man/man3/mblen.3 +man/man3/mbrlen.3 +man/man3/mbrtowc.3 +man/man3/mbsinit.3 +man/man3/mbsnrtowcs.3 +man/man3/mbsrtowcs.3 +man/man3/mbstowcs.3 +man/man3/mbtowc.3 +man/man3/printf.3 +man/man3/putwchar.3 +man/man3/setlocale.3 +man/man3/swprintf.3 +man/man3/towctrans.3 +man/man3/towlower.3 +man/man3/towupper.3 +man/man3/ungetwc.3 +man/man3/vfwprintf.3 +man/man3/vswprintf.3 +man/man3/vwprintf.3 +man/man3/wcpcpy.3 +man/man3/wcpncpy.3 +man/man3/wcrtomb.3 +man/man3/wcscasecmp.3 +man/man3/wcscat.3 +man/man3/wcschr.3 +man/man3/wcscmp.3 +man/man3/wcscpy.3 +man/man3/wcscspn.3 +man/man3/wcsdup.3 +man/man3/wcslen.3 +man/man3/wcsncasecmp.3 +man/man3/wcsncat.3 +man/man3/wcsncmp.3 +man/man3/wcsncpy.3 +man/man3/wcsnlen.3 +man/man3/wcsnrtombs.3 +man/man3/wcspbrk.3 +man/man3/wcsrchr.3 +man/man3/wcsrtombs.3 +man/man3/wcsspn.3 +man/man3/wcsstr.3 +man/man3/wcstok.3 +man/man3/wcstombs.3 +man/man3/wcswidth.3 +man/man3/wctob.3 +man/man3/wctomb.3 +man/man3/wctrans.3 +man/man3/wctype.3 +man/man3/wcwidth.3 +man/man3/wmemchr.3 +man/man3/wmemcmp.3 +man/man3/wmemcpy.3 +man/man3/wmemmove.3 +man/man3/wmemset.3 +man/man3/wprintf.3 +%%SHARED%% +@dirrm include/utf8