aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/evas/Makefile
blob: 912395599616c9b8f72fd07ec253605aef87d26e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# New ports collection makefile for:    evas
# Date created:     24 Oct 2000
# Whom:         Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD$
#

PORTNAME=   evas
PORTVERSION=    20060926
PORTREVISION=   0
PORTEPOCH=  1
CATEGORIES= graphics
MASTER_SITES=   http://sunner.elcomnet.ru/~stas/

MAINTAINER= stas@FreeBSD.org
COMMENT=    A hardware-accelerated canvas API for X-Windows

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_FREETYPE2=  yes
USE_LDCONFIG=   yes
USE_GNOME=  gnomehack pkgconfig gnometarget

OPTIONS=    GL      "Enable OpenGL rendering backend" off \
        SOFTX11     "Enable software X11 rendering backend" on \
        XRENDER     "Enable XRender X11 rendering backend" on \
        BUFFER      "Enable buffer rendering backend" on \
        DIRECTFB    "Enable DirectFB rendering backend" off \
        FONTCONFIG  "Use fontconfig to find fonts" on \
        GIF     "Enable GIF image loader" on \
        PNG     "Enable PNG image loader" on \
        JPEG        "Enable JPEG image loader" on \
        EET     "Enable EET image loader" on \
        EDB     "Enable EDB image loader" on \
        TIFF        "Enable TIFF image loader" on \
        XPM     "Enable XPM image loader" on \
        SVG     "Enable SVG image loader" on \
        EETFONT     "Enable EET font loader" on

.include <bsd.port.pre.mk>

.if defined(WITH_GL)
CONFIGURE_ARGS+=    --enable-gl-x11
PLIST_SUB+= WITH_GL=""
USE_GL=     yes
.else
PLIST_SUB+= WITH_GL="@comment "
.endif

.if defined(WITH_DIRECTFB)
CONFIGURE_ARGS+=    --enable-directfb
PLIST_SUB+= DIRECTFB=""
LIB_DEPENDS+=   directfb-0.9.16:${PORTSDIR}/devel/directfb
.else
CONFIGURE_ARGS+=    --disable-directfb
PLIST_SUB+= DIRECTFB="@comment "
.endif

.if !defined(WITHOUT_FONTCONFIG)
CONFIGURE_ARGS+=    --enable-fontconfig
PLIST_SUB+= FONTCONFIG=""
LIB_DEPENDS+=   fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
.else
CONFIGURE_ARGS+=    --disable-fontconfig
PLIST_SUB+= FONTCONFIG="@comment "
.endif

.if !defined(WITHOUT_SOFTX11)
CONFIGURE_ARGS+=    --enable-software-x11
PLIST_SUB+= SOFTX11=""
USE_XLIB=   yes
.else
CONFIGURE_ARGS+=    --disable-software-x11
PLIST_SUB+= SOFTX11="@comment "
.endif

.if !defined(WITHOUT_XRENDER)
CONFIGURE_ARGS+=    --enable-xrender-x11
PLIST_SUB+= XRENDER=""
USE_XLIB=   yes
.else
CONFIGURE_ARGS+=    --disable-xrender-x11
PLIST_SUB+= XRENDER="@comment "
.endif

.if !defined(WITHOUT_BUFFER)
CONFIGURE_ARGS+=    --enable-buffer
PLIST_SUB+= BUFFER=""
.else
CONFIGURE_ARGS+=    --disable-buffer
PLIST_SUB+= BUFFER="@comment "
.endif

.if !defined(WITHOUT_GIF)
CONFIGURE_ARGS+=    --enable-image-loader-gif
PLIST_SUB+= GIF=""
LIB_DEPENDS+=   ungif.5:${PORTSDIR}/graphics/libungif
.else
CONFIGURE_ARGS+=    --disable-image-loader-gif
PLIST_SUB+= GIF="@comment "
.endif

.if !defined(WITHOUT_PNG)
CONFIGURE_ARGS+=    --enable-image-loader-png
PLIST_SUB+= PNG=""
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+=    --disable-image-loader-png
PLIST_SUB+= PNG="@comment "
.endif

.if !defined(WITHOUT_JPEG)
CONFIGURE_ARGS+=    --enable-image-loader-jpeg
PLIST_SUB+= JPEG=""
LIB_DEPENDS+=   jpeg.9:${PORTSDIR}/graphics/jpeg
CFLAGS+=    -I${X11BASE}/include
LDFLAGS+=   -L${X11BASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.else
CONFIGURE_ARGS+=    --disable-image-loader-jpeg
PLIST_SUB+= JPEG="@comment "
.endif

.if !defined(WITHOUT_EET)
CONFIGURE_ARGS+=    --enable-image-loader-eet
PLIST_SUB+= EET=""
USE_EFL+=   eet
.else
CONFIGURE_ARGS+=    --disable-image-loader-eet
PLIST_SUB+= EET="@comment "
.endif

.if !defined(WITHOUT_EETFONT)
CONFIGURE_ARGS+=    --enable-font-loader-eet
PLIST_SUB+= EETFONT=""
USE_EFL+=   eet
.else
CONFIGURE_ARGS+=    --disable-font-loader-eet
PLIST_SUB+= EETFONT="@comment "
.endif

.if !defined(WITHOUT_EDB)
CONFIGURE_ARGS+=    --enable-image-loader-edb
PLIST_SUB+= EDB=""
USE_EFL+=   edb
.else
CONFIGURE_ARGS+=    --disable-image-loader-edb
PLIST_SUB+= EDB="@comment "
.endif

.if !defined(WITHOUT_TIFF)
CONFIGURE_ARGS+=    --enable-image-loader-tiff
LIB_DEPENDS+=   tiff.4:${PORTSDIR}/graphics/tiff
PLIST_SUB+= TIFF=""
.else
CONFIGURE_ARGS+=    --disable-image-loader-tiff
PLIST_SUB+= TIFF="@comment "
.endif

.if !defined(WITHOUT_XPM)
CONFIGURE_ARGS+=    --enable-image-loader-xpm
USE_XPM=    yes
PLIST_SUB+= XPM=""
.else
CONFIGURE_ARGS+=    --disable-image-loader-xpm
PLIST_SUB+= XPM="@comment "
.endif

.if !defined(WITHOUT_SVG)
CONFIGURE_ARGS+=    --enable-image-loader-svg
USE_GNOME+= librsvg2
LIB_DEPENDS+=   svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo
PLIST_SUB+= SVG=""
.else
CONFIGURE_ARGS+=    --disable-image-loader-svg
PLIST_SUB+= SVG="@comment "
.endif

.include "../../x11-wm/enlightenment-devel/bsd.efl.mk"
.include <bsd.port.post.mk>