source: trunk/dports/gnustep/etoile/Portfile @ 19707

Last change on this file since 19707 was 19707, checked in by yves@…, 14 years ago

fixed a woops

File size: 3.1 KB
Line 
1# $Id: Portfile,v 1.2 2006/03/28 04:10:06 yves Exp $
2
3PortSystem  1.0
4PortGroup   gnustep 1.0
5
6name        etoile
7version     0.1-20060922
8platforms   darwin
9maintainers yves@macports.org
10homepage    http://www.etoile-project.org/
11
12description  GNUstep based user environnement
13long_description \
14    Etoile intends to be an innovative GNUstep based user environnement \
15    built from the ground up on highly modular and light components \
16    with project and document orientation in mind.
17   
18fetch.type  svn
19svn.tag     2006-09-22
20svn.url     svn://svn.gna.org/svn/etoile/trunk etoile
21
22depends_lib-append  \
23    port:SQLClient port:libpng port:oniguruma port:zlib
24   
25worksrcdir  etoile/Etoile
26
27array set gnustep.post_flags {
28    Frameworks/BookmarkKit/Source "-lobjc -lgnustep-base"
29    Frameworks/EtoileExtensionsKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
30    Frameworks/ExtendedWorkspaceKit/Source "-lobjc -lgnustep-base"
31    Frameworks/IconKit "-lobjc -lgnustep-base -lgnustep-gui"
32    Frameworks/LuceneKit "-lgnustep-gui"
33    Frameworks/OgreKit "-lobjc -lgnustep-base -lgnustep-gui"   
34    Frameworks/PreferencesKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
35    Frameworks/ServicesBarKit/Source "-lobjc -lgnustep-base -lgnustep-gui"
36}
37
38post-patch {
39    set CocoaCompatibility_dir \
40        ${worksrcpath}/Frameworks/PreferencesKit/Source
41    set CocoaCompatibility_Source {
42        PKMatrixViewPresentation.m
43        PKPreferencesController.m
44        PKPresentationBuilder.m
45        PKTableViewPresentation.m
46        PKToolbarPresentation.m
47    }
48    foreach i $CocoaCompatibility_Source {
49        reinplace "s|#import \"CocoaCompatibility.h\"||g" \
50            ${CocoaCompatibility_dir}/$i
51    }
52    foreach i {CocoaCompatibility.m ../Headers/CocoaCompatibility.h} {
53        reinplace "s|$i||g" \
54            ${CocoaCompatibility_dir}/GNUmakefile
55    }
56
57    set math_files {
58        Developer/Examples/DistributedViewExample/main.m
59        Frameworks/EtoileExtensionsKit/Source/UKDistributedView.m
60        Frameworks/EtoileExtensionsKit/Source/UKFinderIconCell.m
61        Frameworks/LuceneKit/Source/Search/LCDefaultSimilarity.m
62        Services/User/Grr/FeedPreferencesManager.m
63    }
64    foreach i $math_files {
65        reinplace "s|#import <math.h>||g" ${worksrcpath}/$i
66        reinplace "s|#include <math.h>||g" ${worksrcpath}/$i
67    }
68    reinplace "s|__APPLE__|NON_MERCI|" \
69        ${worksrcpath}/Frameworks/LuceneKit/Source/Search/LCFieldSortedHitQueue.m
70    reinplace "s|LIB_DIRS +=|LIB_DIRS += -lobjc -lgnustep-base -lgnustep-gui|" \
71        ${worksrcpath}/Frameworks/OgreKit/GNUmakefile
72    reinplace "s|lX11|lX11 -lobjc -lgnustep-base -lgnustep-gui|g" \
73        ${worksrcpath}/Frameworks/XWindowServerKit/GNUmakefile
74    reinplace "s|-lX11|-L${x11prefix}/lib -lX11|g" \
75        ${worksrcpath}/Services/Private/Azalea/GNUmakefile
76}
77
78gnustep.domain  System
79
80post-destroot {
81    system "cp -r ${worksrcpath}/Themes ${destroot}${prefix}/GNUstep/System/Library"
82    xinstall -d ${destroot}${prefix}/share/xsessions
83    xinstall -m 644 ${worksrcpath}/Services/Private/System/etoile.desktop \
84        ${destroot}${prefix}/share/xsessions
85}
86
Note: See TracBrowser for help on using the repository browser.