diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..5f718e5 --- /dev/null +++ b/COPYING @@ -0,0 +1 @@ +For copying information, please refer to the LICENSE file. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..febd53f --- /dev/null +++ b/Makefile.am @@ -0,0 +1,23 @@ +## Copyright (c) 2013 Tiancheng "Timothy" Gu +## Modifications copyright (c) 2016 Mike Brady +## Licensed under the Apache License, Version 2.0 (the "License"); +## you may not use this file except in compliance with the License. +## You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. + +ACLOCAL_AMFLAGS = -I m4 + +AM_CXXFLAGS = -I$(top_srcdir)/codec -g -O3 -c + +if EXAMPLE +EXAMPLE_DIR = convert-utility +endif + +SUBDIRS = codec $(EXAMPLE_DIR) diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/codec/Makefile.am b/codec/Makefile.am new file mode 100644 index 0000000..b5ce828 --- /dev/null +++ b/codec/Makefile.am @@ -0,0 +1,39 @@ +## Copyright (c) 2013 Tiancheng "Timothy" Gu +## Modifications copyright (c) 2016 Mike Brady +## Licensed under the Apache License, Version 2.0 (the "License"); +## you may not use this file except in compliance with the License. +## You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. + +lib_LTLIBRARIES = libalac.la + +libalac_la_CPPFLAGS = -Wno-multichar +libalac_la_LDFLAGS = -version-info @ALAC_VERSION@ + +libalac_la_SOURCES = \ + EndianPortable.c \ + ALACBitUtilities.c \ + ALACDecoder.cpp \ + ALACEncoder.cpp \ + ag_dec.c \ + ag_enc.c \ + dp_dec.c \ + dp_enc.c \ + matrix_dec.c \ + matrix_enc.c + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = alac.pc + +# Install to include/alac +alacincludedir = $(includedir)/alac + +# Install everything +alacinclude_HEADERS = *.h diff --git a/codec/makefile b/codec/makefile.original similarity index 100% rename from codec/makefile rename to codec/makefile.original diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e271abf --- /dev/null +++ b/configure.ac @@ -0,0 +1,76 @@ +dnl -*- Autoconf -*- +dnl Process this file with autoconf to produce a configure script. + +dnl Copyright (c) 2013 Tiancheng "Timothy" Gu +dnl Modifications copyright (c) 2016 Mike Brady +dnl Licensed under the Apache License, Version 2.0 (the "License"); +dnl you may not use this file except in compliance with the License. +dnl You may obtain a copy of the License at +dnl +dnl http://www.apache.org/licenses/LICENSE-2.0 +dnl +dnl Unless required by applicable law or agreed to in writing, software +dnl distributed under the License is distributed on an "AS IS" BASIS, +dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +dnl See the License for the specific language governing permissions and +dnl limitations under the License. + +AC_PREREQ([2.68]) +AC_INIT([alac], [0.0.6], [mikebrady@eircom.net]) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([codec/dp_enc.c]) +AC_CONFIG_HEADERS([config.h]) + +dnl AC_CONFIG_AUX_DIR(.) +AC_CONFIG_MACRO_DIR([m4]) +dnl AM_INIT_AUTOMAKE([tar-ustar foreign]) +dnl m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +dnl AM_MAINTAINER_MODE + +dnl Various options for configure +AC_ARG_ENABLE([example], + [AS_HELP_STRING([--enable-example], + [enable example encoding program (default is no)])], + [example=$enableval], [example=no]) + +dnl Automake conditionals to set +AM_CONDITIONAL(EXAMPLE, test x$example = xyes) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_CXX + +dnl Checks for header files. +AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_INT8_T +AC_TYPE_SIZE_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T +AC_TYPE_UINT8_T + +# Checks for library functions. +AC_CHECK_FUNCS([memset strrchr]) + +dnl Setup for libtool +LT_INIT + +dnl soname version to use +dnl goes by ‘current[:revision[:age]]’ with the soname ending up as +dnl current.age.revision. +ALAC_VERSION=0 + +AC_SUBST(ALAC_VERSION) + +AC_CONFIG_FILES([Makefile + codec/Makefile + convert-utility/Makefile + codec/alac.pc]) +AC_OUTPUT diff --git a/convert-utility/Makefile.am b/convert-utility/Makefile.am new file mode 100644 index 0000000..c4fcc13 --- /dev/null +++ b/convert-utility/Makefile.am @@ -0,0 +1,23 @@ +## Copyright (c) 2013 Tiancheng "Timothy" Gu +## Modifications copyright (c) 2016 Mike Brady +## Licensed under the Apache License, Version 2.0 (the "License"); +## you may not use this file except in compliance with the License. +## You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. + +bin_PROGRAMS = alacconvert$(EXEEXT) + +alacconvert_CPPFLAGS = -Wno-multichar +alacconvert_LDADD = ../codec/libalac.la +alacconvert_SOURCES = \ + main.cpp \ + CAFFileALAC.cpp + +noinst_HEADERS = $(top_srcdir)/convert-utility/CAFFileALAC.h diff --git a/convert-utility/makefile b/convert-utility/makefile.original similarity index 100% rename from convert-utility/makefile rename to convert-utility/makefile.original