Mercurial > mxe-octave
changeset 513:c5d1f0ee0f0b
new package: flac
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Tue, 27 Oct 2009 20:14:55 +0100 |
parents | c731a5dd04df |
children | 28cdf34ea090 |
files | src/flac-win32.patch src/flac.mk |
diffstat | 2 files changed, 86 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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
--- /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 '<option>FLAC_RELEASE_' | \ + $(SED) -n 's,.*FLAC_RELEASE_\([0-9][0-9_]*\)__.*,\1,p' | \ + $(SED) 's,_,.,g' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-doxygen-docs \ + --disable-xmms-plugin \ + --enable-cpplibs \ + --enable-ogg \ + --disable-oggtest + $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef