libsdl-dev/Makefile |
| 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)) |
libsdl-doc-man/Makefile |
1 | | # Copyright (C) 2008 OpenWrt.org |
2 | | # |
3 | | # This is free software, licensed under the GNU General Public License v2. |
4 | | # |
5 | | # NOTE: This file is badly done because I don't know how to do it better. The |
6 | | # files in the upstream tarball are prepended only with a man3/ directory, not |
7 | | # a libsdl-doc-man-1.2/man3/ directory, which means that the OpenWRT directives |
8 | | # int this file unpack the upstream tarball in: |
9 | | # |
10 | | # .../target-mipsel_uClibc-0.9.30.1/man3/ |
11 | | # |
12 | | # ..rather than the intended: |
13 | | # |
14 | | # .../target-mipsel_uClibc-0.9.30.1/libsdl-doc-man-1.2/man3/ |
15 | | # |
16 | | # ..so the cheesily patched Makefile moves the unpacked files in to place. |
17 | | # |
18 | | |
19 | | include $(TOPDIR)/rules.mk |
20 | | |
21 | | PKG_NAME:=libsdl-doc-man |
22 | | PKG_VERSION:=1.2 |
23 | | PKG_RELEASE:=1 |
24 | | |
25 | | PKG_SOURCE:=sdldoc-man3.tar.gz |
26 | | PKG_SOURCE_URL:=http://www.libsdl.org/archives/ |
27 | | PKG_CAT:=zcat |
28 | | PKG_MD5SUM:=80e8752091874743ccd63ff4387fa9bb |
29 | | |
30 | | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
31 | | |
32 | | UNPACK_CMD=tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(1) |
33 | | |
34 | | include $(INCLUDE_DIR)/package.mk |
35 | | |
36 | | define Package/libsdl-doc-man |
37 | | TITLE:=SDL API man pages |
38 | | SECTION:=documentation |
39 | | CATEGORY:=Documentation |
40 | | URL:=http://www.libsdl.org/ |
41 | | DEPENDS:=+mandoc |
42 | | endef |
43 | | |
44 | | define Package/libsdl-doc-man/description |
45 | | Man pages for the libSDL 1.2 API |
46 | | endef |
47 | | |
48 | | define Build/Compile |
49 | | endef |
50 | | |
51 | | define Package/libsdl-doc-man/install |
52 | | $(INSTALL_DIR) \ |
53 | | $(1)/usr/share/man/man3 |
54 | | |
55 | | $(INSTALL_DATA) \ |
56 | | $(PKG_BUILD_DIR)/man3/* \ |
57 | | $(1)/usr/share/man/man3 |
58 | | endef |
59 | | |
60 | | $(eval $(call BuildPackage,libsdl-doc-man)) |