update to libgpod 0.4.0. prompted by fgsch, suggestions from Deanna Phillips

ok mbalmer
This commit is contained in:
ckuethe 2006-10-15 22:43:49 +00:00
parent 101454397b
commit ced0b25392
5 changed files with 82 additions and 9 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.5 2006/09/18 11:40:06 espie Exp $
# $OpenBSD: Makefile,v 1.6 2006/10/15 22:43:49 ckuethe Exp $
COMMENT= "library to access the contents of an iPod"
DISTNAME= libgpod-0.3.2
SHARED_LIBS= gpod 302.0
DISTNAME= libgpod-0.4.0
SHARED_LIBS= gpod 400.0
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkpod/}
@ -17,6 +17,7 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_LIBTOOL= Yes
USE_GMAKE= Yes
MODULES= gettext

View File

@ -1,4 +1,4 @@
MD5 (libgpod-0.3.2.tar.gz) = c9c41625347a33efd9441c4e71fdd04e
RMD160 (libgpod-0.3.2.tar.gz) = 1cae4642653036ad2af3b9d8e9dabd88155f310f
SHA1 (libgpod-0.3.2.tar.gz) = ca2c575377534c1e5176e5994dfda7343b19cdf4
SIZE (libgpod-0.3.2.tar.gz) = 461207
MD5 (libgpod-0.4.0.tar.gz) = e427e0409b0cb2d7e76b17915b1396fa
RMD160 (libgpod-0.4.0.tar.gz) = 02e45e59fa41c7b5683c550ee8c386b56ad4bbb5
SHA1 (libgpod-0.4.0.tar.gz) = 1ebad590212d1c6951ca10bb5117a7af54060105
SIZE (libgpod-0.4.0.tar.gz) = 596066

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-src_itdb_itunesdb_c,v 1.3 2006/10/15 22:43:49 ckuethe Exp $
--- src/itdb_itunesdb.c.orig Tue Oct 3 11:36:52 2006
+++ src/itdb_itunesdb.c Tue Oct 3 11:39:35 2006
@@ -122,7 +122,6 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
-#include <sys/statvfs.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
@@ -5819,14 +5818,14 @@ static gboolean itdb_create_directories
dirnum = info->musicdirs;
if (dirnum == 0)
{ /* do a guess */
- struct statvfs stat;
- if (statvfs (mp, &stat) != 0)
+ struct stat sb;
+ if (stat (mp, &sb) != 0)
{ /* why should this fail !? */
dirnum = 20;
}
else
{
- gdouble size = ((gdouble)stat.f_blocks * stat.f_frsize) / 1073741824;
+ gdouble size = ((gdouble)sb.st_blocks * sb.st_size) / 1073741824;
if (size < 20) dirnum = 20;
else dirnum = 50;
}

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-tests_Makefile_in,v 1.1 2006/10/15 22:43:49 ckuethe Exp $
--- tests/Makefile.in.orig Mon Oct 9 20:55:23 2006
+++ tests/Makefile.in Mon Oct 9 21:01:46 2006
@@ -127,7 +127,7 @@ LIBGPOD_LIBS = @LIBGPOD_LIBS@
LIBGPOD_REVISION = @LIBGPOD_REVISION@
LIBGPOD_VERSION = @LIBGPOD_VERSION@
LIBOBJS = @LIBOBJS@
-LIBS = $(LIBGPOD_LIBS) $(top_builddir)/src/libgpod.la
+LIBS= $(top_builddir)/src/libgpod.la $(LIBGPOD_LIBS) $(LDFLAGS)
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
@@ -338,8 +338,7 @@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUD
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) -o $@
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \

View File

@ -1,13 +1,34 @@
@comment $OpenBSD: PLIST,v 1.2 2006/03/18 07:07:43 sturm Exp $
@comment $OpenBSD: PLIST,v 1.3 2006/10/15 22:43:49 ckuethe Exp $
%%SHARED%%
include/gpod-1.0/
include/gpod-1.0/gpod/
include/gpod-1.0/gpod/ipod-device.h
include/gpod-1.0/gpod/itdb.h
lib/libgpod.a
lib/libgpod.la
lib/pkgconfig/
lib/pkgconfig/libgpod-1.0.pc
share/gtk-doc/
share/gtk-doc/html/
share/gtk-doc/html/libgpod/
share/gtk-doc/html/libgpod/ch01.html
share/gtk-doc/html/libgpod/ch02.html
share/gtk-doc/html/libgpod/home.png
share/gtk-doc/html/libgpod/index.html
share/gtk-doc/html/libgpod/index.sgml
share/gtk-doc/html/libgpod/left.png
share/gtk-doc/html/libgpod/libgpod-Artwork.html
share/gtk-doc/html/libgpod/libgpod-Device.html
share/gtk-doc/html/libgpod/libgpod-File-handling-functions.html
share/gtk-doc/html/libgpod/libgpod-Low-level-functions.html
share/gtk-doc/html/libgpod/libgpod-Playlists.html
share/gtk-doc/html/libgpod/libgpod-The-Itdb-iTunesDB-structure.html
share/gtk-doc/html/libgpod/libgpod-Time-handling.html
share/gtk-doc/html/libgpod/libgpod-Tracks.html
share/gtk-doc/html/libgpod/libgpod.devhelp
share/gtk-doc/html/libgpod/libgpod.devhelp2
share/gtk-doc/html/libgpod/right.png
share/gtk-doc/html/libgpod/style.css
share/gtk-doc/html/libgpod/up.png
share/locale/de/LC_MESSAGES/libgpod.mo
share/locale/es/LC_MESSAGES/libgpod.mo
share/locale/fr/LC_MESSAGES/libgpod.mo