1 # Build recipe for imlib2.
3 # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
4 # Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/x-libs"
25 tarname=${program}-${version}.tar.bz2
28 fetch=http://downloads.sourceforge.net/project/enlightenment/imlib2-src/${version}/$tarname
31 Imlib2 is the (intended) successor to Imlib.
33 Imlib2 can load image files from disk in one of many formats, save
34 images to disk in one of many formats, render image data onto other
35 images, render images to an X-Windows drawable, produce pixmaps and
36 pixmap masks of images, apply filters to images, rotate images,
37 accept RGBA data for images, scale images, and more.
40 homepage=http://www.enlightenment.org/
43 # Source documentation
44 docs="AUTHORS COPYING COPYING-PLAIN ChangeLog README TODO"
45 docsdir="${docdir}/${program}-${version}"
51 unpack "${tardir}/$tarname"
55 ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
57 --libdir=/usr/lib${libSuffix} \
62 --build="$(cc -dumpmachine)"
65 make -j${jobs} DESTDIR="$destdir" install
68 mkdir -p "${destdir}${docsdir}"
69 cp -p $docs "${destdir}${docsdir}/"