From aca02e10a786ffaa81e0b8e4edae16c1708a4fca Mon Sep 17 00:00:00 2001 From: Neil Stockbridge Date: Tue, 17 May 2011 13:11:06 +1200 Subject: [PATCH] There is now a package for SDL API man pages --- libsdl-doc-man/Makefile | 55 +++++++++++++++++++ libsdl-doc-man/patches/001-add-Makefile.patch | 7 +++ 2 files changed, 62 insertions(+) create mode 100644 libsdl-doc-man/Makefile create mode 100644 libsdl-doc-man/patches/001-add-Makefile.patch diff --git a/libsdl-doc-man/Makefile b/libsdl-doc-man/Makefile new file mode 100644 index 0000000..0a7a4b8 --- /dev/null +++ b/libsdl-doc-man/Makefile @@ -0,0 +1,55 @@ +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# +# NOTE: This file is badly done because I don't know how to do it better. The +# files in the upstream tarball are prepended only with a man3/ directory, not +# a libsdl-doc-man-1.2/man3/ directory, which means that the OpenWRT directives +# int this file unpack the upstream tarball in: +# +# .../target-mipsel_uClibc-0.9.30.1/man3/ +# +# ..rather than the intended: +# +# .../target-mipsel_uClibc-0.9.30.1/libsdl-doc-man-1.2/man3/ +# +# ..so the cheesily patched Makefile moves the unpacked files in to place. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libsdl-doc-man +PKG_VERSION:=1.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=sdldoc-man3.tar.gz +PKG_SOURCE_URL:=http://www.libsdl.org/archives/ +PKG_CAT:=zcat +PKG_MD5SUM:=80e8752091874743ccd63ff4387fa9bb + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/libsdl-doc-man + TITLE:=SDL API man pages + SECTION:=documentation + CATEGORY:=Documentation + URL:=http://www.libsdl.org/ + DEPENDS:=+mandoc +endef + +define Package/libsdl-doc-man/description + Man pages for the libSDL 1.2 API +endef + +define Package/libsdl-doc-man/install + $(INSTALL_DIR) \ + $(1)/usr/share/man/man3 + + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/man3/* \ + $(1)/usr/share/man/man3 +endef + +$(eval $(call BuildPackage,libsdl-doc-man)) diff --git a/libsdl-doc-man/patches/001-add-Makefile.patch b/libsdl-doc-man/patches/001-add-Makefile.patch new file mode 100644 index 0000000..fd2ce5f --- /dev/null +++ b/libsdl-doc-man/patches/001-add-Makefile.patch @@ -0,0 +1,7 @@ +--- libsdl-doc-man.orig/Makefile 1970-01-01 12:00:00.000000000 +1200 ++++ libsdl-doc-man/Makefile 2011-05-17 11:29:24.083449778 +1200 +@@ -0,0 +1,3 @@ ++ ++all: ++ mv ../man3 . ++