From 186242d171fa224c9746e35cc75d14792605d2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 31 Mar 2012 02:02:20 +0200 Subject: [PATCH] liballegro: compile png, jpeg, vorbis add-ons as shared libraries. --- liballegro/Makefile | 4 ++-- liballegro/patches/090-addons-not-static.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 liballegro/patches/090-addons-not-static.patch diff --git a/liballegro/Makefile b/liballegro/Makefile index f9edf87..ff5269d 100644 --- a/liballegro/Makefile +++ b/liballegro/Makefile @@ -19,7 +19,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=liballegro PKG_VERSION:=4.4.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=allegro-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/alleg/allegro/$(PKG_VERSION) PKG_BUILD_DIR = $(BUILD_DIR)/allegro-$(PKG_VERSION) @@ -260,7 +260,7 @@ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \ $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.a \ + -$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.a \ $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ $(1)/usr/lib/pkgconfig/ diff --git a/liballegro/patches/090-addons-not-static.patch b/liballegro/patches/090-addons-not-static.patch new file mode 100644 index 0000000..1975cc1 --- /dev/null +++ b/liballegro/patches/090-addons-not-static.patch @@ -0,0 +1,13 @@ +Index: allegro-4.4.2/CMakeLists.txt +=================================================================== +--- allegro-4.4.2.orig/CMakeLists.txt 2012-03-31 01:45:47.403146010 +0200 ++++ allegro-4.4.2/CMakeLists.txt 2012-03-31 01:46:04.255249710 +0200 +@@ -910,7 +910,7 @@ + if(WANT_FRAMEWORKS) + set(ADDON_LINKAGE SHARED) + else() +- set(ADDON_LINKAGE STATIC) ++ set(ADDON_LINKAGE SHARED) + endif() + + if(WANT_ALLEGROGL)