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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | |
---|
6 | name enigma |
---|
7 | subport enigma-devel {} |
---|
8 | |
---|
9 | if {${subport} eq "enigma"} { |
---|
10 | conflicts enigma-devel |
---|
11 | github.setup Enigma-Game Enigma 1.30 |
---|
12 | github.tarball_from releases |
---|
13 | distname ${github.project}-${github.version}-src |
---|
14 | revision 0 |
---|
15 | checksums rmd160 e6ff23ca7859d468175abd821f89a6434f65c396 \ |
---|
16 | sha256 ae64b91fbc2b10970071d0d78ed5b4ede9ee3868de2e6e9569546fc58437f8af \ |
---|
17 | size 43653520 |
---|
18 | |
---|
19 | patchfiles-append patch-remove-SDL-frameworks-stop-static-linking.diff |
---|
20 | |
---|
21 | # /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/system_error:434:1: note: candidate function not viable: no known conversion from 'basic_ifstream<char>' to 'const std::__1::error_condition' for 1st argument |
---|
22 | compiler.blacklist-append {macports-clang-[6-9].0} |
---|
23 | |
---|
24 | github.livecheck.regex {([0-9.]+)} |
---|
25 | |
---|
26 | } elseif {${subport} eq "enigma-devel"} { |
---|
27 | conflicts enigma |
---|
28 | |
---|
29 | github.setup Enigma-Game Enigma 26a0ad7d8918f1e640bafac599976ddf18de23fa |
---|
30 | version 20191107 |
---|
31 | revision 4 |
---|
32 | checksums rmd160 156709b0dfedf9c9282562a2cabbe25241d572d4 \ |
---|
33 | sha256 4e546ffc456add0aa7747be01b1cd5f33993b4d40dd9bed8d20524fc586a7ed1 \ |
---|
34 | size 51867405 |
---|
35 | |
---|
36 | # use SDL dylibs instead of frameworks |
---|
37 | patchfiles-append patch-configure-ac-remove-frameworks.diff \ |
---|
38 | patch-src-makefile-am-remove-frameworks.diff |
---|
39 | |
---|
40 | # fix library links |
---|
41 | patchfiles-append patch-configure-ac-fix-libiconv-libicuuc.diff \ |
---|
42 | patch-configure-ac-stop-static-linking.diff |
---|
43 | |
---|
44 | use_autoconf yes |
---|
45 | autoconf.cmd ./autogen.sh |
---|
46 | depends_build-append port:autoconf port:automake |
---|
47 | |
---|
48 | compiler.cxx_standard 2011 |
---|
49 | } |
---|
50 | |
---|
51 | categories games |
---|
52 | maintainers nomaintainer |
---|
53 | license GPL-2+ |
---|
54 | homepage https://www.nongnu.org/enigma/ |
---|
55 | |
---|
56 | description puzzle game inspired by the games Oxyd and Rock'n'Roll |
---|
57 | |
---|
58 | long_description Enigma is a puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll \ |
---|
59 | on the Amiga. The object of the game is to find and uncover pairs of \ |
---|
60 | identically colored Oxyd stones. Simple? Yes. Easy? Certainly not! Hidden \ |
---|
61 | traps, vast mazes, laser beams, and, most of all, countless hairy puzzles \ |
---|
62 | usually block your direct way to the Oxyd stones. |
---|
63 | |
---|
64 | use_parallel_build no |
---|
65 | |
---|
66 | # c++17 has a conflicting header |
---|
67 | post-patch { |
---|
68 | move ${worksrcpath}/intl/VERSION ${worksrcpath}/intl/VERSION.txt |
---|
69 | } |
---|
70 | |
---|
71 | configure.args-append --with-libintl-prefix=${prefix} |
---|
72 | |
---|
73 | # uses a bundled lua-5.1 version |
---|
74 | configure.cppflags-prepend \ |
---|
75 | -I${worksrcpath}/lib-src/lua |
---|
76 | |
---|
77 | depends_build-append port:pkgconfig \ |
---|
78 | port:ImageMagick \ |
---|
79 | port:texi2html \ |
---|
80 | port:osxutils |
---|
81 | |
---|
82 | depends_lib port:libsdl \ |
---|
83 | port:libsdl_image \ |
---|
84 | port:libsdl_mixer \ |
---|
85 | port:libsdl_ttf \ |
---|
86 | port:freetype \ |
---|
87 | port:gettext \ |
---|
88 | path:include/turbojpeg.h:libjpeg-turbo \ |
---|
89 | port:libpng \ |
---|
90 | port:xercesc3 \ |
---|
91 | port:curl \ |
---|
92 | port:zlib \ |
---|
93 | port:bzip2 \ |
---|
94 | port:libiconv \ |
---|
95 | path:lib/pkgconfig/icu-uc.pc:icu |
---|
96 | |
---|
97 | build.target all macapp |
---|
98 | |
---|
99 | destroot { |
---|
100 | copy ${worksrcpath}/etc/macfiles/Enigma.app \ |
---|
101 | ${destroot}${applications_dir}/ |
---|
102 | } |
---|