Ticket #59946: Portfile

File Portfile, 3.3 KB (added by snowflake (Dave Evans), 4 years ago)

Portfile for print/scribus-devel

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
3PortSystem          1.0
4PortGroup           cmake 1.1
5PortGroup           github 1.0
6PortGroup           qt5 1.0
7
8qt5.depends_component qttools qttranslations
9qt5.min_version     5.10.0
10
11set git_commit      b5f73fe5ca68db5af07d35a35f7b3d99e1bf54d4
12set git_date        20200207
13github.setup        scribusproject scribus ${git_commit}
14name                scribus-devel
15version             1.5.6.svn-${git_date}
16categories          print
17license             LGPL-2+ BSD MIT
18platforms           darwin
19maintainers         nomaintainer
20
21# Scribus does not link to openssl
22#license_noconflict  openssl
23
24description         qt5-based WYSIWYG desktop publishing application
25
26long_description    Scribus is an open source desktop publishing program. It \
27                    provides true WYSIWYG editing, excellent PDF export \
28                    facilities, and a wide range of other input and output \
29                    options. This port tracks the development branch, \
30                    currently 1.5.x.
31
32homepage            http://www.scribus.net/
33
34checksums           rmd160  86bc4d2adfda21cfe24b15f2ef5cf9c8025f068e \
35                    sha256  c08ce7bff8a8dad3f16ed961a0ef2f7326be4e0891f84502486b2243cab9cac8 \
36                    size    87079378
37
38depends_build-append \
39                    path:bin/perl:perl5
40
41depends_lib-append \
42                    path:lib/pkgconfig/cairo.pc:cairo \
43                    port:boost \
44                    port:expat \
45                    port:fontconfig \
46                    port:ghostscript \
47                    port:harfbuzz \
48                    port:harfbuzz-icu \
49                    port:hunspell \
50                    port:icu \
51                    port:lcms2 \
52                    port:libart_lgpl \
53                    port:libiconv \
54                    port:libcdr-0.1 \
55                    port:libfreehand \
56                    port:libmspub \
57                    port:libpagemaker \
58                    port:librevenge \
59                    port:libvisio-0.1 \
60                    port:libxml2 \
61                    port:podofo \
62                    port:poppler \
63                    port:python37 \
64                    port:tiff \
65                    port:zlib
66
67compiler.cxx_standard   2011
68
69set PyFRM           ${frameworks_dir}/Python.framework/Versions
70
71configure.args-append \
72                    -DCMAKE_INSTALL_PREFIX="${applications_dir}/[string toupper ${name} 0].app" \
73                    -DWITH_PODOFO=YES \
74                    -DWANT_DISTROBUILD=YES \
75                    -DWITH_BOOST=YES \
76                    -DWANT_GRAPHICSMAGICK=NO \
77                    -DWANT_NOOSG=YES \
78                    -DPython3_LIBRARIES="${prefix}/lib" \
79                    -DPython3_INCLUDE_DIR="${PyFRM}/3.7/include/python3.7m"
80
81variant bitmap description {Input filters for most GraphicsMagick bitmap formats} {
82    configure.args-delete   -DWANT_GRAPHICSMAGICK=NO
83    configure.args-append   -DWANT_GRAPHICSMAGICK=YES
84    depends_lib-append      port:GraphicsMagick
85}
86
87build.env           HOME=${worksrcpath}
88
89# These can be uncommented to livecheck for the devel version
90#livecheck.url       https://www.scribus.net/downloads/unstable-branch/
91#livecheck.regex     /scribus-devel/(\[a-z0-9\]+(\\.\[a-z0-9\]+)+)/