4 # Build universl binaries
6 COMPILERS
= CC
="$(XCODE_ROOT)/usr/bin/gcc" CXX
="$(XCODE_ROOT)/usr/bin/g++"
8 LDFLAGS
+= -Wl
,-syslibroot
,$(XCODE_ROOT
)/SDKs
/MacOSX10.4u.sdk
-arch i386
-arch ppc
-L
$(HOME
)/local-
$(HOSTNAME
)/lib
9 CXXFLAGS
+= -O2
-isysroot
$(XCODE_ROOT
)/SDKs
/MacOSX10.4u.sdk
-arch i386
-arch ppc
-I
$(HOME
)/local-
$(HOSTNAME
)/include
10 CFLAGS
+= -O2
-isysroot
$(XCODE_ROOT
)/SDKs
/MacOSX10.4u.sdk
-arch i386
-arch ppc
-I
$(HOME
)/local-
$(HOSTNAME
)/include
13 VERSION
=$(shell expr download
/ncurses-
*.
tar.gz
: 'download/ncurses-\(.*\).tar.gz')
16 all: ncurses-install.tag
clean
19 wget
-P download http
://ftp.gnu.org
/pub
/gnu
/ncurses
/ncurses-5.6.
tar.gz
22 ncurses-unpack.tag
: ncurses-download.tag
23 tar xzvf download
/ncurses-
$(VERSION
).
tar.gz
26 ncurses-configure.tag
: ncurses-unpack.tag
27 cd ncurses-
$(VERSION
) && \
28 .
/configure
--prefix=$(LOCAL_DIR
) $(COMPILERS
) CFLAGS
="$(CFLAGS)" CXXFLAGS
="$(CXXFLAGS)" LDFLAGS
="$(LDFLAGS)"
31 ncurses-make.tag
: ncurses-configure.tag
32 $(MAKE
) -C ncurses-
$(VERSION
)
35 ncurses-install.tag
: ncurses-make.tag
36 $(MAKE
) -C ncurses-
$(VERSION
) install
40 rm -rf ncurses-
$(VERSION
) download
/* *.tag