]> git.sesse.net Git - ccbs/blob - bigscreen/tinyptc/buildmmx.sh
Import TinyPTC 0.7.3 sources, switch from OpenGL to TinyPTC for now.
[ccbs] / bigscreen / tinyptc / buildmmx.sh
1 #! /bin/sh
2
3 # TinyPTC x11 v0.7.3 MMX-Optimized pixelformat converters include generator
4 # Copyright (C) 2001-2002 Alessandro Gatti <a.gatti@tiscali.it>
5 #
6 # http://www.sourceforge.net/projects/tinyptc/
7 #
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
12 #
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22 cat << EOF
23
24 ;
25 ; TinyPTC x11 v0.7.3 MMX-optimized pixelformat converters
26 ; Copyright (C) 2001-2002 Alessandro Gatti <a.gatti@tiscali.it>
27 ; Copyright (C) 2001 Glenn Fiedler <gaffer@gaffer.org>
28 ;
29 ; http://www.sourceforge.net/projects/tinyptc/
30 ;
31 ; This library is free software; you can redistribute it and/or
32 ; modify it under the terms of the GNU Lesser General Public
33 ; License as published by the Free Software Foundation; either
34 ; version 2 of the License, or (at your option) any later version.
35 ;
36 ; This library is distributed in the hope that it will be useful,
37 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
38 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
39 ; Lesser General Public License for more details.
40 ;
41 ; You should have received a copy of the GNU Lesser General Public
42 ; License along with this library; if not, write to the Free Software
43 ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
44 ; 02111-1307 USA
45 ;
46
47 ;
48 ; Do not change this file, it is automatically generated.
49 ; Modify mmx.h instead and then recreate this file.
50 ;
51
52 EOF
53
54 # Is this portable?
55 lines=`grep -i "^ *void *mmx_" - | expand | sed -e 's/^ *void *//g' | sed -e 's/ *(.*//'`
56
57 for line in $lines
58 do
59         case $line in
60                 mmx_memcpy) echo "%define __PTC_MMX__";;
61                 mmx_convert_32_to_32_bgr888) echo "%define __PTC_MMX_CONVERT_32_TO_32_BGR888";;
62                 mmx_convert_32_to_32_rgb888) echo "%define __PTC_MMX_CONVERT_32_TO_32_RGB888";;
63                 mmx_convert_32_to_24_bgr888) echo "%define __PTC_MMX_CONVERT_32_TO_24_BGR888";;
64                 mmx_convert_32_to_24_rgb888) echo "%define __PTC_MMX_CONVERT_32_TO_24_RGB888";;
65                 mmx_convert_32_to_16_bgr565) echo "%define __PTC_MMX_CONVERT_32_TO_16_BGR565";;
66                 mmx_convert_32_to_16_rgb565) echo "%define __PTC_MMX_CONVERT_32_TO_16_RGB565";;
67                 mmx_convert_32_to_16_bgr555) echo "%define __PTC_MMX_CONVERT_32_TO_16_BGR555";;
68                 mmx_convert_32_to_16_rgb555) echo "%define __PTC_MMX_CONVERT_32_TO_16_RGB555";;
69         esac
70 done
71
72 echo 
73 echo "; *** end ***"