source: trunk/dports/audio/mpg123/Portfile

Last change on this file was 127969, checked in by khindenburg@…, 3 years ago

mpg123: update to 1.21.0 #42723

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 127969 2014-11-09 16:28:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                mpg123
8version             1.21.0
9categories          audio
10maintainers         gmx.at:astifter openmaintainer
11license             GPL-2 LGPL-2.1
12
13description         fast mp3 player for linux and unix systems
14long_description \
15    Mpg123 is a fast, free and portable MPEG audio player for Unix. It \
16    supports MPEG 1.0/2.0 layers 1, 2 and 3. For full CD quality \
17    playback (44 kHz, 16 bit, stereo) a Pentium, SPARCstation10, DEC \
18    Alpha or similar CPU is required. Mono and/or reduced quality \
19    playback (22 kHz or 11 kHz) is even possible on 486 CPUs. \
20    \
21    This version uses EsounD on a pure Darwin install and CoreAudio \
22    on Mac OS X.
23
24homepage            http://www.mpg123.de/
25platforms           darwin
26master_sites        sourceforge:project/mpg123/mpg123/${version} \
27                    ${homepage}download/
28use_bzip2           yes
29
30checksums           rmd160  5f5e0c8c482a16d093603845f67bfe733aac3e79 \
31                    sha256  3ad197f77c9ffdf3601e1c3183ae0709ccb3c3de68309527ce9375fcfb15dcba
32
33depends_lib         port:libtool
34
35platform macosx {
36    configure.args-append --with-audio=coreaudio --with-module-suffix=.so
37}
38
39# For i386 we'd like to use --with-cpu=sse but this fails with:
40# ld: illegal text-relocation to intwinbase in .libs/tabinit_mmx.o from _INT123_make_decode_tables_mmx_asm in .libs/tabinit_mmx.o for architecture i386
41# see also http://sourceforge.net/tracker/index.php?func=detail&aid=3504701&group_id=135704&atid=733194
42
43if {[variant_isset universal]} {
44    set merger_configure_args(x86_64) --with-cpu=x86-64
45    set merger_configure_args(i386) --with-cpu=i586
46    set merger_configure_args(ppc) --with-cpu=altivec
47    set merger_configure_args(ppc64) --with-cpu=altivec
48} else {
49    switch -- ${configure.build_arch} {
50        x86_64 { configure.args-append --with-cpu=x86-64 }
51        i386 { configure.args-append --with-cpu=i586 }
52        ppc -
53        ppc64 { configure.args-append --with-cpu=altivec }
54    }
55}
Note: See TracBrowser for help on using the repository browser.