# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 PortGroup qmake 1.0 github.setup goldendict goldendict 1.5.0-RC2 revision 1 # FIXME: add proper categories categories office platforms darwin maintainers ryandesign openmaintainer license GPL-3+ description Dictionary lookup program long_description A feature-rich dictionary lookup program, \ supporting multiple dictionary formats \ (StarDict/Babylon/Lingvo/Dictd) and online \ dictionaries, featuring perfect article \ rendering with the complete markup, \ illustrations and other content retained, \ and allowing you to type in words without \ any accents or correct case. homepage http://goldendict.org/ checksums rmd160 ae6b9d180492bb5beca70ae5dc23ea0a407fcb1f \ sha256 e735cd74030b34accf20cece78dd2363222067cd5d8e593f70117751199fd36d depends_lib-append port:bzip2 \ port:eb \ path:lib/libavcodec.dylib:ffmpeg \ port:hunspell \ port:libao \ port:libogg \ port:libvorbis \ port:libiconv \ port:lzo2 \ port:opencc \ port:phonon \ port:zlib post-extract { delete ${worksrcpath}/maclibs ${worksrcpath}/winlibs } patchfiles patch-goldendict.pro.diff \ patch-epwing_book.cc.diff \ patch-epwing_book.hh.diff \ patch-tiff.cc.diff post-patch { reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/goldendict.pro } post-configure { # For some reason the Makefile qmake generates hardcodes the C++ compiler # that qt4-mac was made with as the one used to build any source files # specified as OBJECTIVE_SOURCES. Replace it with $(CXX) which is set by # the qmake portgroup. copy ${worksrcpath}/Makefile ${worksrcpath}/Makefile.orig reinplace -E {/\$\(QMAKE_COMP_QMAKE_OBJECTIVE_CXXFLAGS\)/s/^([[:space:]]+)[^[:space:]]+/\1\$\(CXX\)/} ${worksrcpath}/Makefile } destroot { copy ${worksrcpath}/GoldenDict.app ${destroot}${applications_dir} }