r405 - x86/trunk/packages/ncurses

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun Jul 24 08:43:57 PDT 2005


Author: jhuntwork
Date: 2005-07-24 09:43:56 -0600 (Sun, 24 Jul 2005)
New Revision: 405

Modified:
   x86/trunk/packages/ncurses/Makefile
Log:
Updated ncurses Makefile

Modified: x86/trunk/packages/ncurses/Makefile
===================================================================
--- x86/trunk/packages/ncurses/Makefile	2005-07-24 15:28:37 UTC (rev 404)
+++ x86/trunk/packages/ncurses/Makefile	2005-07-24 15:43:56 UTC (rev 405)
@@ -1,47 +1,103 @@
 # Ncurses Makefile
+#==============================================================================
 
-# Package versions
 NM= ncurses
 VRS= 5.4
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-PATCH= $(DIR)-20050319-patch.sh
-URL= $(HTTP)/$(NM)/$(FILE)
-URL1= ftp://invisible-island.net/ncurses/5.4/$(PATCH).bz2
+URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(FILE)= e4911dd9688a8e3ebf5faa97efd2eb9790b0c1d9
 
-# RULES
+PATCH1= $(DIR)-20050319-patch.sh.bz2
+URL-$(PATCH1)= ftp://invisible-island.net/ncurses/5.4/$(PATCH1)
+SHA-$(PATCH1)= 1aa84a707d3824f1f048297963798ff5c2b66c58
 
-.PHONY: stage1 clean chroot stage2
+# Targets
+# =============================================================================
 
-stage1:
-	@echo ""
-	@echo "=====> Building $(NM)"
-	@echo ""
-	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
-	 mv $(FILE) $(SRC) ; fi
-	@if [ ! -f $(WD)/bin/clear ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
-	 ./configure --prefix=$(WD) --with-shared --without-debug --without-ada --enable-overwrite && \
-	 make sources && make -j3 && make install ; fi
-	@make clean
+include $(ROOT)/scripts/functions
 
+stage1: $(FILE)
+	@$(std_build)
+	@cp $(SRC)/$(FILE) $(LFSSRC)
+
+compile-stage1:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@./configure --prefix=$(WD) --with-shared --without-debug \
+	 --without-ada --enable-overwrite >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make sources >>../$(DIR)-$@.log 2>&1
+	@make $(PM) >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make install >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+
 chroot:
-	@chroot "$(MP)" $(chenv-pre-bash) 'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'
+	@chroot "$(MP)" $(chenv-pre-bash) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'
 
-stage2:
-	@echo ""
-	@echo "======> Building $(NM) in chroot"
-	@echo ""
-	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
-	 mv $(FILE) $(SRC) ; fi
-	@if [ ! -f $(PATCH) ] ; then $(WGET) $(URL1) && bunzip2 $(PATCH).bz2 ; fi
-	@if [ ! -f /usr/bin/clear ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
-	 sh ../$(PATCH) && \
-	 ./configure --prefix=/usr --with-shared --without-debug --with-gpm && \
-	 make sources && make -j3 && make install && chmod 755 /usr/lib/*.5.4 && \
-	 chmod 644 /usr/lib/libncurses++.a && mv /usr/lib/libncurses.so.5* /lib && \
-	 ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so && \
-	 ln -sf libncurses.so /usr/lib/libcurses.so ; fi
-	@make clean
+stage2: Makefile $(FILE) $(PATCH1)
+	@$(std_build)
 
+compile-stage2:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@bzcat ../$(PATCH1) > update.sh
+	@sh update.sh
+	@./configure --prefix=/usr --with-shared --without-debug --with-gpm \
+	 >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make sources >>../$(DIR)-$@.log 2>&1
+	@make $(PM) >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make install >>../$(DIR)-$@.log 2>&1
+	@chmod 755 /usr/lib/*.5.4
+	@chmod 644 /usr/lib/libncurses++.a && mv /usr/lib/libncurses.so.5* /lib
+	@ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
+	@ln -sf libncurses.so /usr/lib/libcurses.so
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: compile-stage1 clean chroot compile-stage2




More information about the livecd mailing list