From 1460a79827fc59a16d3d9c9027d415b8ce9d07cb Mon Sep 17 00:00:00 2001 From: Neil Stockbridge Date: Thu, 19 May 2011 14:21:37 +1200 Subject: [PATCH] libsdl-doc-man has been renamed to libsdl-dev and now includes header files --- libsdl-dev/Makefile | 55 +++++++++++++++++++++++++++++++++++++ libsdl-doc-man/Makefile | 60 ----------------------------------------- 2 files changed, 55 insertions(+), 60 deletions(-) create mode 100644 libsdl-dev/Makefile delete mode 100644 libsdl-doc-man/Makefile diff --git a/libsdl-dev/Makefile b/libsdl-dev/Makefile new file mode 100644 index 0000000..bb533aa --- /dev/null +++ b/libsdl-dev/Makefile @@ -0,0 +1,55 @@ +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# +# TODO: Should libsdl-image-dev be seperate from libsdl-dev? If not then this +# should probably include libsdl-mixer, etc. files +# TODO: Find man pages for SDL_Image and include them +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libsdl-dev +PKG_VERSION:=1.2.14 +PKG_RELEASE:=1 + +SDL_BUILD_DIR:=$(BUILD_DIR)/SDL-$(PKG_VERSION) +SDL_IMAGE_BUILD_DIR:=$(BUILD_DIR)/SDL_image-1.2.10 + +include $(INCLUDE_DIR)/package.mk + +define Package/libsdl-dev + TITLE:=SDL API development files and man pages + SECTION:=development + CATEGORY:=Development + URL:=http://www.libsdl.org/ + DEPENDS:=+libsdl +libsdl-image +mandoc +endef + +define Package/libsdl-dev/description + Header files needed to compile SDL programs along with man pages for the API +endef + +# There is nothing to compile: +define Build/Compile +endef + +define Package/libsdl-dev/install + $(INSTALL_DIR) \ + $(1)/usr/include/SDL \ + $(1)/usr/lib \ + $(1)/usr/share/man/man3 + + $(INSTALL_DATA) \ + $(SDL_BUILD_DIR)/include/* \ + $(SDL_IMAGE_BUILD_DIR)/SDL_image.h \ + $(1)/usr/include/SDL + + $(INSTALL_DATA) \ + $(SDL_BUILD_DIR)/docs/man3/* \ + $(1)/usr/share/man/man3 + + ln -s libSDL-1.2.so.0 $(1)/usr/lib/libSDL.so +endef + +$(eval $(call BuildPackage,libsdl-dev)) diff --git a/libsdl-doc-man/Makefile b/libsdl-doc-man/Makefile deleted file mode 100644 index cdbd78e..0000000 --- a/libsdl-doc-man/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# 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) - -UNPACK_CMD=tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(1) - -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 Build/Compile -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))