[packages] licensing: Licensing metadata added to many packages
[openwrt/svn-archive/archive.git] / libs / libsdl / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=SDL
11 PKG_VERSION:=1.2.14
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.libsdl.org/release/
16 PKG_MD5SUM:=e52086d1b508fa0b76c52ee30b55bec4
17
18 PKG_LICENSE:=LGPLv2.1
19 PKG_LICENSE_FILES:=COPYING test/COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 PKG_CONFIG_DEPENDS:=CONFIG_AUDIO_SUPPORT
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libsdl
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Simple DirectMedia Layer
32 URL:=http://www.libsdl.org
33 DEPENDS:=+directfb +zlib +libpthread +AUDIO_SUPPORT:alsa-lib
34 endef
35
36 define Package/libsdl/description
37 SDL is a library that allows programs portable low level access to a video
38 framebuffer, audio output, mouse, and keyboard.
39 endef
40
41 CONFIGURE_ARGS+= \
42 --enable-libc \
43 --enable-video \
44 --enable-events \
45 --enable-joystick \
46 --enable-cdrom \
47 --enable-threads \
48 --enable-timers \
49 --enable-file \
50 --enable-loadso \
51 --enable-cpuinfo \
52 --enable-assembly \
53 --disable-oss \
54 --disable-alsatest \
55 --enable-alsa-shared \
56 --disable-esd \
57 --disable-esdtest \
58 --enable-esd-shared \
59 --disable-pulseaudio \
60 --enable-pulseaudio-shared \
61 --disable-arts \
62 --enable-arts-shared \
63 --disable-nas \
64 --enable-nas-shared \
65 --disable-diskaudio \
66 --disable-dummyaudio \
67 --disable-mintaudio \
68 --disable-nasm \
69 --disable-altivec \
70 --disable-ipod \
71 --disable-nanox \
72 --disable-video-x11 \
73 --enable-x11-shared \
74 --enable-dga \
75 --enable-video-dga \
76 --enable-video-x11-dgamouse \
77 --enable-video-x11-vm \
78 --enable-video-x11-xv \
79 --disable-video-x11-xinerama \
80 --disable-video-x11-xme \
81 --disable-video-x11-xrandr \
82 --disable-video-photon \
83 --disable-video-carbon \
84 --disable-video-cocoa \
85 --enable-video-fbcon \
86 --enable-video-directfb \
87 --disable-video-ps2gs \
88 --disable-video-ps3 \
89 --disable-video-ggi \
90 --disable-video-svga \
91 --disable-video-vgl \
92 --disable-video-wscons \
93 --disable-video-aalib \
94 --disable-video-caca \
95 --disable-video-qtopia \
96 --disable-video-picogui \
97 --disable-video-xbios \
98 --disable-video-gem \
99 --disable-video-dummy \
100 --disable-video-opengl \
101 --disable-osmesa-shared \
102 --disable-screensaver \
103 --enable-input-events \
104 --disable-input-tslib \
105 --enable-pth \
106 --enable-pthreads \
107 --enable-pthread-sem \
108 --disable-stdio-redirect \
109 --disable-directx \
110 --enable-sdl-dlopen \
111 --disable-atari-ldg \
112 --disable-clock_gettime \
113 --without-x \
114 --disable-rpath \
115
116 ifneq ($(CONFIG_AUDIO_SUPPORT),)
117 CONFIGURE_ARGS+= \
118 --enable-audio \
119 --enable-alsa
120 else
121 CONFIGURE_ARGS+= \
122 --disable-audio \
123 --disable-alsa
124 endif
125
126 CONFIGURE_VARS+= \
127 ac_cv_path_DIRECTFBCONFIG=no \
128
129 define Build/InstallDev
130 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
131 $(CP) \
132 $(PKG_INSTALL_DIR)/usr/include/SDL* \
133 $(1)/usr/include/
134 $(CP) \
135 $(PKG_INSTALL_DIR)/usr/lib/libSDL*.{a,so*} \
136 $(1)/usr/lib/
137 $(INSTALL_DATA) \
138 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
139 $(1)/usr/lib/pkgconfig
140
141
142 $(INSTALL_DIR) $(1)/usr/share/aclocal
143 $(INSTALL_DATA) \
144 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
145 $(1)/usr/share/aclocal/
146
147 $(INSTALL_DIR) $(1)/usr/bin
148 $(INSTALL_BIN) \
149 $(PKG_INSTALL_DIR)/usr/bin/sdl-config \
150 $(1)/usr/bin/
151
152 $(SED) 's,^\(exec_prefix\|prefix\)=.*,\1=\"$(STAGING_DIR)/usr/\",g' \
153 $(1)/usr/bin/sdl-config
154
155 $(INSTALL_DIR) $(1)/host/bin
156 ln -sf ../../usr/bin/sdl-config $(1)/host/bin/
157 endef
158
159 define Package/libsdl/install
160 $(INSTALL_DIR) $(1)/usr/lib
161 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL*.so.* $(1)/usr/lib/
162 endef
163
164 $(eval $(call BuildPackage,libsdl))