source: trunk/dports/editors/emacs/Portfile @ 56125

Last change on this file since 56125 was 50572, checked in by jeremyhu@…, 11 years ago

All ports: Remove reference to $x11prefix

Now that the X11 libs are provided by MacPorts and the +system_x11
compatability variant is gone, there is no need to use the system X11 libs and
headers. Users can still use the system X11 server (or any server for that
matter).

Some ports have received revision bumps becasue they were previously referring
to x11prefix even when the users were not using +system_x11. The revision
bump fixes the reference and forces a rebuild. Other ports have NOT received
revision bumps because they should be identical to what would've been
installed by default (-system_x11) before this patch.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name            emacs
6version         22.3
7revision        1
8categories      editors
9maintainers     gmail.com:darren.bane
10description     The GNU Emacs text editor (command line only)
11long_description \
12    GNU Emacs is a self-documenting, customizable, extensible real-time \
13    display editor. Users new to Emacs will be able to use basic        \
14    features fairly rapidly by studying the tutorial and using the      \
15    self-documentation features. Emacs also has an extensive            \
16    interactive manual browser. It is easily extensible since its       \
17    editing commands are written in Lisp.
18
19platforms       darwin freebsd
20homepage        http://www.gnu.org/software/emacs/emacs.html
21master_sites    gnu
22checksums       md5 aa8ba34f548cd78b35914ae5a7bb87eb
23patchfiles      patch-Makefile.in.diff \
24                patch-leim-Makefile.in.diff
25configure.args  --without-x \
26                --without-carbon
27
28depends_lib     port:ncurses
29
30post-destroot {
31    xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
32    delete ${destroot}${prefix}/bin/ctags
33    delete ${destroot}${prefix}/share/man/man1/ctags.1
34    if {[variant_isset carbon]} {
35        global version
36        delete ${destroot}${prefix}/bin/emacs ${destroot}${prefix}/bin/emacs-${version}
37    }
38}
39
40platform darwin 7 {
41    depends_build-append    port:autoconf
42}
43
44livecheck.check regex
45livecheck.url   http://ftp.gnu.org/gnu/emacs/?C=M&O=D
46livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
47
48variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
49    configure.args-delete   --without-x
50    configure.args-append   --with-x-toolkit=lucid \
51                            --without-carbon \
52                            --with-xpm \
53                            --with-jpeg \
54                            --with-tiff \
55                            --with-gif \
56                            --with-png
57    depends_lib-append      port:xorg-libXmu \
58                            port:xpm \
59                            lib:libjpeg:jpeg \
60                            lib:libtiff:tiff \
61                            path:include/gif_lib.h:giflib \
62                            lib:libpng:libpng
63}
64
65variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} {
66    configure.args-delete   --with-x-toolkit=lucid
67    configure.args-append   --with-x-toolkit=motif
68    depends_lib-append      lib:libXm:openmotif
69}
70
71variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} {
72    configure.args-delete   --with-x-toolkit=lucid
73    configure.args-append   --with-x-toolkit=gtk
74    depends_lib-append      lib:libgtk.2:gtk2 \
75                            lib:libglib.2:glib2
76}
77
78variant carbon conflicts x11 description {Adds a Mac (Carbon) version of Emacs} {
79    configure.args-delete   --without-carbon
80    configure.args-append   --with-carbon \
81                            --enable-carbon-app=${applications_dir}
82}
83
84variant atsui requires carbon description {Adds a Mac (Carbon) version of Emacs that uses the ATSUI protocol} {
85    configure.cflags-append -DUSE_ATSUI
86}
87
Note: See TracBrowser for help on using the repository browser.