--- mac-3.99-u4-b5-s7.orig/debian/changelog +++ mac-3.99-u4-b5-s7/debian/changelog @@ -0,0 +1,5 @@ +mac (3.99-u4-b5-s7-3zesty) zesty; urgency=low + + * New program release + + -- Alexander Sokolov Wed, 17 May 2017 20:02:35 +0300 --- mac-3.99-u4-b5-s7.orig/debian/compat +++ mac-3.99-u4-b5-s7/debian/compat @@ -0,0 +1 @@ +7 --- mac-3.99-u4-b5-s7.orig/debian/control +++ mac-3.99-u4-b5-s7/debian/control @@ -0,0 +1,16 @@ +Source: mac +Section: sound +Priority: extra +Maintainer: Alexander Sokolov +Build-Depends: debhelper (>= 7), autotools-dev +Standards-Version: 3.9.1 +Homepage: http://www.etree.org/shnutils/shntool/support/formats/ape/unix/ + +Package: mac +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: shntool, cuetools +Description: Monkey's Audio Codec - command line tool + Compressor and decompressor of ape files. + Compiled to be able to convert APE files to FLAC or any other FOSS audio codec ;) + --- mac-3.99-u4-b5-s7.orig/debian/copyright +++ mac-3.99-u4-b5-s7/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Alexander Sokolov + +It was downloaded from http://etree.org/shnutils/shntool/support/formats/ape/unix/ + +Upstream Author(s): + + Matthew T. Ashland + http://www.monkeysaudio.com/ + +Copyright: + + Copyright (C) 2009 Matthew T. Ashland + +License: + + License Agreement + 1. The Monkey's Audio SDK and source code can be freely used to add APE format playback, encoding, or tagging support to any product, free or commercial. Use of the code for proprietary efforts that don't support the official APE format require written consent of the author. + 2. Monkey's Audio source can be included in GPL and open-source software, although Monkey's Audio itself will not be subjected to external licensing requirements or other viral source restrictions. + 3. Code changes and improvements must be contributed back to the Monkey's Audio project free from restrictions or royalties for the sake of the common good, unless exempted by express written consent of the author. + 4. Any source code, ideas, or libraries used must be plainly acknowledged in the software using the code. + 5. Although the software has been tested thoroughly, the author is in no way responsible for damages due to bugs or misuse. + 6. If you do not completely agree with all of the previous stipulations, you must cease using this source code and remove it from your storage device. + + All rights not expressly granted here are reserved by Matthew T. Ashland. + + - All materials and programs copyrighted ©2000-2006 by Matthew T. Ashland - + - All rights reserved. - + + +The Debian packaging is: + + Copyright (C) 2009-2017 Alexander Sokolov + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + --- mac-3.99-u4-b5-s7.orig/debian/rules +++ mac-3.99-u4-b5-s7/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + +config.status: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/mac.sgml > mac.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/mac. + $(MAKE) DESTDIR=$(CURDIR)/debian/mac install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- mac-3.99-u4-b5-s7.orig/debian/shlibs.local +++ mac-3.99-u4-b5-s7/debian/shlibs.local @@ -0,0 +1 @@ +libmac 2 mac --- mac-3.99-u4-b5-s7.orig/src/Shared/NoWindows.h +++ mac-3.99-u4-b5-s7/src/Shared/NoWindows.h @@ -39,8 +39,8 @@ typedef const wchar_t * LPCWSTR; #define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES); -#define max(a,b) (((a) > (b)) ? (a) : (b)) -#define min(a,b) (((a) < (b)) ? (a) : (b)) +inline bool max(int a, int b) { return (a > b) ? a : b; } +inline bool min(int a, int b) { return (a < b) ? a : b; } #define __stdcall #define CALLBACK