You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
129 lines
4.5 KiB
Tcl
129 lines
4.5 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup active_variants 1.1
|
|
PortGroup gobject_introspection 1.0
|
|
PortGroup legacysupport 1.0
|
|
PortGroup yelp 1.0
|
|
|
|
# O_CLOEXEC, at least
|
|
legacysupport.newest_darwin_requires_legacy 10
|
|
|
|
name evince
|
|
version 3.36.7
|
|
revision 4
|
|
license GPL-2+
|
|
set branch [join [lrange [split ${version} .] 0 1] .]
|
|
description Evince is a document viewer for multiple document formats like pdf, and many others.
|
|
long_description ${description}
|
|
maintainers {devans @dbevans} openmaintainer
|
|
categories gnome print
|
|
platforms darwin
|
|
homepage https://wiki.gnome.org/Apps/Evince
|
|
master_sites gnome:sources/${name}/${branch}/
|
|
|
|
use_xz yes
|
|
|
|
checksums rmd160 70780e9b0be337b631a45036f6a225db4954073b \
|
|
sha256 65d61a423e3fbbe07001f65e87422dfb7d2e42b9edf0ca6a1d427af9a04b8f32 \
|
|
size 2580208
|
|
|
|
depends_build port:pkgconfig \
|
|
port:itstool \
|
|
port:gtk-doc \
|
|
port:appstream-glib \
|
|
port:autoconf \
|
|
port:automake \
|
|
port:libtool
|
|
|
|
depends_lib port:desktop-file-utils \
|
|
port:adwaita-icon-theme \
|
|
path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
|
|
port:gsettings-desktop-schemas \
|
|
port:gspell \
|
|
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
|
|
port:libxml2 \
|
|
port:libsecret \
|
|
path:lib/pkgconfig/poppler.pc:poppler \
|
|
port:libarchive \
|
|
port:libspectre \
|
|
port:tiff \
|
|
port:texlive-bin
|
|
|
|
gobject_introspection yes
|
|
|
|
# requires C++11
|
|
compiler.cxx_standard 2011
|
|
|
|
# blacklist old compilers that do not support gcc diagnostic pragmas in functions
|
|
# allow gcc-5+ on 10.5
|
|
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
|
|
|
|
patchfiles patch-browser-plugin-Makefile.am.diff \
|
|
dvi-backend.patch \
|
|
dont-use-ar-crD.patch
|
|
|
|
configure.cmd ./autogen.sh
|
|
|
|
configure.args --disable-schemas-compile \
|
|
--disable-silent-rules \
|
|
--disable-djvu \
|
|
--disable-xps \
|
|
--disable-multimedia \
|
|
--disable-nautilus \
|
|
--disable-libgnome-desktop \
|
|
--enable-compile-warnings=minimum \
|
|
--disable-debug \
|
|
--enable-ps \
|
|
--enable-pdf \
|
|
--enable-tiff \
|
|
--enable-dvi \
|
|
--enable-comics \
|
|
--disable-t1lib
|
|
|
|
# browser plugin requires -std=c++11 -stdlib=libc++
|
|
# disable plugin if libc++ is not configured
|
|
# browser plugin uses gtk_plug_new which is only available with gtk3 +x11
|
|
# disable plugin if variant +quartz is set
|
|
|
|
if {${configure.cxx_stdlib} ne "libc++" || [variant_isset quartz]} {
|
|
configure.args-append --disable-browser-plugin
|
|
}
|
|
|
|
variant quartz {}
|
|
|
|
if {[variant_isset quartz]} {
|
|
require_active_variants gtk3 quartz
|
|
} else {
|
|
require_active_variants gtk3 x11
|
|
|
|
# enable gnome-desktop thumbnail cache
|
|
|
|
depends_lib-append port:gnome-desktop
|
|
configure.args-replace --disable-libgnome-desktop --enable-libgnome-desktop
|
|
}
|
|
|
|
variant djvu description {Support for djvu documents using djvulibre} {
|
|
configure.args-replace --disable-djvu --enable-djvu
|
|
depends_lib-append port:djvulibre
|
|
}
|
|
|
|
variant multimedia description {Build optional multimedia support using Gstreamer} {
|
|
configure.args-replace --disable-multimedia --enable-multimedia
|
|
depends_lib-append port:gstreamer1 \
|
|
port:gstreamer1-gst-plugins-base
|
|
}
|
|
|
|
variant nautilus conflicts quartz description {Build optional nautilus extensions} {
|
|
configure.args-replace --disable-nautilus --enable-nautilus
|
|
depends_lib-append port:nautilus
|
|
}
|
|
|
|
post-activate {
|
|
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
|
|
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
|
|
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
|
|
}
|
|
|
|
livecheck.type gnome
|