diff --git a/common/shlibs b/common/shlibs index 552a4d04e7..0aa615a8d1 100644 --- a/common/shlibs +++ b/common/shlibs @@ -429,6 +429,7 @@ libproxy.so.1 libproxy-0.4.6_1 libmoar.so MoarVM-2015.11_1 libFLAC.so.8 libflac-1.2.1_1 libFLAC++.so.6 libflac-1.2.1_1 +libMAC.so.6 libMAC-5.28_1 libmad.so.0 libmad-0.15.1b_1 libmatroska.so.6 libmatroska-1.4.1_5 libmatrix_client.so.0.2.1 mtxclient-0.2.1_1 diff --git a/srcpkgs/MonkeysAudio/files/MAC.pc b/srcpkgs/MonkeysAudio/files/MAC.pc new file mode 100644 index 0000000000..387490044f --- /dev/null +++ b/srcpkgs/MonkeysAudio/files/MAC.pc @@ -0,0 +1,17 @@ +V=%VER% +R=%REL% + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: MonkeysAudio library +Description: A fast and powerful lossless audio compressor and decompressor +Version: ${R} +Requires: +Libs: -L${libdir} -llibMAC +Cflags: -I${includedir} diff --git a/srcpkgs/MonkeysAudio/template b/srcpkgs/MonkeysAudio/template new file mode 100644 index 0000000000..af58c7f252 --- /dev/null +++ b/srcpkgs/MonkeysAudio/template @@ -0,0 +1,57 @@ +# Template file for 'MonkeysAudio' +pkgname=MonkeysAudio +version=5.28 +revision=1 +create_wrksrc=yes +build_style="gnu-makefile" +depends="libMAC>=${version}_${revision}" +short_desc="Fast and powerful lossless audio (de)compressor" +maintainer="Jürgen Buchmüller " +license="MIT" +homepage="https://monkeysaudio.com/" +distfiles="https://monkeysaudio.com/files/MAC_SDK_${version//./}.zip + https://monkeysaudio.com/license.html" +checksum="0000cbfad5f008014bf3d963b72039c518a1e93ded55b23da715d912c830623e + 7d60dabaf760f32180e272b5955d5f1a2febcf9930eff13e49a1934a286a5819" +skip_extraction="license.html" + +do_build() { + cp -p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/license.html ${wrksrc} + ln Source/Projects/NonWindows/Makefile . + vsed -i Makefile \ + -e "s;^VERSION.*;VERSION = 6.0.0;" \ + -e "s;^DLLLDOPTS.*;DLLLDOPTS = -shared -Wl,-soname,libMAC.so.6;" + make ${makejobs} +} + +do_install() { + make prefix="${DESTDIR}"/usr install + ln -s libMAC.so.6.0.0 "${DESTDIR}"/usr/lib/libMAC.so.6.0 + ln -s libMAC.so.6.0.0 "${DESTDIR}"/usr/lib/libMAC.so.6 + + vmkdir usr/lib/pkgconfig + sed ${FILESDIR}/MAC.pc \ + -e "s;%VER%;${version};" \ + -e "s;%REL%;${revision};" \ + > ${DESTDIR}/usr/lib/pkgconfig/MAC.pc + + vlicense license.html + vdoc Readme.txt +} + +libMAC-devel_package() { + short_desc+=" - development files" + depends="libMAC>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/libMAC.so + } +} + +libMAC_package() { + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/libMAC.so.*" + } +} diff --git a/srcpkgs/libMAC b/srcpkgs/libMAC new file mode 120000 index 0000000000..bf04618b53 --- /dev/null +++ b/srcpkgs/libMAC @@ -0,0 +1 @@ +MonkeysAudio \ No newline at end of file diff --git a/srcpkgs/libMAC-devel b/srcpkgs/libMAC-devel new file mode 120000 index 0000000000..bf04618b53 --- /dev/null +++ b/srcpkgs/libMAC-devel @@ -0,0 +1 @@ +MonkeysAudio \ No newline at end of file