# HG changeset patch # User Volker Grabsch # Date 1256670895 -3600 # Node ID c5d1f0ee0f0b839dda9a19e623a337fa52d662a1 # Parent c731a5dd04df0669101a981eb01593715f657b83 new package: flac diff -r c731a5dd04df -r c5d1f0ee0f0b src/flac-win32.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/flac-win32.patch Tue Oct 27 20:14:55 2009 +0100 @@ -0,0 +1,33 @@ +Copyright (C) 2009 Volker Grabsch + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject +to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +diff -ru flac-1.2.1.orig/include/share/alloc.h flac-1.2.1/include/share/alloc.h +--- flac-1.2.1.orig/include/share/alloc.h 2007-09-12 07:32:21.000000000 +0200 ++++ flac-1.2.1/include/share/alloc.h 2009-10-27 19:55:58.000000000 +0100 +@@ -35,7 +35,7 @@ + + #ifndef SIZE_MAX + # ifndef SIZE_T_MAX +-# ifdef _MSC_VER ++# if defined _MSC_VER || defined __MINGW32__ + # define SIZE_T_MAX UINT_MAX + # else + # error diff -r c731a5dd04df -r c5d1f0ee0f0b src/flac.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/flac.mk Tue Oct 27 20:14:55 2009 +0100 @@ -0,0 +1,53 @@ +# Copyright (C) 2009 Volker Grabsch +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject +# to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +# FLAC +PKG := flac +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.2.1 +$(PKG)_CHECKSUM := bd54354900181b59db3089347cc84ad81e410b38 +$(PKG)_SUBDIR := flac-$($(PKG)_VERSION) +$(PKG)_FILE := flac-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.xiph.org/ogg/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/flac/flac-src/flac-$($(PKG)_VERSION)-src/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libiconv ogg + +define $(PKG)_UPDATE + wget -q -O- 'http://flac.cvs.sourceforge.net/viewvc/flac/flac/' | \ + grep '