Author: alexander
Date: 2006-06-03 22:23:00 -0600 (Sat, 03 Jun 2006)
New Revision: 1573

Added:
   trunk/packages/bc/
   trunk/packages/bc/Makefile
Modified:
   trunk/Makefile
Log:
Added bc


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile      2006-06-03 07:34:14 UTC (rev 1572)
+++ trunk/Makefile      2006-06-04 04:23:00 UTC (rev 1573)
@@ -254,7 +254,7 @@
        ch-librsvg ch-startup-notification chroot-gvim ch-xfce ch-vte ch-exo \
        ch-XML-Parser ch-Terminal ch-mousepad ch-irssi \
        ch-xchat ch-wireless_tools ch-tcpwrappers ch-portmap ch-nfs-utils \
-       ch-traceroute ch-rsync ch-jhalfs ch-sudo \
+       ch-traceroute ch-rsync ch-jhalfs ch-sudo ch-bc \
        ch-dialog ch-ncftp ch-pciutils ch-device-mapper ch-LVM2 ch-dmraid \
        ch-dhcpcd ch-distcc ch-ppp ch-rp-pppoe ch-libaal ch-reiser4progs \
        ch-cpio ch-mutt ch-msmtp ch-tin ch-mdadm ch-which ch-BRLTTY \

Added: trunk/packages/bc/Makefile
===================================================================
--- trunk/packages/bc/Makefile                          (rev 0)
+++ trunk/packages/bc/Makefile  2006-06-04 04:23:00 UTC (rev 1573)
@@ -0,0 +1,34 @@
+# bc Makefile
+
+NM= bc
+VRS= 1.06
+DIR= $(NM)-$(VRS)
+
+FILE= $(DIR).tar.gz
+URL-$(FILE)= http://ftp.gnu.org/gnu/bc/$(FILE)
+SHA-$(FILE)= c8f258a7355b40a485007c40865480349c157292
+
+# Targets
+
+include $(ROOT)/scripts/functions
+
+chroot:
+       chroot "$(MP)" $(chenv-blfs) \
+       'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+
+stage2: Makefile $(FILE)
+       $(std_build)
+
+compile-stage2:
+       sed -i '/PROTO.*readline/d' bc/scan.l
+       sed -i '/flex -I8/s/8//' configure
+       sed -i '/stdlib/a #include <string.h>' lib/number.c
+       sed -i 's/program.*save/static &/' bc/load.c
+       ./configure --prefix=/usr --with-readline
+       make
+       make install
+
+clean:
+       -rm -rf $(DIR)
+
+.PHONY: compile-stage1 clean chroot compile-stage2

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to