OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2010 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libsdl-image |
| 11 | PKG_VERSION:=1.2.10 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=SDL_image-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_image/release/ |
| 16 | PKG_MD5SUM:=6c06584b31559e2b59f2b982d0d1f628 |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_image-$(PKG_VERSION) |
| 18 | |
| 19 | PKG_INSTALL:=1 |
| 20 | |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | include $(INCLUDE_DIR)/nls.mk |
| 23 | |
| 24 | define Package/libsdl-image |
| 25 | SECTION:=libs |
| 26 | CATEGORY:=Libraries |
| 27 | TITLE:=Simple DirectMedia Layer Image |
| 28 | URL:=http://www.libsdl.org/projects/SDL_image/ |
| 29 | DEPENDS:=+libsdl |
| 30 | endef |
| 31 | |
| 32 | define Package/libsdl-image/description |
| 33 | 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. |
| 34 | endef |
| 35 | |
| 36 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
| 37 | |
| 38 | CONFIGURE_ARGS += \ |
| 39 | --with-sdl-exec-prefix=$(STAGING_DIR) |
| 40 | |
| 41 | CONFIGURE_VARS += \ |
| 42 | LIBS="-lSDL -ldirect -ldirectfb -lfusion" |
| 43 | |
| 44 | define Build/InstallDev |
| 45 | $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig |
| 46 | $(CP) \ |
| 47 | $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_image.h \ |
| 48 | $(1)/usr/include/SDL/ |
| 49 | $(CP) \ |
| 50 | $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.{a,so*} \ |
| 51 | $(1)/usr/lib/ |
| 52 | $(INSTALL_DATA) \ |
| 53 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ |
| 54 | $(1)/usr/lib/pkgconfig/ |
| 55 | endef |
| 56 | |
| 57 | define Package/libsdl-image/install |
| 58 | $(INSTALL_DIR) $(1)/usr/lib |
| 59 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_image*.so* $(1)/usr/lib/ |
| 60 | endef |
| 61 | |
| 62 | $(eval $(call BuildPackage,libsdl-image)) |
| 63 |
