source: trunk/dports/multimedia/libdumb/Portfile

Last change on this file was 120326, checked in by ryandesign@…, 3 years ago

libdumb: set distname instead of distfiles and worksrcdir; rewrite master_sites to avoid redirects; set -arch flags even when not building universal

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 120326 2014-05-23 13:11:36Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libdumb
7version         0.9.3
8categories      multimedia
9license         Permissive
10platforms       darwin
11maintainers     mcalhoun openmaintainer
12description     IT, XM, S3M and MOD player library
13long_description ${description}
14homepage        http://dumb.sourceforge.net
15
16distname        dumb-${version}
17master_sites    sourceforge:project/dumb/dumb/${version}/
18
19use_parallel_build  no
20
21checksums       rmd160  53c7931fec71dd4e67e19c4acf38c0f9202e5698 \
22                sha256  8d44fbc9e57f3bac9f761c3b12ce102d47d717f0dd846657fb988e0bb5d1ea33
23
24# patches to bulid shared libraries
25patchfiles                  \
26    patch-Makefile.inc.diff \
27    patch-Makefile.diff
28
29configure {
30    # mimic "make config"
31    set config [open "${worksrcpath}/make/config.txt" w 0644]
32    puts ${config} "include make/unix.inc"
33    puts ${config} "ALL_TARGETS := core core-examples core-headers"
34    puts ${config} "PREFIX := ${prefix}"
35    close ${config}
36}
37
38variant universal {}
39
40# dumb sets its own compiler flags with no simple way of adding more, so append them to compiler.
41build.args-append CC="${configure.cc} [get_canonical_archflags cc]"
42
43build.args-append              \
44    CURRENT_VERSION=${version} \
45    COMPAT_VERSION=1.0.0       \
46    MAKEFILE=Makefile
47   
48destroot.target-append                                \
49    INCLUDE_INSTALL_PATH=${destroot}${prefix}/include \
50    LIB_INSTALL_PATH=${destroot}${prefix}/lib         \
51    BIN_INSTALL_PATH=${destroot}${prefix}/bin         \
52    MAKEFILE=Makefile
53
54post-destroot {
55    set docdir ${prefix}/share/doc/${name}
56    xinstall -m 775 -d ${destroot}${docdir}
57    xinstall -m 0644 -W ${worksrcpath} readme.txt licence.txt ${destroot}${docdir}
58    foreach f [glob -directory ${worksrcpath}/docs *.txt] {
59        xinstall -m 0644 ${f} ${destroot}${docdir}
60    }
61}
Note: See TracBrowser for help on using the repository browser.