source: trunk/dports/office/goldendict/Portfile

Last change on this file was 148825, checked in by devans@…, 16 months ago

dependents of ffmpeg: increment revision to rebuild with ffmpeg version 3.0.2. (#50694).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 148825 2016-05-19 16:38:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           qmake 1.0
7
8github.setup        goldendict goldendict 1.5.0-RC2
9revision            1
10# FIXME: add proper categories
11categories          office
12platforms           darwin
13maintainers         ryandesign openmaintainer
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  ae6b9d180492bb5beca70ae5dc23ea0a407fcb1f \
30                    sha256  e735cd74030b34accf20cece78dd2363222067cd5d8e593f70117751199fd36d
31
32depends_lib-append  port:bzip2 \
33                    port:eb \
34                    path:lib/libavcodec.dylib:ffmpeg \
35                    port:hunspell \
36                    port:libao \
37                    port:libogg \
38                    port:libvorbis \
39                    port:libiconv \
40                    port:lzo2 \
41                    port:opencc \
42                    port:phonon \
43                    port:zlib
44
45post-extract {
46    delete ${worksrcpath}/maclibs ${worksrcpath}/winlibs
47}
48
49patchfiles          patch-goldendict.pro.diff \
50                    patch-epwing_book.cc.diff \
51                    patch-epwing_book.hh.diff \
52                    patch-tiff.cc.diff
53
54post-patch {
55    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/goldendict.pro
56}
57
58post-configure {
59    # For some reason the Makefile qmake generates hardcodes the C++ compiler
60    # that qt4-mac was made with as the one used to build any source files
61    # specified as OBJECTIVE_SOURCES. Replace it with $(CXX) which is set by
62    # the qmake portgroup.
63    copy ${worksrcpath}/Makefile ${worksrcpath}/Makefile.orig
64    reinplace -E {/\$\(QMAKE_COMP_QMAKE_OBJECTIVE_CXXFLAGS\)/s/^([[:space:]]+)[^[:space:]]+/\1\$\(CXX\)/} ${worksrcpath}/Makefile
65}
66
67destroot {
68    copy ${worksrcpath}/GoldenDict.app ${destroot}${applications_dir}
69}
Note: See TracBrowser for help on using the repository browser.