RE: ogle-0.9.0 on hpux 11.00 questions

"Gansser, Martin" <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <78224A6821F87A4D8023B133E5B1140B493C1D@srvmxellwangen2.ratc-de.com>
> -----Original Message-----
> From: Bjrn Englund [mailto:[email protected]]
> Sent: Friday, February 28, 2003 6:36 PM
> To: [email protected]
> Subject: Re: [Ogle-devel] ogle-0.9.0 on hpux 11.00 questions
> 
> 
> Fri Feb 28 2003, Gansser, Martin wrote:
> 
> > there exists on hpux no standard device, every user must link
> > the responding hardware device to /dev/rdksk/cxtydz to /dev/dvd
> > 
> > e.q. ln -s /dev/rdsk/c1t2d0 /dev/dvd
> >  
> ok
> 
> 
> > Should I send you a patch again ?
> 
> Yes, patches for configure.in
> 
> > on hpux the function 'dlopen()' is called 'shl_load()'
> > and dlclose() is called shl_unload()
> > if you that mean.
> 
> Yes. So there might be some more patches needed for the places where
> dlopen is used?
>  
> > the libraries have the suffix .sl:
> > 
> 
> > /usr/local/lib/libdvdcss.sl -> libdvdcss.sl.2.3
> > /usr/local/lib/libdvdcss.sl.2 -> libdvdcss.sl.2.3
> > /usr/local/lib/libdvdcss.sl.2.3
> > /usr/local/lib/libdvdread.sl.3 -> libdvdread.sl.3.0
> 
> 
> > means this, that I should copy the file $prefix/share/ogle/oglerc
> > in ~/.oglerc
> > what is the exact entry, and on which line ?
> You can change it directly in $prefix/share/ogle/oglerc if 
> you don't wan't
> to copy it.
> 
>   <audio>
>     <device>
>       <driver>oss</driver>     <-- change so you have 'null' 
> instead of 'oss'
>       <path>/dev/dsp</path>
> 
> What sound driver do hpux use? oss? 

yes a oss driver is available for hpux 11.00, but only for machines
with 11.00 and special certified pci card.

a README.hpux is attached.

I attached also patches for ogle and ogle_gui.

Can someone look at this patches and commit it ?

thanks Martin
README.hpux (application/octet-stream, 1.5 KB) - not displayed
hpux-ogle_gui-patch.diff (application/octet-stream, 967 B)
--- configure.in.orig	2003-03-01 00:10:52.000000000 +0100
+++ configure.in	2003-03-01 00:22:18.000000000 +0100
@@ -46,8 +46,17 @@
   [Prefix for libglade])
 dnl this should be something different for some bsd (libglade.so.4 i
 dnl think), but I don't know how to check for it properly
-AC_DEFINE_UNQUOTED(LIBGLADE_LIB, "libglade.so.0",
-  [Name of the libglade lib (for dlopen)])
+
+case "$host_os" in
+	hpux*)
+		AC_DEFINE_UNQUOTED(LIBGLADE_LIB, "libglade.sl.0",
+  		[Name of the libglade lib (for dlopen)])
+		;;
+	*)
+		AC_DEFINE_UNQUOTED(LIBGLADE_LIB, "libglade.so.0",
+  		[Name of the libglade lib (for dlopen)])
+		;;
+esac
 
 AM_PATH_XML2(2.4.19, AC_DEFINE(HAVE_XML, 1, [libxml found]),
   [ AC_MSG_ERROR([Install libxml2(-dev) and/or specify it's location]) ])
@@ -125,6 +134,9 @@
 	linux*)
 		AC_DEFINE(LINUX, 1, [This is a Linux system])
 		;;
+	hpux*)
+		AC_DEFINE(HPUX, 1, [This is a HPUX system])
+		;;
 	*)
 		;;
 esac
hpux-ogle-patch.diff (application/octet-stream, 1.2 KB)
diff -Naur configure.in.orig configure.in
--- configure.in.orig   2003-03-02 12:16:35.000000000 +0100
+++ configure.in        2003-03-02 13:53:12.000000000 +0100
@@ -421,7 +421,7 @@
     [  --disable-oss           make a version not using oss])
 if test "x$enable_oss" != xno; then
     case "$host" in
-    *-linux*|*-openbsd*|*-freebsd*|*-bsdi*)
+    *-linux*|*-openbsd*|*-freebsd*|*-bsdi*|*-hpux*)

 dnl check for headers.. only define LIBOGLEAO_OSS if library and headers found.
         AC_DEFINE([LIBOGLEAO_OSS],,[libogleao OSS audio support])
@@ -439,6 +439,14 @@
              DEFAULT_AUDIO_DRIVER="oss"
              DEFAULT_AUDIO_DEVICE="/dev/dsp"])
     ;;
+    *-hpux*)
+        AC_CHECK_LIB([OSSlib],[OSS_init],
+            [LIBOGLEAO_LIBS="$LIBOGLEAO_LIBS -lOSSlib"
+             AC_DEFINE([LIBOGLEAO_OSS],,[libogleao OSS audio support])
+             BUILD_AUDIO_OSS=1
+             DEFAULT_AUDIO_DRIVER="oss"
+             DEFAULT_AUDIO_DEVICE="/dev/dsp"])
+    ;;
     esac
 fi

@@ -653,6 +661,9 @@
 bsdi*)
        DEFAULT_DVD_DEVICE="/dev/sr0c"
        ;;
+hpux*)
+       DEFAULT_DVD_DEVICE="/dev/dvd"
+       ;;
 *)
        DEFAULT_DVD_DEVICE=""
        ;;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.