source: trunk/dports/games/xgalaga/Portfile

Last change on this file was 135120, checked in by ryandesign@…, 2 years ago

xgalaga: use new locations of libtool's config.guess and config.sub

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 135120 2015-04-15 20:04:33Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    xgalaga
7version                 2.1.1.0
8revision                2
9categories              games x11
10license                 GPL-2
11platforms               darwin
12maintainers             nomaintainer
13description             xgalaga is a rework of the Galaga shooting game.
14long_description        ${description}
15
16homepage                http://sourceforge.net/projects/xgalaga/
17master_sites            sourceforge
18checksums               md5     f37c3377b245d2d53b33eb489966bf28 \
19                        sha1    ef40ad833d2434b0643d4c00202bd75ec14b94ac \
20                        rmd160  b55a97187b61ffe7c072ecd784cf9a16fe568c26
21
22patchfiles              patch-Makefile.in.diff \
23                        patch-main.c.diff
24
25depends_lib             port:xorg-libX11 \
26                        port:xorg-libXext \
27                        port:xorg-libXmu \
28                        port:xorg-libXt \
29                        port:xpm
30
31# The shipped config.guess and config.sub are too old to recognize OS X.
32# https://sourceforge.net/p/xgalaga/bugs/2/
33pre-configure {
34    xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath}
35}
36use_autoconf            yes
37
38# The configure script uses these variables incorrectly, hence the strange values.
39configure.pre_args      --prefix=${prefix}/share/${name}
40configure.args          --exec-prefix=${prefix}/bin \
41                        --mandir=${prefix}/share/man \
42                        --with-xpm-lib=${prefix}/lib
43
44post-destroot {
45    set docdir ${prefix}/share/doc/${subport}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 644 -W ${worksrcpath} \
48        CHANGES \
49        CREDITS \
50        README \
51        README.SOUND \
52        ${destroot}${docdir}
53}
54
55pre-activate {
56    # xgalaga <= 2.1.1.0_1 installed its manpage directly into /usr; remove it if found.
57    # https://sourceforge.net/p/xgalaga/bugs/11/
58    foreach filepath {/usr/share/man/xgalaga.6x.gz} {
59        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
60            if {[catch {delete ${filepath}}]} {
61                ui_warn "Cannot delete ${filepath}; please remove it manually"
62            }
63        }
64    }
65}
Note: See TracBrowser for help on using the repository browser.