Ticket #14331: Portfile

File Portfile, 1.1 KB (added by jeremy@…, 17 years ago)
Line 
1# $Id$
2PortSystem 1.0
3
4name            efte
5version         0.95
6categories      editors
7description     configurable programmers editor
8long_description \
9    eFTE is a lightweight, extendable, folding text editor \
10    geared toward the programmer. eFTE is a fork of FTE with goals of \
11    taking FTE to the next step, hence, Enhanced FTE.
12
13homepage        http://efte.sourceforge.net
14platforms       darwin
15master_sites    http://downloads.sourceforge.net/sourceforge/efte/
16checksums       efte-${version}.tar.gz md5 20c5ca30ed1990f473581e6cafda6a4b
17
18depends_build   bin:cmake:cmake
19
20configure.args  -DCMAKE_BUIL_TYPE=Release \
21                -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
22                -DUSE_GPM=OFF -DBUILD_CONSOLE=ON -DBUILD_X=OFF
23
24configure {
25    system "cd ${worksrcpath} && ${configure.env} cmake ${configure.args} ${worksrcpath}"
26}
27
28variant x11 {
29    depends_build-append    lib:libX11:XFree86
30    configure.args-delete   "-DBUILD_X=OFF"
31    configure.args-append   "-DBUILD_X=ON"
32}
33
34post-destroot {
35    system "cd ${destroot}${prefix}/share/efte && ../../bin/cefte config/mymain.fte system.fterc"
36}