summaryrefslogtreecommitdiff
path: root/package/mpc/mpc.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-11-07 19:40:21 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-07 19:40:21 +0100
commit24c9f8ca706e57dc3ccfd908c54961fb67bd3854 (patch)
tree772f70c31a8257f31f48052babf175574791c323 /package/mpc/mpc.mk
parent64d8e9a0c1e6fffb0085c65b3879a2e327649d7f (diff)
mpc: fix make dependencies
So the build target isn't always considered out of date. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mpc/mpc.mk')
-rw-r--r--package/mpc/mpc.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/mpc/mpc.mk b/package/mpc/mpc.mk
index 4a65842fb..41c0ffaa2 100644
--- a/package/mpc/mpc.mk
+++ b/package/mpc/mpc.mk
@@ -11,7 +11,7 @@ MPC_DIR:=$(TOOLCHAIN_DIR)/mpc-$(MPC_VERSION)
MPC_TARGET_DIR:=$(BUILD_DIR)/mpc-$(MPC_VERSION)
MPC_BINARY:=libmpc$(LIBTGTEXT)
MPC_HOST_BINARY:=libmpc$(HOST_LIBEXT)
-MPC_LIBVERSION:=1.0.0
+MPC_LIBVERSION:=2.0.0
$(DL_DIR)/$(MPC_SOURCE):
$(call DOWNLOAD,$(MPC_SITE),$(MPC_SOURCE))
@@ -43,15 +43,15 @@ $(MPC_TARGET_DIR)/.configured: $(MPC_DIR)/.unpacked
)
touch $@
-$(MPC_TARGET_DIR)/.libs/$(MPC_BINARY): $(MPC_TARGET_DIR)/.configured
+$(MPC_TARGET_DIR)/src/.libs/$(MPC_BINARY): $(MPC_TARGET_DIR)/.configured
#$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(MPC_TARGET_DIR)
$(MAKE) -C $(MPC_TARGET_DIR)
-$(STAGING_DIR)/usr/lib/$(MPC_BINARY): $(MPC_TARGET_DIR)/.libs/$(MPC_BINARY)
+$(STAGING_DIR)/usr/lib/$(MPC_BINARY): $(MPC_TARGET_DIR)/src/.libs/$(MPC_BINARY)
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(MPC_TARGET_DIR) install
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(STAGING_DIR)/usr/lib/libmpc$(LIBTGTEXT)*
-$(TARGET_DIR)/usr/lib/libmpc.so $(TARGET_DIR)/usr/lib/libmpc.so.$(MPC_LIBVERSION) $(TARGET_DIR)/usr/lib/libmpc.a: $(STAGING_DIR)/usr/lib/$(MPC_BINARY)
+$(TARGET_DIR)/usr/lib/libmpc.so $(TARGET_DIR)/usr/lib/libmpc.so.$(MPC_LIBVERSION): $(STAGING_DIR)/usr/lib/$(MPC_BINARY)
cp -dpf $(STAGING_DIR)/usr/lib/libmpc$(LIBTGTEXT)* $(TARGET_DIR)/usr/lib/
ifeq ($(BR2_PACKAGE_LIBMPC_HEADERS),y)
test -d $(TARGET_DIR)/usr/include || mkdir -p $(TARGET_DIR)/usr/include