Ticket #20486: Portfile

File Portfile, 2.4 KB (added by bob.spamnot@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            emacs
6version         23.1
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 a620d4452769d04ad8864d662f34f8dd
23configure.args  --with-x-toolkit=no
24
25depends_lib     port:ncurses
26
27post-destroot {
28    xinstall -d ${destroot}${prefix}/share/emacs/${version}/leim
29    delete ${destroot}${prefix}/bin/ctags
30    delete ${destroot}${prefix}/share/man/man1/ctags.1
31}
32
33platform darwin 7 {
34    depends_build-append    port:autoconf
35}
36
37livecheck.check regex
38livecheck.url   http://ftp.gnu.org/gnu/emacs/?C=M&O=D
39livecheck.regex ${name}-(\\d+\\.\\d+\\w*)\\.tar
40
41variant x11 description {Builds emacs as a X11 program with Lucid widgets} {
42    configure.args-delete   --with-x-toolkit=no
43    configure.args-append   --with-x-toolkit=lucid \
44                            --with-xpm \
45                            --with-jpeg \
46                            --with-tiff \
47                            --with-gif \
48                            --with-png
49    depends_lib-append      port:xorg-libXmu \
50                            port:xpm \
51                            lib:libjpeg:jpeg \
52                            lib:libtiff:tiff \
53                            path:include/gif_lib.h:giflib \
54                            lib:libpng:libpng
55}
56
57variant motif requires x11 description {Builds emacs as an X11 program with Motif widgets} {
58    configure.args-delete   --with-x-toolkit=lucid
59    configure.args-append   --with-x-toolkit=motif
60    depends_lib-append      lib:libXm:openmotif
61}
62
63variant gtk requires x11 description {Builds emacs as an X11 program with GTK+2 widgets} {
64    configure.args-delete   --with-x-toolkit=lucid
65    configure.args-append   --with-x-toolkit=gtk
66    depends_lib-append      lib:libgtk.2:gtk2 \
67                            lib:libglib.2:glib2
68}
69