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/
This commit is contained in:
pvalchev 2001-07-28 07:16:23 +00:00
parent f92cc3421a
commit 308fbc3e91
11 changed files with 287 additions and 0 deletions

33
devel/libuta/Makefile Normal file
View File

@ -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 <pvalchev@openbsd.org>
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 <bsd.port.mk>

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

@ -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

View File

@ -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 <<EOF
#line 4070 "configure"
#include "confdefs.h"
@@ -4098,7 +4098,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
#define $ac_tr_lib 1
EOF
- LIBS="-lc_r $LIBS"
+ LIBS="-pthread $LIBS"
else
echo "$ac_t""no" 1>&6

View File

@ -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)

View File

@ -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*)

View File

@ -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
;;

View File

@ -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

View File

@ -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 <uta/painter.h>
+#include <painter.h>
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.

8
devel/libuta/pkg/DESCR Normal file
View File

@ -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}

View File

@ -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)

55
devel/libuta/pkg/PLIST Normal file
View File

@ -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