source: trunk/dports/editors/emacs-devel/Portfile @ 21478

Last change on this file since 21478 was 20431, checked in by jberry@…, 13 years ago

Convert all darwinports@… addresses
to nomaintainer@… or openmaintainer@….

See http://trac.macports.org/projects/macports/wiki/SpecialMaintainerAddresses
for more information.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 20431 2006-11-03 02:19:18Z jberry@macports.org $
2
3PortSystem 1.0
4name            emacs-devel
5version         22.0.50.1
6revision        2
7categories      editors
8maintainers     nomaintainer@macports.org
9description     The GNU Emacs text editor, bleeding edge version
10long_description        GNU Emacs is a self-documenting, customizable, extensible real-time display editor. \
11                        Users new to Emacs will be able to use basic features fairly rapidly \
12                        by studying the tutorial and using the self-documentation features. \
13                        Emacs also has an extensive interactive manual browser.  It is easily \
14                        extensible since its editing commands are written in Lisp.
15platforms       darwin freebsd
16homepage        http://www.gnu.org/software/emacs/emacs.html
17master_sites    gnu
18fetch.type              cvs
19cvs.root                :pserver:anonymous@cvs.sv.gnu.org:/sources/emacs
20cvs.module              emacs
21cvs.date                20060622
22version                 ${version}-${cvs.date}
23
24worksrcdir              emacs
25
26patch.pre_args  -p1
27patchfiles              patch-src-s-darwin.h
28
29configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info --without-x
30configure.env   \
31        LDFLAGS="-L${prefix}/lib" \
32        CFLAGS="-I${prefix}/include" \
33        CPPFLAGS="-I${prefix}/include"
34
35platform darwin 8 {
36        configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
37}
38
39build.target    bootstrap
40
41#destroot.args  prefix=${destroot}${prefix}
42
43post-destroot {
44        cd ${destroot}${prefix}
45        file mkdir share/emacs/${version}/leim
46        if {[variant_isset carbon]} {
47                global version
48                file delete bin/emacs
49                file delete bin/emacs-${version}
50        }
51}
52
53variant x11 {
54        configure.args-delete --without-x
55        configure.args-append --with-x-toolkit=lucid --without-carbon \
56                --with-xpm --with-jpeg --with-tiff --with-gif --with-png
57        depends_lib-append  lib:libX11:XFree86 lib:libXpm:XFree86 \
58                            lib:libjpeg:jpeg lib:libtiff:tiff \
59                            lib:libungif:libungif lib:libpng:libpng
60}
61
62variant motif requires x11 {
63       configure.args-delete --with-x-toolkit=lucid
64       configure.args-append --with-x-toolkit=motif
65       depends_lib-append lib:libXm:openmotif
66}
67
68variant gtk requires x11 {
69        configure.args-delete --with-x-toolkit=lucid
70        configure.args-append --with-x-toolkit=gtk
71        depends_lib-append  lib:libgtk.2:gtk2 lib:libglib.2:glib2
72}
73
74variant carbon conflicts x11 {
75        configure.args-append   --with-carbon --enable-carbon-app=/Applications/DarwinPorts
76}
77
78variant atsui requires carbon {
79        configure.env-delete    CFLAGS="-I${prefix}/include"
80        configure.env-append    CFLAGS="-I${prefix}/include -DUSE_ATSUI"
81}
Note: See TracBrowser for help on using the repository browser.