123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # Build recipe for imlib2.
- #
- # Copyright (c) 2018 Markus Tornow, <tornow@riseup.net>.
- # Copyright (c) 2018-2020 Matias Fonzo, <selk@dragora.org>.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=imlib2
- version=1.5.1
- release=4
- # Set 'outdir' for a nice and well-organized output directory
- outdir="${outdir}/${arch}/x-libs"
- tarname=${program}-${version}.tar.bz2
- # Remote source(s)
- fetch=http://downloads.sourceforge.net/project/enlightenment/imlib2-src/${version}/$tarname
- description="
- Imlib2 is the (intended) successor to Imlib.
-
- Imlib2 can load image files from disk in one of many formats, save
- images to disk in one of many formats, render image data onto other
- images, render images to an X-Windows drawable, produce pixmaps and
- pixmap masks of images, apply filters to images, rotate images,
- accept RGBA data for images, scale images, and more.
- "
- homepage=http://www.enlightenment.org/
- license=BSD
- # Source documentation
- docs="AUTHORS COPYING COPYING-PLAIN ChangeLog README TODO"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- case $arch in
- i?86)
- assembly_opts=--enable-mmx
- ;;
- x86_64)
- assembly_opts=--enable-amd64
- ;;
- esac
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --with-id3 \
- --with-x \
- --build="$(cc -dumpmachine)" \
- $assembly_opts
- unset assembly_opts
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}/"
- }
|