[Buildroot] svn commit: trunk/buildroot/package/mplayer

3 messages, 3 authors, 2007-07-26 · open the first message on its own page

[Buildroot] svn commit: trunk/buildroot/package/mplayer

From: ulf at uclibc.org <hidden>
Date: 2007-07-23 12:40:44

Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007)
New Revision: 19229

Log:
Cleanup of mplayer package

Modified:
   trunk/buildroot/package/mplayer/mplayer.mk


Changeset:
Modified: trunk/buildroot/package/mplayer/mplayer.mk
===================================================================
--- trunk/buildroot/package/mplayer/mplayer.mk	2007-07-23 12:33:22 UTC (rev 19228)
+++ trunk/buildroot/package/mplayer/mplayer.mk	2007-07-23 12:40:43 UTC (rev 19229)
@@ -3,10 +3,10 @@
 # mplayer
 #
 #############################################################
-MPLAYER_VER:=1.0rc1
-MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VER).tar.bz2
+MPLAYER_VERSION:=1.0rc1
+MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VERSION).tar.bz2
 MPLAYER_SITE:=http://www7.mplayerhq.hu/MPlayer/releases
-MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VER)
+MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VERSION)
 MPLAYER_CAT:=$(BZCAT)
 MPLAYER_BINARY:=mplayer
 MPLAYER_TARGET_BINARY:=usr/bin/$(MPLAYER_BINARY)
@@ -22,12 +22,13 @@
 
 $(MPLAYER_DIR)/.unpacked: $(DL_DIR)/$(MPLAYER_SOURCE)
 	$(MPLAYER_CAT) $(DL_DIR)/$(MPLAYER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-	toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VER)\*.patch\*
-	@touch $@
+	toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VERSION)\*.patch\*
+	touch $@
 
 $(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked
 	(cd $(MPLAYER_DIR); rm -rf config.cache; \
 		$(TARGET_CONFIGURE_OPTS) \
+		$(TARGET_CONFIGURE_ARGS) \
 		CFLAGS="$(TARGET_CFLAGS)" \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
 		./configure \
@@ -46,16 +47,16 @@
 		--disable-tv \
 		--enable-dynamic-plugins \
 	);
-	@touch $@
+	touch $@
 
 $(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
 	$(MAKE) -C $(MPLAYER_DIR)
-	@touch -c $@
+	touch -c $@
 
 $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
 	$(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
 	-$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
-	@touch -c $@
+	touch -c $@
 
 mplayer: uclibc libmad $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
 

[Buildroot] svn commit: trunk/buildroot/package/mplayer

From: Allan Clark <hidden>
Date: 2007-07-23 12:35:38

On 7/23/07, ulf at uclibc.org [off-list ref] wrote:
Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007)
New Revision: 19229

Log:
Cleanup of mplayer package

[...]

 $(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
        $(MAKE) -C $(MPLAYER_DIR)
-       @touch -c $@
+       touch -c $@

 $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
        $(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
-       @touch -c $@
+       touch -c $@
I don't see the logic for these last two touch commands.  Sure "-c"
says "do not create", but they seem unnecessary.

Allan

[Buildroot] svn commit: trunk/buildroot/package/mplayer

From: Hans-Christian Egtvedt <hidden>
Date: 2007-07-26 07:01:42

On Mon, 2007-07-23 at 08:35 -0400, Allan Clark wrote:
On 7/23/07, ulf at uclibc.org [off-list ref] wrote:
quoted
Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007)
New Revision: 19229

Log:
Cleanup of mplayer package

[...]

 $(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
        $(MAKE) -C $(MPLAYER_DIR)
-       @touch -c $@
+       touch -c $@

 $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
        $(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
-       @touch -c $@
+       touch -c $@
I don't see the logic for these last two touch commands.  Sure "-c"
says "do not create", but they seem unnecessary.
Agree, all the "touch -c <some binary file given by the Makefile rule>"
does not do anything useful. Touch will return 0, and Makefile will
think it was a success.

 ~ > touch -c doesnotexist
 ~ > echo $?
0
 ~ >

-- 
With kind regards,

Hans-Christian Egtvedt, siv.ing. (M.Sc.)
Applications Engineer - AVR32 System Solutions - Atmel Norway
-- 
Mvh
Hans-Christian Egtvedt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help