source: trunk/dports/x11/gtk1/Portfile

Last change on this file was 137129, checked in by khindenburg@…, 2 years ago

gtk1: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
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: Portfile 137129 2015-06-05 03:38:38Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            gtk1
7version         1.2.10
8set branch      [join [lrange [split ${version} .] 0 1] .]
9revision        10
10categories      x11
11license         LGPL
12maintainers     nomaintainer
13description     Gimp ToolKit version 1
14homepage        http://www.gtk.org/
15platforms       darwin freebsd sunos
16
17long_description GTK+, the Gimp ToolKit, is a library for creating graphical \
18                 user interfaces for the X Window System.
19
20master_sites    gnome:sources/gtk+/${branch}/ \
21                                ftp://ftp.gtk.org/pub/gtk/v${branch}/ \
22                macports:lt:lt
23
24distname        gtk+-${version}
25set source_distfile     ${distname}${extract.suffix}
26distfiles       ${source_distfile} ltconfig13:lt ltmain13:lt
27checksums       ${source_distfile} md5 4d5cb2fc7fb7830e4af9747a36bfce20 \
28                ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
29                ltmain13 md5 e094ae92724c4015dbab97de151c2525
30extract.only    ${source_distfile}
31
32depends_lib     port:glib1 port:xorg-libXext port:xorg-libXt
33
34patchfiles      patch-config.guess patch-config.sub \
35                        patch-gtk.m4.diff
36
37post-patch {
38           copy -force ${distpath}/ltconfig13 ${worksrcpath}/ltconfig
39           copy -force ${distpath}/ltmain13 ${worksrcpath}/ltmain.sh
40       # fix ltmain.sh to handle universal library creation.
41       system "cd ${worksrcpath} && \
42               patch -p0 < ${filespath}/patch-ltmain.sh.diff"
43}
44
45configure.ccache    no
46configure.ldflags-delete "-L${prefix}/lib"
47configure.cppflags-delete "-I${prefix}/include"
48configure.args  --disable-nls --disable-shm --with-locale \
49                --mandir=${prefix}/share/man \
50                --infodir=${prefix}/share/info \
51                --x-includes=${prefix}/include \
52                --x-libraries=${prefix}/lib
53
54post-destroot {
55              ln -sf libgdk-1.2.0.9.1.dylib ${destroot}${prefix}/lib/libgdk.1.dylib
56              ln -sf libgtk-1.2.0.9.1.dylib ${destroot}${prefix}/lib/libgtk.1.dylib
57}
58
59platform sunos {
60        configure.args-delete   --disable-shm --with-locale
61        configure.args-append   --disable-nls
62}
63
64livecheck.type  regex
65livecheck.url   http://ftp.gnome.org/pub/GNOME/sources/gtk+/1.2/
66livecheck.regex "gtk\\+-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.