Commits

Ryan Schmidt authored 80bb1d0efca
wmcube: Fix build failure due to use of inline

Also use the right compiler and -arch flags and add a universal variant; Remove -L flag referring to nonexistent ./libdocapp directory; Use MacPorts cflags, cppflags, ldflags variables; Add xorg-libX11 dependency since it does link with it explicitly; Disable livecheck since the last release was in 2003.
No tags

x11/wmcube/Portfile

Modified
1 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 2
3 3 PortSystem 1.0
4 4
5 5 name wmcube
6 6 version 0.98
7 -revision 1
7 +revision 2
8 8 checksums md5 efc6f484c53f0a98a76925a6e1a74cd3 \
9 9 rmd160 003abe7f3a409cbdb5880d503d8f60e081c41736 \
10 10 sha256 53c2b3abee52b875dbf3d1a867ac1b92a05c88f220b8e29d8253dd152c9010a4 \
11 11 size 38310
12 12
13 13 categories x11
14 14 platforms darwin
15 15 maintainers nomaintainer
16 16 license GPL-2+
17 17
18 18 description 3D objects tumbling about representing CPU load.
19 19
20 20 long_description Many different objects and will select a random object if \
21 21 you click on the dockapp. The ability to zoom in/out and \
22 22 remove the percent label is present as well.
23 23
24 24 homepage https://web.archive.org/web/20121116163211/http://dockapps.windowmaker.org/file.php/id/162
25 25 master_sites macports_distfiles
26 26
27 -depends_lib port:xorg-libXext \
27 +depends_lib port:xorg-libX11 \
28 + port:xorg-libXext \
28 29 port:xpm
29 30
30 31 worksrcdir ${name}/${name}
31 32
32 33 use_configure no
33 -universal_variant no
34 +
35 +# Don't inline; causes build failure at least with recent clang.
36 +configure.cflags-append \
37 + -D__STRICT_ANSI__
38 +
39 +variant universal {}
40 +
34 41 build.args -f Makefile.OPENBSD \
35 - LIBDIR="-L${prefix}/lib -L./libdocapp" \
36 - INCLUDES="-I${prefix}/include"
42 + CC="${configure.cc} ${configure.cflags} [get_canonical_archflags cc]" \
43 + LIBDIR="${configure.ldflags}" \
44 + INCLUDES="${configure.cppflags}"
37 45
38 46 destroot {
39 47 xinstall -m 0755 ${worksrcpath}/${name} \
40 48 ${destroot}${prefix}/bin
41 49 file copy ${worksrcpath}/../3dObjects \
42 50 ${destroot}${prefix}/share/${name}
43 51 }
52 +
53 +livecheck.type none

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut