aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gegl/Makefile
blob: 1e08738b907e9a6563902519421779c690babaf4 (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
181
182
183
184
185
186
# New ports collection Makefile for:    gegl
# Date created:             3 October 2008
# Whom:                 gahr
#
# $FreeBSD$
#

PORTNAME=   gegl
PORTVERSION=    0.0.${GEGL_MINOR}
PORTREVISION=   8
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.gimp.org/pub/gegl/0.0/

MAINTAINER= gahr@FreeBSD.org
COMMENT=    A graph based image processing framework

LIB_DEPENDS=    babl-0.0:${PORTSDIR}/x11/babl
BUILD_DEPENDS=  enscript:${PORTSDIR}/print/enscript-a4

OPTIONS=    CAIRO       "Enable Cairo" on \
        FFMPEG      "Enable videos through ffmpeg" on \
        GRAPHVIZ    "Enable Graphviz" on \
        JPEG        "Enable JPEG format support" on \
        LUA     "Enable LUA" on \
        OPENEXR     "Enable High Dynamic Range (HDR) format support" on \
        OPENRAW     "Enable RAW camera format support" on \
        OPTIMIZE    "Enable optimizations autodetection (MMX, SSE)" off \
        PANGO       "Enable rendering through Pango " on \
        PNG     "Enable PNG format support" on \
        RSVG        "Enable RSVG format support" on \
        SDL     "Enable SDL" on \
        SPIRO       "Enable Spiro" on \
        V4L     "Enable Video4Linux" on

USE_GNOME=  gtk20 glib20 pkgconfig gnomehack
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_RUBY=   build
USE_LDCONFIG=   ${PREFIX}/lib/gegl-0.0
GNU_CONFIGURE=  yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

GEGL_MINOR= 22
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"

EXAMPLES=   2geglbuffer gegl-paint geglbuffer-add-image \
        geglbuffer-clock hello-world hello-world-video

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_CAIRO)
LIB_DEPENDS+=   cairo.2:${PORTSDIR}/graphics/cairo
PLIST_SUB+= CAIRO=""
.else
CONFIGURE_ARGS+=--without-cairo
PLIST_SUB+= CAIRO="@comment "
.endif

.if !defined(WITHOUT_FFMPEG)
LIB_DEPENDS+=   avformat.1:${PORTSDIR}/multimedia/ffmpeg
PLIST_SUB+= FFMPEG=""
.else
CONFIGURE_ARGS+=--without-libavformat
PLIST_SUB+= FFMPEG="@comment "
.endif

.if !defined(WITHOUT_GRAPHVIZ)
LIB_DEPENDS+=   graph.4:${PORTSDIR}/graphics/graphviz
.else
CONFIGURE_ARGS+=--without-graphviz
.endif

.if !defined(WITHOUT_JPEG)
LIB_DEPENDS+=   jpeg.11:${PORTSDIR}/graphics/jpeg
PLIST_SUB+= JPEG=""
.else
CONFIGURE_ARGS+=--without-libjpeg
PLIST_SUB+= JPEG="@comment "
.endif

.if !defined(WITHOUT_LUA)
USE_LUA=    5.1
.else
CONFIGURE_ARGS+=--without-lua
.endif

.if !defined(WITHOUT_OPENEXR)
LIB_DEPENDS+=   IlmImf.6:${PORTSDIR}/graphics/OpenEXR
PLIST_SUB+= OPENEXR=""
.else
CONFIGURE_ARGS+=--without-openexr
PLIST_SUB+= OPENEXR="@comment "
.endif

.if !defined(WITHOUT_OPENRAW)
LIB_DEPENDS+=   openraw.6:${PORTSDIR}/graphics/libopenraw
PLIST_SUB+= OPENRAW=""
.else
CONFIGURE_ARGS+=--without-libopenraw
PLIST_SUB+= OPENRAW="@comment "
.endif

.if defined(WITHOUT_OPTIMIZE)
CONFIGURE_ARGS+=--disable-mmx \
        --disable-sse
.endif

.if !defined(WITHOUT_PANGO)
USE_GNOME+= pango
.else
CONFIGURE_ARGS+=--without-pango
.endif

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

.if !defined(WITHOUT_RSVG)
LIB_DEPENDS+=   rsvg-2.2:${PORTSDIR}/graphics/librsvg2
PLIST_SUB+= RSVG=""
.else
CONFIGURE_ARGS+=--without-librsvg
PLIST_SUB+= RSVG="@comment "
.endif

.if !defined(WITHOUT_SDL)
USE_SDL=    sdl
PLIST_SUB+= SDL=""
.else
CONFIGURE_ARGS+=--without-sdl
PLIST_SUB+= SDL="@comment "
.endif

.if !defined(WITHOUT_SPIRO)
LIB_DEPENDS+=   spiro.0:${PORTSDIR}/graphics/libspiro
.else
CONFIGURE_ARGS+=--without-libspiro
.endif

.if !defined(WITHOUT_V4L)
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
PLIST_SUB+= V4L=""
.else
CONFIGURE_ARGS+=--without-libv4l
PLIST_SUB+= V4L="@comment "
.endif

.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
.else
CONFIGURE_ARGS+=    --disable-docs
.endif

