Ticket #38264: Portfile

File Portfile, 1.8 KB (added by cooljeanius (Eric Gallager), 12 years ago)

Portfile for gcab

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