Author: jhuntwork Date: 2005-08-02 06:43:42 -0600 (Tue, 02 Aug 2005) New Revision: 491
Modified: x86/trunk/packages/freetype/Makefile Log: Updated Freetype Makefile Modified: x86/trunk/packages/freetype/Makefile =================================================================== --- x86/trunk/packages/freetype/Makefile 2005-08-02 11:29:46 UTC (rev 490) +++ x86/trunk/packages/freetype/Makefile 2005-08-02 12:43:42 UTC (rev 491) @@ -1,32 +1,58 @@ # FreeType Makefile +#============================================================================== -# Package versions NM= freetype VRS= 2.1.10 DIR= $(NM)-$(VRS) + FILE= $(DIR).tar.bz2 -URL= http://easynews.dl.sourceforge.net/sourceforge/freetype/$(FILE) +URL-$(FILE)= $(HTTPBLFS)/F-H/$(FILE) +SHA-$(FILE)= f9e5c52e466c3e41483d5d6d44b4f3135a9c4b16 +# Targets +# ============================================================================= +include $(ROOT)/scripts/functions -#RULES +chroot: + @chroot "$(MP)" $(chenv-blfs) \ + 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' -.PHONY: clean chroot stage2 +stage2: Makefile $(FILE) + @$(std_build) -chroot: - @chroot "$(MP)" $(chenv-blfs) 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)' +compile-stage2: + @$(call echo_message, Configuring) +#============================================================================== +# Configure commands below \/ +#============================================================================== + @sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h + @CFLAGS="$(CFLAGS) -fno-strict-aliasing" ./configure --prefix=/usr \ + >../$(DIR)[EMAIL PROTECTED] 2>&1 +# +#==Status Messages========================================== +# + @$(OK) + @$(call echo_message, Making) +#============================================================================== +# Make commands below \/ +#============================================================================== + @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1 +# +#==Status Messages=========================================== +# + @$(OK) + @$(call echo_message, Installing) +#============================================================================== +# Install commands below \/ +#============================================================================== + @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1 +# +#==Status Messages=========================================== +# + @$(OK) -stage2: - @echo "" - @echo "=====> Building $(NM) in chroot" - @echo "" - @if [ ! -f $(FILE) ] ; then $(WGET) $(URL) ; fi - @if [ ! -f $(PATCH) ] ; then $(WGET) $(URL1) ; fi - @if [ ! -f /usr/lib/libfreetype.so ] ; then unpack $(FILE) && cd $(DIR) && \ - sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h && \ - CFLAGS="$(CFLAGS) -fno-strict-aliasing" ./configure --prefix=/usr && \ - make -j3 && make install ; fi - @make clean - clean: @-rm -rf $(DIR) + +.PHONY: clean chroot compile-stage2 -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
