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

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

graphics/libpng upgraded to version 1.5.12, 232 dependent ports revision bumped due to library version number change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 97300 2012-09-03 03:05:48Z rmstonecipher@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
49configure.args  --mandir=${prefix}/share/man \
50                --without-postgresql \
51                --without-ldap \
52                --with-sound=none \
53                --pdump \
54                --site-prefixes=${prefix} \
55                --with-tty \
56                --with-dialogs=athena \
57                --with-widgets=athena \
58                --with-athena=3d \
59                --with-database=gdbm \
60                --with-mule
61
62depends_build   port:xbitmaps
63depends_lib     port:libpng port:Xaw3d port:ncurses port:gdbm port:jpeg \
64                port:tiff port:compface port:gettext port:zlib port:xorg-libXaw
65
66destroot.args   prefix=${destroot}${prefix} mandir=${destroot}${prefix}/share/man/man1
67
68destroot.keepdirs ${destroot}${prefix}/lib/xemacs
69post-destroot {
70    set xemacs_lib ${destroot}${prefix}/lib/xemacs-${version}
71    xinstall -d -m 0755 ${xemacs_lib}
72    system "cd ${destroot}${prefix}/lib && ln -s xemacs-${version} xemacs"
73    if {[file exists ${workpath}/mule-packages]} {
74        ui_debug "Installing mule-sumo distribution into destroot"
75        file copy ${workpath}/mule-packages ${xemacs_lib}/
76    }
77    if {[file exists ${workpath}/xemacs-packages]} {
78        ui_debug "Installing sumo distribution into destroot"
79        file copy ${workpath}/xemacs-packages ${xemacs_lib}
80    }
81}
82
83variant no_sumo \
84    description "do not install sumo and mule" {
85    configure.args-delete --with-mule
86    depends_lib-delete    port:gettext
87    distfiles-delete      ${sumo_dist}:package ${mule_dist}:package
88}
89
90# https://trac.macports.org/ticket/31679
91if {${configure.compiler} == "clang"} {
92    configure.cflags-append -std=c89
93}
94if {${os.major} >= 11 && ${os.platform} == "darwin"} {
95    configure.ldflags-append -Wl,-no_pie
96}
Note: See TracBrowser for help on using the repository browser.