From 85fc04c08baa0f48809adda483356ca073cfefb6 Mon Sep 17 00:00:00 2001 From: bartbes Date: Sat, 31 Jul 2010 14:30:52 +0200 Subject: [PATCH] libphysfs: installs properly --- {physfs => libphysfs}/Makefile | 20 +++++++++++++++++-- .../patches/CMakeLists.patch | 0 2 files changed, 18 insertions(+), 2 deletions(-) rename {physfs => libphysfs}/Makefile (66%) rename {physfs => libphysfs}/patches/CMakeLists.patch (100%) diff --git a/physfs/Makefile b/libphysfs/Makefile similarity index 66% rename from physfs/Makefile rename to libphysfs/Makefile index da3e917..5972cf4 100644 --- a/physfs/Makefile +++ b/libphysfs/Makefile @@ -1,3 +1,7 @@ + + + + include $(TOPDIR)/rules.mk PKG_NAME:=libphysfs @@ -42,14 +46,26 @@ define Build/Configure TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ TARGET_CFLAGS="$(TARGET_CFLAGS)" \ TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ - cmake $(PKG_BUILD_DIR));$ + cmake .);$ $(call Build/Compile/Default)$ endef +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/local/include/physfs.h $(1)/usr/include/ + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libphysfs.so* $(1)/usr/lib/ +endef define Package/libphysfs/install $(INSTALL_DIR) $(1)/usr/lib - $(INSTALL_BIN) $(PKG_BUILD_DIR)/libphysfs.so.2.0.0 $(1)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/libphysfs.so* $(1)/usr/lib/ endef $(eval $(call BuildPackage,libphysfs)) diff --git a/physfs/patches/CMakeLists.patch b/libphysfs/patches/CMakeLists.patch similarity index 100% rename from physfs/patches/CMakeLists.patch rename to libphysfs/patches/CMakeLists.patch