Ticket #11857: Portfile

File Portfile, 2.3 KB (added by n.oxyde@…, 17 years ago)

libsdl @1.2.11_1

Line 
1# $Id: $
2
3PortSystem      1.0
4
5name            libsdl
6version         1.2.11
7revision        1
8categories      devel multimedia
9maintainers     n.oxyde@gmail.com
10description     Cross-platform multi-media development API
11
12long_description \
13                Simple DirectMedia Layer is a cross-platform multimedia library \
14                designed to provide fast access to the graphics framebuffer and \
15                audio device. It is  used by MPEG playback software, emulators, \
16                and many  popular games, including the award winning Linux  port \
17                of "Civilization: Call To Power." Simple DirectMedia Layer supports \
18                Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD.
19
20homepage        http://www.libsdl.org/
21master_sites    ${homepage}release/
22distname        SDL-${version}
23
24checksums       md5 418b42956b7cd103bfab1b9077ccc149 \
25                sha1 2259134d714e35ab1469d513674a3cd02510d198 \
26                rmd160 91dc8877224415a4ba59e1de57c31861e550d644
27
28platforms       macosx freebsd
29
30configure.args  --disable-video-x11 \
31                --disable-video-aalib \
32                --disable-arts
33
34post-destroot {
35    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
36    xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README \
37        README-SDL.txt README.MacOSX TODO docs.html \
38        ${destroot}${prefix}/share/doc/${name}
39    xinstall -m 0644 -W ${worksrcpath}/docs index.html \
40        ${destroot}${prefix}/share/doc/${name}/docs
41    system "cp -R ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}/docs"
42}
43
44variant no_static {
45    configure.args-append   --disable-static
46}
47
48variant x11 {
49    depends_lib             lib:libX11.6:XFree86
50    configure.args-append   --with-x
51    configure.args-delete   --disable-video-x11
52}
53
54variant aalib {
55    depends_lib             port:aalib
56    configure.args-delete   --disable-video-aalib
57}
58
59variant arts {
60    depends_lib             port:arts
61    configure.args-delete   --disable-arts
62}
63
64platform darwin 7 {
65    pre-fetch {
66        system "${portpath}/${filesdir}/qt-check.sh"
67    }
68}
69
70platform darwin 8 {
71    patchfiles patch-configure
72    configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
73    build.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
74}