Mercurial > vanilla
comparison graphics/giflib/giflib.sh @ 909:feb87679bb7b
graphics/giflib: initial import, closes #2211
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 26 Aug 2019 20:20:00 +0200 |
parents | |
children | ddab65a5b3f5 |
comparison
equal
deleted
inserted
replaced
908:557baec34578 | 909:feb87679bb7b |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=giflib | |
19 PKGVERSION=5.2.1 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="MIT" | |
22 PKGSUMMARY="library for reading / writing GIF images" | |
23 PKGDOWNLOAD="https://sourceforge.net/projects/$PKGNAME/files/$PKGNAME-$PKGVERSION.tar.gz" | |
24 | |
25 : ${CC:=clang} | |
26 : ${CFLAGS:=-O2} | |
27 | |
28 build() | |
29 { | |
30 rm -rf $PKGNAME-$PKGVERSION | |
31 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
32 cd $PKGNAME-$PKGVERSION | |
33 | |
34 sed -i -e '12iCFLAGS+= $(EXTRA_CFLAGS)' Makefile | |
35 | |
36 make \ | |
37 CC="$CC" \ | |
38 DESTDIR=$DESTDIR \ | |
39 EXTRA_CFLAGS="$CFLAGS" \ | |
40 PREFIX= \ | |
41 all install | |
42 | |
43 cd .. | |
44 rm -rf $PKGNAME-$PKGVERSION | |
45 } |