From 308fbc3e91f71af944fa47f29ad3c6a9a0d613d2 Mon Sep 17 00:00:00 2001 From: pvalchev Date: Sat, 28 Jul 2001 07:16:23 +0000 Subject: [PATCH] Import of libuta-0.3.39 libuta is a Graphical User Interface library for C++ that uses SDL as its output layer. It allows application and game programmers to put together portable graphical applications easily. libuta has a range of already implemented widgets and uses libsigc++ as a signal dispatching system. It also performs resource management and has a sound system. WWW: http://libuta.sourceforge.net/ --- devel/libuta/Makefile | 33 +++++++++ devel/libuta/files/md5 | 3 + devel/libuta/patches/patch-configure | 21 ++++++ devel/libuta/patches/patch-demos_Makefile_in | 12 ++++ devel/libuta/patches/patch-ltconfig | 52 ++++++++++++++ devel/libuta/patches/patch-ltmain_sh | 73 ++++++++++++++++++++ devel/libuta/patches/patch-uta_Makefile_in | 12 ++++ devel/libuta/patches/patch-uta_blitters_cc | 15 ++++ devel/libuta/pkg/DESCR | 8 +++ devel/libuta/pkg/PFRAG.shared | 3 + devel/libuta/pkg/PLIST | 55 +++++++++++++++ 11 files changed, 287 insertions(+) create mode 100644 devel/libuta/Makefile create mode 100644 devel/libuta/files/md5 create mode 100644 devel/libuta/patches/patch-configure create mode 100644 devel/libuta/patches/patch-demos_Makefile_in create mode 100644 devel/libuta/patches/patch-ltconfig create mode 100644 devel/libuta/patches/patch-ltmain_sh create mode 100644 devel/libuta/patches/patch-uta_Makefile_in create mode 100644 devel/libuta/patches/patch-uta_blitters_cc create mode 100644 devel/libuta/pkg/DESCR create mode 100644 devel/libuta/pkg/PFRAG.shared create mode 100644 devel/libuta/pkg/PLIST diff --git a/devel/libuta/Makefile b/devel/libuta/Makefile new file mode 100644 index 00000000000..d9462db0a66 --- /dev/null +++ b/devel/libuta/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ + +COMMENT= "graphical user interface library for C++" + +VERSION= 0.3.39 +DISTNAME= libuta-${VERSION} +CATEGORIES= devel +NEED_VERSION= 1.427 + +HOMEPAGE= http://libuta.sourceforge.net/ + +MAINTAINER= Peter Valchev + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= libuta + +LIB_DEPENDS= smpeg.1.3:smpeg-*:devel/smpeg \ + SDL_mixer.0.0:sdl-mixer-*:devel/sdl-mixer \ + png.2:png-*:graphics/png \ + sigc.0.0:libsigc++-*:devel/libsigc++ + +USE_X11= Yes + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= ${CONFIGURE_SHARED} +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" + +.include diff --git a/devel/libuta/files/md5 b/devel/libuta/files/md5 new file mode 100644 index 00000000000..c1d97d1c3c8 --- /dev/null +++ b/devel/libuta/files/md5 @@ -0,0 +1,3 @@ +MD5 (libuta-0.3.39.tar.gz) = ffaef5b2b295cc14741f0f53fa15592b +RMD160 (libuta-0.3.39.tar.gz) = 637054b2e5bb934365380d10981bef73a8f6932c +SHA1 (libuta-0.3.39.tar.gz) = 2d4cdd9293749b2042924c389474c08af5bffd00 diff --git a/devel/libuta/patches/patch-configure b/devel/libuta/patches/patch-configure new file mode 100644 index 00000000000..fd39144e72d --- /dev/null +++ b/devel/libuta/patches/patch-configure @@ -0,0 +1,21 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- configure.orig Mon Jul 23 14:45:52 2001 ++++ configure Mon Jul 23 14:46:45 2001 +@@ -4064,7 +4064,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lc_r $LIBS" ++LIBS="-pthread $LIBS" + cat > conftest.$ac_ext <&6 diff --git a/devel/libuta/patches/patch-demos_Makefile_in b/devel/libuta/patches/patch-demos_Makefile_in new file mode 100644 index 00000000000..2c6df0f6be6 --- /dev/null +++ b/devel/libuta/patches/patch-demos_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-demos_Makefile_in,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- demos/Makefile.in.orig Mon Jul 23 13:18:02 2001 ++++ demos/Makefile.in Mon Jul 23 13:18:11 2001 +@@ -106,7 +106,7 @@ INCLUDES = -I../uta + @SMPEG_AVAILABLE_TRUE@PLAYMPEG = plaympeg + @SMPEG_AVAILABLE_FALSE@PLAYMPEG = + +-LFLAGS = -L ../uta/.libs -Wl,--rpath -Wl,../uta/.libs ++LFLAGS = -L ../uta/.libs -Wl,-rpath -Wl,../uta/.libs + + noinst_PROGRAMS = simple convert lines alpha terrain terrain2 $(PLAYMPEG) $(UMP3) + diff --git a/devel/libuta/patches/patch-ltconfig b/devel/libuta/patches/patch-ltconfig new file mode 100644 index 00000000000..8492484356d --- /dev/null +++ b/devel/libuta/patches/patch-ltconfig @@ -0,0 +1,52 @@ +$OpenBSD: patch-ltconfig,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- ltconfig.orig Sat Jan 8 17:47:35 2000 ++++ ltconfig Mon Jul 23 12:24:53 2001 +@@ -1105,6 +1105,9 @@ cygwin* | mingw*) + with_gnu_ld=no + fi + ;; ++openbsd*) ++ with_gnu_ld=no ++ ;; + + esac + +@@ -1391,10 +1394,21 @@ else + ;; + + openbsd*) +- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' +- hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ++ case "$host_os" in ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) ++ 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' ++ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then ++ export_dynamic_flag_spec='${wl}-E' ++ fi ++ ;; ++ esac + ;; + + os2*) +@@ -1955,13 +1969,10 @@ netbsd*) + + openbsd*) + version_type=sunos +- if test "$with_gnu_ld" = yes; then +- need_lib_prefix=no +- need_version=no +- fi + 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/libuta/patches/patch-ltmain_sh b/devel/libuta/patches/patch-ltmain_sh new file mode 100644 index 00000000000..e473aa74243 --- /dev/null +++ b/devel/libuta/patches/patch-ltmain_sh @@ -0,0 +1,73 @@ +$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- ltmain.sh.orig Sat Jan 8 17:47:50 2000 ++++ ltmain.sh Mon Jul 23 12:24:53 2001 +@@ -1073,6 +1073,17 @@ compiler." + # These systems don't actually have c library (as such) + continue + ;; ++ *-*-openbsd*) ++ # Do not include libc due to us having libc/libc_r. ++ continue ++ ;; ++ esac ++ elif test "$arg" = "-lc_r"; then ++ case "$host" in ++ *-*-openbsd*) ++ # Do not include libc_r directly, use -pthread flag. ++ continue ++ ;; + esac + elif test "$arg" = "-lm"; then + case "$host" in +@@ -1085,6 +1096,10 @@ compiler." + deplibs="$deplibs $arg" + ;; + ++ -?thread) ++ deplibs="$deplibs $arg" ++ ;; ++ + -module) + module=yes + continue +@@ -3522,40 +3537,6 @@ libdir='$install_libdir'\ + # 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/libuta/patches/patch-uta_Makefile_in b/devel/libuta/patches/patch-uta_Makefile_in new file mode 100644 index 00000000000..75f29d4086a --- /dev/null +++ b/devel/libuta/patches/patch-uta_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-uta_Makefile_in,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- uta/Makefile.in.orig Mon Jul 23 13:25:33 2001 ++++ uta/Makefile.in Mon Jul 23 13:25:46 2001 +@@ -106,7 +106,7 @@ libutainclude_HEADERS = debug.h color. + + noinst_HEADERS = blitter_macros.h + +-libuta_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) ++libuta_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + + + EXTRA_DIST = foot.html libuta.logo.gif programmer.doc font.h.in diff --git a/devel/libuta/patches/patch-uta_blitters_cc b/devel/libuta/patches/patch-uta_blitters_cc new file mode 100644 index 00000000000..99557d51a4e --- /dev/null +++ b/devel/libuta/patches/patch-uta_blitters_cc @@ -0,0 +1,15 @@ +$OpenBSD: patch-uta_blitters_cc,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +--- uta/blitters.cc.orig Tue Apr 10 01:46:28 2001 ++++ uta/blitters.cc Mon Jul 23 12:44:54 2001 +@@ -1,9 +1,9 @@ + #include "blitters.h" +-#include ++#include + + namespace uta { + +-#ifndef X86_ASSEMBLER ++#if !defined(X86_ASSEMBLER) || (defined(__OpenBSD__) && defined(__i386__)) + + /** Apply const gamma value. + Blit just copies alpha value of the source to the destination surface. diff --git a/devel/libuta/pkg/DESCR b/devel/libuta/pkg/DESCR new file mode 100644 index 00000000000..384b8816c5c --- /dev/null +++ b/devel/libuta/pkg/DESCR @@ -0,0 +1,8 @@ +libuta is a Graphical User Interface library for C++ that uses SDL as +its output layer. It allows application and game programmers to put +together portable graphical applications easily. libuta has a range +of already implemented widgets and uses libsigc++ as a signal +dispatching system. It also performs resource management and has a +sound system. + +WWW: ${HOMEPAGE} diff --git a/devel/libuta/pkg/PFRAG.shared b/devel/libuta/pkg/PFRAG.shared new file mode 100644 index 00000000000..e5c684157e5 --- /dev/null +++ b/devel/libuta/pkg/PFRAG.shared @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +lib/libuta.so.39.0 +DYNLIBDIR(%B) diff --git a/devel/libuta/pkg/PLIST b/devel/libuta/pkg/PLIST new file mode 100644 index 00000000000..09f913bf23e --- /dev/null +++ b/devel/libuta/pkg/PLIST @@ -0,0 +1,55 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/28 07:16:23 pvalchev Exp $ +bin/uta-config +include/uta/application.h +include/uta/blitters.h +include/uta/button.h +include/uta/color.h +include/uta/debug.h +include/uta/dialog.h +include/uta/dialogbox.h +include/uta/directsurface.h +include/uta/event.h +include/uta/focus.h +include/uta/font.h +include/uta/keysym.h +include/uta/label.h +include/uta/lineedit.h +include/uta/listbox.h +include/uta/logo.h +include/uta/logo_data.h +include/uta/messagebox.h +include/uta/mixer.h +include/uta/mmx.h +include/uta/mouse.h +include/uta/mouse_data.h +include/uta/movie.h +include/uta/multilineedit.h +include/uta/music.h +include/uta/mutex.h +include/uta/painter.h +include/uta/pixelformat.h +include/uta/point.h +include/uta/progressdialog.h +include/uta/pushbutton.h +include/uta/questionbox.h +include/uta/rect.h +include/uta/resources.h +include/uta/rootwindow.h +include/uta/sample.h +include/uta/screensurface.h +include/uta/shared.h +include/uta/slider.h +include/uta/sound.h +include/uta/soundmapper.h +include/uta/surface.h +include/uta/terminal.h +include/uta/timer.h +include/uta/togglebutton.h +include/uta/uta.h +include/uta/version.h +include/uta/widget.h +lib/libuta.a +lib/libuta.la +%%SHARED%% +share/aclocal/uta.m4 +@dirrm include/uta