ushare stable port information

Package: ushare
Version: 1.1a
Revision: 5
Description: UPnP A/V and DLNA media server
License: GPL
Maintainer: Benjamin Reed

Depends: <<
a52dec-shlibs,
amrnb-shlibs,
faac-shlibs,
lame-shlibs,
libavcodec52-shlibs,
libavformat52-shlibs,
libavutil50-shlibs,
libdlna0-shlibs (>= 0.2.3-2),
libfaad2-shlibs,
libgettext8-shlibs,
libixml2-shlibs,
libogg-shlibs,
libtheora0-shlibs,
libthreadutil2-shlibs,
libupnp3-shlibs,
libvorbis0-shlibs,
libx264-98-shlibs,
xvidcore-shlibs
<<
BuildDepends: <<
a52dec-dev,
amrnb-dev,
faac-dev,
fink (>= 0.30.0-1),
ffmpeg-dev (>= 0.4.20071217-5),
lame-dev,
libavcodec52-dev,
libavformat52-dev,
libavutil50-dev,
libdlna0 (>= 0.2.3-2),
libfaad2-dev,
libgettext8-dev,
libogg,
libtheora0,
libupnp3,
libvorbis0,
libx264-98-dev,
pkgconfig,
xvidcore
<<
BuildDependsOnly: true

Source: http://%n.geexbox.org/releases/%n-%v.tar.bz2
Source-MD5: 5bbcdbf1ff85a9710fa3d4e82ccaa251
PatchFile: %n.patch
PatchFile-MD5: f530bcf3680254d65ba4a63b5dc41b66

SetCFLAGS: -I%b -I%b/src -I%p/include
UseMaxBuildJobs: true
ConfigureParams: --disable-strip --enable-dlna
CompileScript: <<
#!/bin/sh -ev
if [ "%m" = "powerpc" ]; then
export altivec=yes
else
export altivec=no
fi
./configure %c
make
<<

InstallScript: <<
#!/bin/sh -ev
install -d -m 755 %i/bin %i/etc
install -c -m 755 src/ushare %i/bin/
install -c -m 644 scripts/ushare.conf %i/etc/
pushd po
make install DESTDIR="%d"
popd
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README THANKS TODO

ConfFiles: %p/etc/ushare.conf

Homepage: http://ushare.geexbox.org/
DescDetail: <<
uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server
component that provides UPnP media devices with information on available
multimedia files. uShare uses the built-in http server of libupnp to
stream the files to clients.

GeeXboX uShare is able to provide access to both images, videos, music
or playlists files (see below for a complete file format support list).
It does not act as an UPnP Media Adaptor and thus, can't transcode
streams to fit the client requirements.
<<

ushare stable port .patch

diff -Nurd ushare-1.1a/scripts/ushare.conf ushare-1.1a-patched/scripts/ushare.conf
--- ushare-1.1a/scripts/ushare.conf 2007-12-09 08:03:36.000000000 -0500
+++ ushare-1.1a-patched/scripts/ushare.conf 2008-06-11 21:10:10.000000000 -0400
@@ -31,15 +31,15 @@
USHARE_OVERRIDE_ICONV_ERR=

# Enable Web interface (yes/no)
-ENABLE_WEB=
+USHARE_ENABLE_WEB=

# Enable Telnet control interface (yes/no)
-ENABLE_TELNET=
+USHARE_ENABLE_TELNET=

# Use XboX 360 compatibility mode (yes/no)
-ENABLE_XBOX=
+USHARE_ENABLE_XBOX=

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
-ENABLE_DLNA=
+USHARE_ENABLE_DLNA=

diff -Nurd ushare-1.1a/src/Makefile ushare-1.1a-patched/src/Makefile
--- ushare-1.1a/src/Makefile 2007-12-09 08:03:36.000000000 -0500
+++ ushare-1.1a-patched/src/Makefile 2008-06-11 18:34:27.000000000 -0400
@@ -56,7 +56,7 @@
$(CC) -c $(CFLAGS) $(OPTFLAGS) -o $@ $<

$(PROG): $(OBJS)
- $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -o $@
+ $(CC) $(OBJS) $(LDFLAGS) $(EXTRALIBS) -lintl -o $@

clean:
-$(RM) -f *.o $(PROG)

ushare _unstable_ port .patch