From: Lars-Peter Clausen Date: Fri, 12 Sep 2008 22:23:24 +0000 (+0000) Subject: Cleanup libmpcdev Makefile. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ebdabb68b3cde7ba3bf88e06114a7f6503ce87c9;p=openwrt%2Fsvn-archive%2Fpackages.git Cleanup libmpcdev Makefile. SVN-Revision: 12584 --- diff --git a/libs/libmpcdec/Makefile b/libs/libmpcdec/Makefile index d11a02956..47ffcd106 100644 --- a/libs/libmpcdec/Makefile +++ b/libs/libmpcdec/Makefile @@ -1,5 +1,5 @@ -# -# Copyright (C) 2007 OpenWrt.org +# +# Copyright (C) 2007-2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -15,9 +15,12 @@ PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://files.musepack.net/source/ PKG_MD5SUM:=9ce052b671df5a76e0e7f2b2eb037798 +PKG_FIXUP:=libtool include $(INCLUDE_DIR)/package.mk +PKG_INSTALL=1 + define Package/libmpcdec SECTION:=libs CATEGORY:=Libraries @@ -31,23 +34,23 @@ endef TARGET_CFLAGS += $(FPIC) -define Build/Compile - $(call Build/Compile/Default,\ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install \ - ) -endef - define Build/InstallDev - mkdir -p $(1)/usr/include/mpcdec/ - $(CP) $(PKG_INSTALL_DIR)/usr/include/mpcdec/* $(1)/usr/include/mpcdec/ - mkdir -p $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include/mpcdec/ + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/include/mpcdec/*.h \ + $(1)/usr/include/mpcdec/ + + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} \ + $(1)/usr/lib/ endef define Package/libmpcdec/install - $(INSTALL_DIR) $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmpcdec.* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/libmpcdec.{so*,a} \ + $(1)/usr/lib/ endef $(eval $(call BuildPackage,libmpcdec))