Date:2011-05-19 04:21:37 (12 years 10 months ago)
Author:Neil Stockbridge
Commit:1460a79827fc59a16d3d9c9027d415b8ce9d07cb
Message:libsdl-doc-man has been renamed to libsdl-dev and now includes header files

Files: libsdl-dev/Makefile (1 diff)
libsdl-doc-man/Makefile (1 diff)

Change Details

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
10include $(TOPDIR)/rules.mk
11
12PKG_NAME:=libsdl-dev
13PKG_VERSION:=1.2.14
14PKG_RELEASE:=1
15
16SDL_BUILD_DIR:=$(BUILD_DIR)/SDL-$(PKG_VERSION)
17SDL_IMAGE_BUILD_DIR:=$(BUILD_DIR)/SDL_image-1.2.10
18
19include $(INCLUDE_DIR)/package.mk
20
21define 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
27endef
28
29define Package/libsdl-dev/description
30  Header files needed to compile SDL programs along with man pages for the API
31endef
32
33# There is nothing to compile:
34define Build/Compile
35endef
36
37define 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
53endef
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
19include $(TOPDIR)/rules.mk
20
21PKG_NAME:=libsdl-doc-man
22PKG_VERSION:=1.2
23PKG_RELEASE:=1
24
25PKG_SOURCE:=sdldoc-man3.tar.gz
26PKG_SOURCE_URL:=http://www.libsdl.org/archives/
27PKG_CAT:=zcat
28PKG_MD5SUM:=80e8752091874743ccd63ff4387fa9bb
29
30PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
31
32UNPACK_CMD=tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(1)
33
34include $(INCLUDE_DIR)/package.mk
35
36define 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
42endef
43
44define Package/libsdl-doc-man/description
45  Man pages for the libSDL 1.2 API
46endef
47
48define Build/Compile
49endef
50
51define 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
58endef
59
60$(eval $(call BuildPackage,libsdl-doc-man))

Archive Download the corresponding diff file



interactive