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-gfx |
| 11 | PKG_VERSION:=2.0.20 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=SDL_gfx-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=http://www.ferzkopp.net/Software/SDL_gfx-2.0/ |
| 16 | PKG_MD5SUM:=8a787e538a8e4d80d4927535be5af083 |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_gfx-$(PKG_VERSION) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/libsdl-gfx |
| 22 | SECTION:=libs |
| 23 | CATEGORY:=Libraries |
| 24 | TITLE:=Simple DirectMedia Layer Gfx |
| 25 | URL:=https://sourceforge.net/projects/sdlgfx/ |
| 26 | DEPENDS:=+libsdl |
| 27 | endef |
| 28 | |
| 29 | define Package/libsdl-gfx/description |
| 30 | The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces. |
| 31 | endef |
| 32 | |
| 33 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
| 34 | |
| 35 | CONFIGURE_VARS += \ |
| 36 | LIBS="-lSDL -ldirect -ldirectfb -lfusion" |
| 37 | |
| 38 | define Build/Configure |
| 39 | $(call Build/Configure/Default, \ |
| 40 | --disable-mmx \ |
| 41 | --with-sdl-exec-prefix=$(STAGING_DIR)\ |
| 42 | ) |
| 43 | endef |
| 44 | |
| 45 | define Build/Compile |
| 46 | rm -rf $(PKG_INSTALL_DIR) |
| 47 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
| 48 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
| 49 | all install |
| 50 | endef |
| 51 | |
| 52 | define Build/InstallDev |
| 53 | $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib |
| 54 | $(CP) \ |
| 55 | $(PKG_INSTALL_DIR)/usr/include/SDL/* \ |
| 56 | $(1)/usr/include/SDL/ |
| 57 | $(CP) \ |
| 58 | $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} \ |
| 59 | $(1)/usr/lib/ |
| 60 | endef |
| 61 | |
| 62 | define Package/libsdl-gfx/install |
| 63 | $(INSTALL_DIR) $(1)/usr/lib |
| 64 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_gfx*.so* $(1)/usr/lib/ |
| 65 | endef |
| 66 | |
| 67 | $(eval $(call BuildPackage,libsdl-gfx)) |
| 68 |
