source: trunk/dports/editors/xemacs/Portfile @ 97398

Last change on this file since 97398 was 97398, checked in by dports@…, 7 years ago

xemacs: add upstream patches to support libpng 1.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: Portfile 97398 2012-09-04 22:22:19Z dports@macports.org $
2
3PortSystem      1.0
4
5name            xemacs
6conflicts       emacs
7version         21.4.22
8revision        6
9set sumo_date   2009-02-17
10categories      editors x11
11platforms       darwin
12maintainers     nomaintainer
13license         GPL-2+
14
15description     A highly customizable open source text editor.
16
17long_description \
18    XEmacs is a highly customizable open source text editor and application development \
19    system. It is protected under the GNU Public License and related to other versions of \
20    Emacs, in particular GNU Emacs.
21
22homepage        http://www.xemacs.org
23master_sites    http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
24                ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.4/:xemacs \
25                http://ftp.xemacs.org/pub/xemacs/packages/:package \
26                ftp://ftp.xemacs.org/pub/xemacs/packages/:package \
27                http://mirrors.ibiblio.org/pub/mirrors/xemacs/packages/:package
28
29use_bzip2       yes
30set xemacs_dist ${name}-${version}${extract.suffix}
31set sumo_dist   ${name}-sumo-${sumo_date}${extract.suffix}
32set mule_dist   ${name}-mule-sumo-${sumo_date}${extract.suffix}
33
34distfiles       ${xemacs_dist}:xemacs ${sumo_dist}:package ${mule_dist}:package
35
36checksums           xemacs-${version}.tar.bz2 \
37                    md5     060bf7565cb3233c6e7071354e9a23a4 \
38                    sha1    67876eb2bbedc02e7b660db8b4c31b5b98be865e \
39                    rmd160  0e747204bda24b1b1520b81a301f7c8573a76231 \
40                    xemacs-sumo-2009-02-17.tar.bz2 \
41                    md5     4ccf48e0ef0c37858dd0240f6343402a \
42                    sha1    13eab46524c8e9070e71289c06d49e831e48b7b2 \
43                    rmd160  a9912b3720e2b6d91017f14b6e5c11275acdeefd \
44                    xemacs-mule-sumo-2009-02-17.tar.bz2 \
45                    md5     e24b5544961e8f56e6adf1742eaf4078 \
46                    sha1    dc50bc3b62e5ff1cd766c7e4f31880bd200caad5 \
47                    rmd160  506b7465687ff9dafe26f46e049b6aad8915eb49
48
49patchfiles      51ced9b8fb63e4be59ea611b58128c400e3df987.diff \
50                bcefd94fa6513d48f4dc8519f633b2df66b553bc.diff
51patch.pre_args  -p1
52
53configure.args  --mandir=${prefix}/share/man \
54                --without-postgresql \
55                --without-ldap \
56                --with-sound=none \
57                --pdump \
58                --site-prefixes=${prefix} \
59                --with-tty \
60                --with-dialogs=athena \
61                --with-widgets=athena \
62                --with-athena=3d \
63                --with-database=gdbm \
64                --with-mule
65
66depends_build   port:xbitmaps
67depends_lib     port:libpng port:Xaw3d port:ncurses port:gdbm port:jpeg \
68                port:tiff port:compface port:gettext port:zlib port:xorg-libXaw
69
70destroot.args   prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man/man1
71
72destroot.keepdirs ${destroot}${prefix}/lib/xemacs
73post-destroot {
74    set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
75    xinstall -d -m 0755 ${xemacs_lib}
76    system "cd ${destroot}${prefix}/lib && ln -s xemacs-${version} xemacs"
77    if {[file exists ${workpath}/mule-packages]} {
78        ui_debug "Installing mule-sumo distribution into destroot"
79        file copy ${workpath}/mule-packages ${xemacs_lib}/
80    }
81    if {[file exists ${workpath}/xemacs-packages]} {
82        ui_debug "Installing sumo distribution into destroot"
83        file copy ${workpath}/xemacs-packages ${xemacs_lib}
84    }
85}
86
87variant no_sumo \
88    description "do not install sumo and mule" {
89    configure.args-delete --with-mule
90    depends_lib-delete    port:gettext
91    distfiles-delete      ${sumo_dist}:package ${mule_dist}:package
92}
93
94# https://trac.macports.org/ticket/31679
95if {${configure.compiler} == "clang"} {
96    configure.cflags-append -std=c89
97}
98if {${os.major} >= 11 && ${os.platform} == "darwin"} {
99    configure.ldflags-append -Wl,-no_pie
100}
Note: See TracBrowser for help on using the repository browser.