source: trunk/dports/graphics/libcaca/Portfile

Last change on this file was 153791, checked in by michaelld@…, 10 months ago

libcaca-devel: update to 156781dd (20161007).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153791 2016-10-11 13:04:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7name                libcaca
8categories          graphics
9license             WTFPL-2 LGPL-2+
10maintainers         nomaintainer
11description         Colour AsCii Art library
12long_description    \
13    The libcaca library is a graphics library that outputs text \
14    instead of pixels, so that it can work on older video cards \
15    or text terminals. It is not unlike the famous AAlib library.
16platforms           darwin
17
18# common directory for storing downloaded tarballs
19dist_subdir         libcaca
20
21if {${name} eq ${subport}} {
22
23    github.setup    cacalabs libcaca 0.99.beta19 v
24    revision        5
25    checksums       \
26        rmd160 8623dbfe2584d6e5c633aa140f30139a13a59128 \
27        sha256 128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4
28
29    long_description ${long_description} ${subport} \
30provides the release version.
31    conflicts       libcaca-devel
32
33    master_sites    http://caca.zoy.org/raw-attachment/wiki/libcaca/
34}
35
36subport libcaca-devel {
37
38    github.setup    cacalabs libcaca 156781dd67d024dc067010ef8640d0b91c5c3356
39    version         20161007
40    checksums       \
41        rmd160 1f26a928ca638d4c4472f3513eb1a044799a272c \
42        sha256 289369f3a24e7735a4f2c82404fa786c6b3e71ae08ed78f737aaaa413a62bb5b
43
44    conflicts       libcaca
45    long_description ${long_description} ${subport} \
46provides the libcaca GIT master branch and is typically updated monthly.
47
48}
49
50homepage            http://caca.zoy.org/wiki/libcaca
51
52depends_build       port:pkgconfig
53depends_lib         port:ncurses port:zlib
54
55# Teach glibtool about -stdlib=libc++
56use_autoreconf      yes
57autoreconf.args     -fvi
58
59configure.args      \
60    --disable-kernel \
61    --disable-slang \
62    --disable-win32 \
63    --disable-conio \
64    --disable-cocoa \
65    --disable-network \
66    --disable-vga \
67    --disable-csharp \
68    --disable-java \
69    --disable-cxx \
70    --disable-python \
71    --disable-ruby \
72    --disable-debug \
73    --disable-profiling \
74    --disable-plugins \
75    --disable-doc \
76    --disable-cppunit \
77    --disable-zzuf
78
79configure.args-append \
80    --mandir=${prefix}/share/man \
81    --enable-ncurses
82
83# Disable silent rules
84build.args-append   V=1
85
86variant x11 {
87    depends_lib-append \
88        port:imlib2 \
89        port:freeglut \
90        port:libGLU \
91        port:mesa \
92        port:xorg-libX11
93}
94
95if {[variant_isset x11]} {
96    configure.args-append \
97        --enable-x11 --enable-gl \
98        --x-includes=${prefix}/include \
99        --x-libraries=${prefix}/lib
100} else {
101        configure.args-append \
102        --disable-x11 \
103        --disable-gl \
104        --disable-imlib2
105}
106
107compiler.blacklist  llvm-gcc-4.2
108
109test.run            yes
110test.target         check
Note: See TracBrowser for help on using the repository browser.