diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
| commit | 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch) | |
| tree | 58590463ada82a27eca0889312c32450358249a8 /libsdl-image/Makefile | |
| download | qipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz | |
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target
Gforth, removing strange emacs-dependencies that cropped up earlier.
Image file can now be built on the nanonote using 'gforth-update-image'
command. Also, Gforth is now run through a wrapper that calls
'gforth-update-image' automatically, if necessary.
Also first attempts at supporting libcc C-interface libraries pre-compiled on
the host.
Tested to compile on amd64 and i386.
Diffstat (limited to 'libsdl-image/Makefile')
| -rw-r--r-- | libsdl-image/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libsdl-image/Makefile b/libsdl-image/Makefile new file mode 100644 index 0000000..c0bf851 --- /dev/null +++ b/libsdl-image/Makefile @@ -0,0 +1,61 @@ +# +# Copyright (C) 2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libsdl-image +PKG_VERSION:=1.2.10 +PKG_RELEASE:=1 + +PKG_SOURCE:=SDL_image-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_image/release/ +PKG_MD5SUM:=6c06584b31559e2b59f2b982d0d1f628 +PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_image-$(PKG_VERSION) + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libsdl-image + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Simple DirectMedia Layer Image + URL:=http://www.libsdl.org/projects/SDL_image/ + DEPENDS:=+libsdl +endef + +define Package/libsdl-image/description + SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves. +endef + +TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL + +CONFIGURE_ARGS += \ + --with-sdl-exec-prefix=$(STAGING_DIR) + +CONFIGURE_VARS += \ + LIBS="-lSDL -ldirect -ldirectfb -lfusion" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_image.h \ + $(1)/usr/include/SDL/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.{a,so*} \ + $(1)/usr/lib/ + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ + $(1)/usr/lib/pkgconfig/ +endef + +define Package/libsdl-image/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libsdl-image)) |
