OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # Copyright (C) 2008 OpenWrt.org |
2 | # |
3 | # This is free software, licensed under the GNU General Public License v2. |
4 | # |
5 | # TODO: Should libsdl-image-dev be seperate from libsdl-dev? If not then this |
6 | # should probably include libsdl-mixer, etc. files |
7 | # TODO: Find man pages for SDL_Image and include them |
8 | # |
9 | |
10 | include $(TOPDIR)/rules.mk |
11 | |
12 | PKG_NAME:=libsdl-dev |
13 | PKG_VERSION:=1.2.14 |
14 | PKG_RELEASE:=1 |
15 | |
16 | SDL_BUILD_DIR:=$(BUILD_DIR)/SDL-$(PKG_VERSION) |
17 | SDL_IMAGE_BUILD_DIR:=$(BUILD_DIR)/SDL_image-1.2.10 |
18 | |
19 | include $(INCLUDE_DIR)/package.mk |
20 | |
21 | define Package/libsdl-dev |
22 | TITLE:=SDL API development files and man pages |
23 | SECTION:=development |
24 | CATEGORY:=Development |
25 | URL:=http://www.libsdl.org/ |
26 | DEPENDS:=+libsdl +libsdl-image +mandoc |
27 | endef |
28 | |
29 | define Package/libsdl-dev/description |
30 | Header files needed to compile SDL programs along with man pages for the API |
31 | endef |
32 | |
33 | # There is nothing to compile: |
34 | define Build/Compile |
35 | endef |
36 | |
37 | define Package/libsdl-dev/install |
38 | $(INSTALL_DIR) \ |
39 | $(1)/usr/include/SDL \ |
40 | $(1)/usr/lib \ |
41 | $(1)/usr/share/man/man3 |
42 | |
43 | $(INSTALL_DATA) \ |
44 | $(SDL_BUILD_DIR)/include/* \ |
45 | $(SDL_IMAGE_BUILD_DIR)/SDL_image.h \ |
46 | $(1)/usr/include/SDL |
47 | |
48 | $(INSTALL_DATA) \ |
49 | $(SDL_BUILD_DIR)/docs/man3/* \ |
50 | $(1)/usr/share/man/man3 |
51 | |
52 | ln -s libSDL-1.2.so.0 $(1)/usr/lib/libSDL.so |
53 | endef |
54 | |
55 | $(eval $(call BuildPackage,libsdl-dev)) |
56 |