source: trunk/dports/multimedia/libdumb/Portfile @ 120325

Last change on this file since 120325 was 120325, checked in by mcalhoun@…, 3 years ago

New port: libdumb

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 120325 2014-05-23 12:53:21Z mcalhoun@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
16distfiles       dumb-${version}${extract.suffix}
17master_sites    sourceforge:dumb
18
19use_parallel_build  no
20
21checksums       rmd160  53c7931fec71dd4e67e19c4acf38c0f9202e5698 \
22                sha256  8d44fbc9e57f3bac9f761c3b12ce102d47d717f0dd846657fb988e0bb5d1ea33
23
24worksrcdir      dumb-${version}
25
26# patches to bulid shared libraries
27patchfiles                  \
28    patch-Makefile.inc.diff \
29    patch-Makefile.diff
30
31configure {
32    # mimic "make config"
33    set config [open "${worksrcpath}/make/config.txt" w 0644]
34    puts ${config} "include make/unix.inc"
35    puts ${config} "ALL_TARGETS := core core-examples core-headers"
36    puts ${config} "PREFIX := ${prefix}"
37    close ${config}
38}
39
40# dumb sets its own compiler flags with no simple way of adding more, so append them to compiler.
41if { ![variant_isset universal] } {
42    build.args-append CC=${configure.cc}
43} else {
44    build.args-append CC="${configure.cc} ${configure.universal_cflags}"
45}
46
47build.args-append              \
48    CURRENT_VERSION=${version} \
49    COMPAT_VERSION=1.0.0       \
50    MAKEFILE=Makefile
51   
52destroot.target-append                                \
53    INCLUDE_INSTALL_PATH=${destroot}${prefix}/include \
54    LIB_INSTALL_PATH=${destroot}${prefix}/lib         \
55    BIN_INSTALL_PATH=${destroot}${prefix}/bin         \
56    MAKEFILE=Makefile
57
58post-destroot {
59    set docdir ${prefix}/share/doc/${name}
60    xinstall -m 775 -d ${destroot}${docdir}
61    xinstall -m 0644 -W ${worksrcpath} readme.txt licence.txt ${destroot}${docdir}
62    foreach f [glob -directory ${worksrcpath}/docs *.txt] {
63        xinstall -m 0644 ${f} ${destroot}${docdir}
64    }
65}
Note: See TracBrowser for help on using the repository browser.