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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gcab |
---|
7 | version 0.4 |
---|
8 | categories gnome devel |
---|
9 | platforms darwin |
---|
10 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
11 | license LGPL-2.1+ |
---|
12 | |
---|
13 | description ${name} is a program to create Microsoft cabinet (.cab) archives |
---|
14 | |
---|
15 | long_description ${description}. It also provides a gobject-introspection interface. |
---|
16 | |
---|
17 | homepage |
---|
18 | # I tried using "gnome" for the master_sites entry but that didn't work |
---|
19 | master_sites http://ftp.acc.umu.se/pub/GNOME/sources/${name}/${version} |
---|
20 | |
---|
21 | checksums sha256 f907b16f1246fbde9397363d9c4ad2291f2a8a53dcd4f5979d3912bb856991b8 |
---|
22 | |
---|
23 | use_xz yes |
---|
24 | depends_build-append port:pkgconfig \ |
---|
25 | port:valabind \ |
---|
26 | port:gettext \ |
---|
27 | port:intltool |
---|
28 | post-patch { |
---|
29 | reinplace "s|m4\_esyscmd\(build-aux\/git-version-gen\ \.tarball-version\)|${version}|" ${worksrcpath}/configure.ac |
---|
30 | reinplace "s|\,\-\-version\-script\=\$\{srcdir\}\/libgcab\.syms||" ${worksrcpath}/Makefile.am |
---|
31 | } |
---|
32 | pre-configure { |
---|
33 | system -W ${worksrcpath} "autoupdate -f" |
---|
34 | reinplace "s|m4\_esyscmd\(build-aux\/git-version-gen\ \.tarball-version\)|${version}|" ${worksrcpath}/configure.ac |
---|
35 | } |
---|
36 | use_autoreconf yes |
---|
37 | autoreconf.args -fvi |
---|
38 | depends_lib-append port:glib2 \ |
---|
39 | port:zlib \ |
---|
40 | port:vala \ |
---|
41 | port:gobject-introspection |
---|
42 | |
---|
43 | configure.ldflags-delete --version-script=./libgcab.syms |
---|
44 | configure.args-append --disable-gtk-doc |
---|
45 | |
---|
46 | variant docs description {Builds documentation} { |
---|
47 | depends_build-append port:gtk-doc |
---|
48 | configure.args-delete --disable-gtk-doc |
---|
49 | configure.args-append --enable-gtk-doc |
---|
50 | } |
---|