post-patch:
    ${REINPLACE_CMD} -e 's|-T||' ${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in
    ${REINPLACE_CMD} -e 's|\(lua\)\(5\.1\)|\1-\2|g' ${WRKSRC}/configure

post-build:
.if !defined(NOPORTDOCS)
    cd ${WRKSRC}/docs && ${GMAKE}
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/gallery
    (cd ${WRKSRC}/docs && \
        ${COPYTREE_SHARE} \*.html ${DOCSDIR} && \
        ${INSTALL_DATA} ChangeLog gegl.css gegl.devhelp devhelp.css ${DOCSDIR} && \
        ${INSTALL_DATA} gallery/OpenRaster* ${DOCSDIR}/gallery && \
        ${INSTALL_DATA} gallery/clones* ${DOCSDIR}/gallery && \
        ${INSTALL_DATA} gallery/index.html ${DOCSDIR}/gallery )
.endif
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}/data
    ${INSTALL_DATA} ${WRKSRC}/examples/data/surfer.png ${EXAMPLESDIR}/data
.for ex in ${EXAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/examples/${ex}.c ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.post.mk>
te to 1.9.1miwi2008-11-093-4/+7 * - Update to 0.35miwi2008-11-093-7/+5 * - Update to 2008-11-07miwi2008-11-093-4/+40 * Update to 0.08lbr2008-11-093-7/+12 * Update to 0.07lbr2008-11-092-5/+5 * Update to 0.61lbr2008-11-092-4/+4 * Update to 0.69lbr2008-11-092-4/+4 * - Update to 0.1.6.araujo2008-11-083-4/+6 * pass on maintainershipdryice2008-11-071-1/+1 * update to 0.9.4dryice2008-11-073-24/+43 * Update to 2.22.6skv2008-11-073-5/+5 * Update to 3.0.6skv2008-11-074-8/+8 * - keep frameworks dirdinoex2008-11-071-1/+0 * Update a November 5th snapshot, fix the plist.brooks2008-11-074-15/+27 * - update to 0.5.0dinoex2008-11-073-139/+194 * - update to 1.2.6dinoex2008-11-073-5/+32 * Update to 1.12skv2008-11-072-4/+4 * Update to 1.031skv2008-11-072-5/+4 * - Update to 5.7rafan2008-11-065-28/+38 * Force rebuild with R12B-5.olgeni2008-11-063-2/+3 * Add some missing man pages.wxs2008-11-061-2/+11 * Update to 1.01.wxs2008-11-052-4/+4 * Fix RUN_DEPENDS typolth2008-11-051-1/+2 * Update to 1.52.02 (distversion 1.5202)lth2008-11-052-4/+4 * - Update to 1.19lth2008-11-052-7/+5 * Update to 1.19lth2008-11-052-4/+4 * Upgrade to 4.8.1.thierry2008-11-052-4/+4 * Fix installation problem for people who have changed WRKDIRPREFIX.lbr2008-11-052-2/+2 * Respect NOPORTDOCS and NOPORTEXAMPLES.wxs2008-11-051-0/+13 * Add support for PowerPC to devel/nspr.ed2008-11-042-3/+66 * - Update to 1.0.8miwi2008-11-043-4/+7 * - solve the problem by updating the py-jcc's Makefileclsung2008-11-031-2/+3 * - Update to 0.87rafan2008-11-032-7/+4 * Update to 0.11lbr2008-11-032-4/+4 * - Update to 2.05.01krion2008-11-033-15/+15 * - Install git.1 [1]wxs2008-11-031-3/+5 * - Update to 2.07amdmi32008-11-023-4/+7 * - Update to 3.48amdmi32008-11-022-4/+4 * - Update to 1.1.1miwi2008-11-022-7/+8 * - Update to 3.3.2miwi2008-11-022-28/+138 * - Update to 2.30miwi2008-11-022-4/+4 * The ruby-ole library provides a variety of functions primarily formiwi2008-11-024-0/+37 * - Update to 1.7.30miwi2008-11-022-8/+7 * - Update to 1.7.30miwi2008-11-022-12/+17 * - Update to 0.47miwi2008-11-023-5/+6 * - Update to 1.0.0miwi2008-11-022-5/+7 * OpenCVS is a FREE implementation of the Concurrent Versions System, the mostgabor2008-11-0230-0/+352 * - it builds on perl-5.6.2lbr2008-11-011-1/+1 * update xfce to 4.4.3oliver2008-10-311-1/+1 * - Update to 1.0.1garga2008-10-302-4/+4 * Update to 0.10lbr2008-10-303-5/+7 * Update to 0.44lbr2008-10-302-5/+6 * - Update to 3.45vsevolod2008-10-292-4/+4 * Doxygen Filter is an input filter for Doxygen enabling support for Perl codeamdmi32008-10-295-0/+40 * - Update to 2008ilwhsu2008-10-292-4/+4 * - Update to 1.1.0wxs2008-10-293-4/+7 * This is a multi-CPU macro assembler for many major 8-bit and 16-bit CPUsamdmi32008-10-295-0/+159 * Update 0.1.2erwin2008-10-292-4/+4 * Update to 6.48erwin2008-10-292-4/+4 * Update to 1.26erwin2008-10-29