6 PACKAGE_FILE
=$(PACKAGE
)_
$(VERSION
).zip
7 # WITH_TOOLSET=--with-toolset=sun
8 WITH_TOOLSET
=--with-toolset
=
11 PACKAGE_FILE
=$(PACKAGE
)_
$(VERSION
).
tar.bz2
13 WITH_TOOLSET
=--with-toolset
=darwin
19 BJAM_FLAGS
=link
=static
21 ifeq ($(HOSTNAME
),mypants
)
24 # # universal build on Mac OS X doesn't work
25 # ifeq ($(OS), Darwin)
26 # # Build universal binaries
27 # BJAM_FLAGS=macosx-version=10.5 macosx-version-min=10.4 architecture=combined threading=multi link=static address-model=32
31 SUBDIR
:=$(shell echo
$(VERSION
) | sed
-e
's/_/./g')
32 PACKAGE_DIR
=$(PACKAGE
)_
$(VERSION
)
35 all: $(PACKAGE
)-install.tag
clean
37 download
/$(PACKAGE_FILE
):
38 wget
-P download http
://sourceforge.net
/projects
/boost
/files
/boost
/$(SUBDIR
)/$(PACKAGE_FILE
)
40 $(PACKAGE
)-download.tag
: download
/$(PACKAGE_FILE
)
43 $(PACKAGE
)-unpack.tag
: $(PACKAGE
)-download.tag
45 unzip download
/$(PACKAGE_FILE
)
46 find
$(PACKAGE_DIR
) -type f
-exec dos2unix
{} {} \
;
47 find
$(PACKAGE_DIR
) -name
'*.sh' -exec chmod
+x
{} \
;
49 tar xjvf download
/$(PACKAGE_FILE
)
53 $(PACKAGE
)-configure.tag
: $(PACKAGE
)-unpack.tag
55 cd
$(PACKAGE_DIR
) && \
56 .
/bootstrap.sh
$(WITH_TOOLSET
) --prefix=$(LOCAL_DIR
) --with-libraries
=graph
60 $(PACKAGE
)-make.tag
: $(PACKAGE
)-configure.tag
62 cd
$(PACKAGE_DIR
) && \
67 $(PACKAGE
)-install.tag
: $(PACKAGE
)-make.tag
69 test -d
$(LOCAL_DIR
)/include || mkdir
$(LOCAL_DIR
)/include
70 -test -d
$(LOCAL_DIR
)/include/boost
&& rm -rf
$(LOCAL_DIR
)/include/boost
71 mv
$(PACKAGE_DIR
)/boost
$(LOCAL_DIR
)/include/
73 cd
$(PACKAGE_DIR
) && \
74 .
/bjam
$(BJAM_FLAGS
) install
79 rm -rf
$(PACKAGE_DIR
) *.tag