Date:2011-05-17 03:11:06 (9 years 21 days ago)
Author:Neil Stockbridge
Commit:aca02e10a786ffaa81e0b8e4edae16c1708a4fca
Message:There is now a package for SDL API man pages

Files: libsdl-doc-man/Makefile (1 diff)
libsdl-doc-man/patches/001-add-Makefile.patch (1 diff)

Change Details

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
32include $(INCLUDE_DIR)/package.mk
33
34define Package/libsdl-doc-man
35  TITLE:=SDL API man pages
36  SECTION:=documentation
37  CATEGORY:=Documentation
38  URL:=http://www.libsdl.org/
39  DEPENDS:=+mandoc
40endef
41
42define Package/libsdl-doc-man/description
43  Man pages for the libSDL 1.2 API
44endef
45
46define Package/libsdl-doc-man/install
47    $(INSTALL_DIR) \
48        $(1)/usr/share/man/man3
49
50    $(INSTALL_DATA) \
51        $(PKG_BUILD_DIR)/man3/* \
52        $(1)/usr/share/man/man3
53endef
54
55$(eval $(call BuildPackage,libsdl-doc-man))
libsdl-doc-man/patches/001-add-Makefile.patch
1--- libsdl-doc-man.orig/Makefile 1970-01-01 12:00:00.000000000 +1200
2@@ -0,0 +1,3 @@
3+
4+all:
5+ mv ../man3 .
6+

Archive Download the corresponding diff file



interactive