source: trunk/dports/office/goldendict/Portfile @ 101399

Last change on this file since 101399 was 97316, checked in by ryandesign@…, 8 years ago

goldendict: new port, version 1.0.1-20120825

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 97316 2012-09-03 12:29:13Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           qt4 1.0
7
8github.setup        goldendict goldendict e4adc5f
9version             1.0.1-20120825
10# FIXME: add proper categories
11categories          office
12platforms           darwin
13maintainers         nomaintainer
14license             GPL-3+
15
16description         Dictionary lookup program
17
18long_description    A feature-rich dictionary lookup program, \
19                    supporting multiple dictionary formats \
20                    (StarDict/Babylon/Lingvo/Dictd) and online \
21                    dictionaries, featuring perfect article \
22                    rendering with the complete markup, \
23                    illustrations and other content retained, \
24                    and allowing you to type in words without \
25                    any accents or correct case.
26
27homepage            http://goldendict.org/
28
29checksums           rmd160  e7bc51564dda4c93dfb34af2a4b13eb0bf879e58 \
30                    sha256  e65408498d4662e6d04c29b93ee0692718288c9995be87de54348783215d56f9
31
32depends_lib-append  port:bzip2 \
33                    port:hunspell \
34                    port:libogg \
35                    port:libvorbis \
36                    port:libiconv \
37                    port:phonon \
38                    port:zlib
39
40patchfiles          patch-goldendict.pro.diff
41
42post-patch {
43    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/goldendict.pro
44}
45
46configure.cmd       ${qt_qmake_cmd}
47configure.pre_args
48configure.universal_args-delete --disable-dependency-tracking
49
50post-configure {
51    # For some reason the Makefile qmake generates hardcodes the compiler
52    # that qt4-mac was made with as the one used to build lionsupport.o.
53    # Replace it with $(CC) which we set up for the correct compiler and
54    # -arch flags with the build.args below.
55    reinplace -E "/-o build\\/lionsupport.o/s/^(\[\[:space:\]\]+)\[^\[:space:\]\]+/\\1\\$\\(CC\\)/" ${worksrcpath}/Makefile
56}
57
58variant universal {}
59
60build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
61                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
62                    LINK="${configure.cxx} [get_canonical_archflags cxx]" \
63                    XXXOBJC="${configure.cc} [get_canonical_archflags cc]"
64
65destroot {
66    copy ${worksrcpath}/Goldendict.app ${destroot}${applications_dir}
67}
Note: See TracBrowser for help on using the repository browser.