mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
68 lines
2.3 KiB
Tcl
68 lines
2.3 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
|
|
name aacplusenc
|
|
version 0.17.5
|
|
categories audio
|
|
license GPL-2
|
|
maintainers nomaintainer
|
|
description HE-AACv2/AAC+ encoder
|
|
long_description aacplusenc is a command line HE-AAC encoder based on 3GPP \
|
|
sources.
|
|
|
|
homepage https://teknoraver.net/software/mp4tools/
|
|
# https://github.com/teknoraver/aacplusenc
|
|
|
|
master_sites http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/a/${name}/:teknoraver-ppa
|
|
distname ${name}_${version}
|
|
|
|
distfiles ${name}_${version}${extract.suffix}:teknoraver-ppa
|
|
|
|
checksums ${name}_${version}${extract.suffix} \
|
|
rmd160 c59efc3a3f8126b4650b304a043f176b80078d82 \
|
|
sha256 318df58a86ac0647d6bfbcd8766fe301ad2ed08ffb4ef4e016e088f4dceb1669 \
|
|
size 547953
|
|
|
|
extract.only ${distname}${extract.suffix}
|
|
|
|
depends_lib path:lib/libfftw3f.dylib:fftw-3-single
|
|
|
|
worksrcdir aacplusenc
|
|
|
|
patchfiles-append configure.patch
|
|
|
|
configure.env-append \
|
|
PREFIX=${prefix}
|
|
configure.pre_args {}
|
|
build.pre_args-append \
|
|
EXTRACFLAGS=${configure.cflags}
|
|
|
|
destroot {
|
|
# Don't use make install because it does not respect the common
|
|
# $(DESTDIR)$(prefix) and does not install the man page.
|
|
xinstall -m 0755 ${worksrcpath}/aacplusenc ${destroot}${prefix}/bin/aacplusenc
|
|
xinstall -m 0444 ${worksrcpath}/aacplusenc.1 ${destroot}${prefix}/share/man/man1/aacplusenc.1
|
|
}
|
|
|
|
variant test description {Enable testing} {
|
|
test.run yes
|
|
test.target test
|
|
depends_test bin:mplayer:MPlayer
|
|
|
|
# Sample .wav file needed for tests. Download from Samplelib:
|
|
master_sites-append https://download.samplelib.com/wav/:samplelib
|
|
|
|
distfiles-append sample-3s.wav:samplelib
|
|
|
|
checksums-append sample-3s.wav \
|
|
rmd160 37e56eacf829951d3a5c4586bafb6cc6613c3ce7 \
|
|
sha256 b3726eac5c9612ea20e245314812575bf9df5fb6b8024b80c7cfe9033452bb2b \
|
|
size 563756
|
|
|
|
post-extract {
|
|
# Install .wav file as test.wav
|
|
file copy ${distpath}/sample-3s.wav ${worksrcpath}/test.wav
|
|
}
|
|
}
|