Created
December 4, 2011 13:55
-
-
Save KonaBlend/1430260 to your computer and use it in GitHub Desktop.
mkvtoolnix-boost/Portfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
# $Id$ | |
PortSystem 1.0 | |
name mkvtoolnix-boost | |
version 1.48.0 | |
categories mkvtoolnix | |
maintainers gmail.com:kona8lend | |
description Boost provides free peer-reviewed portable C++ source libraries. | |
homepage http://www.boost.org/ | |
platforms darwin | |
license Boost-1.0 | |
long_description ${description} \ | |
We emphasize libraries that work well with the C++ Standard Library. \ | |
Boost libraries are intended to be widely useful, \ | |
and usable across a broad spectrum of applications. | |
depends_lib port:bzip2 \ | |
port:expat \ | |
port:gcc46 \ | |
port:icu \ | |
port:zlib | |
# local variables | |
set _basename boost | |
set _distver [regsub -all {\.} ${version} "_"] | |
set _private_root ${prefix}/private/mkvtoolnix | |
################################################################################ | |
## PHASE: FETCH | |
################################################################################ | |
master_sites sourceforge | |
use_bzip2 yes | |
distname ${_basename}_${_distver} | |
master_sites.mirror_subdir ${_basename} | |
livecheck.type regex | |
livecheck.url ${homepage} | |
livecheck.regex "Version (\\d+\\.\\d+\\.\\d+)" | |
################################################################################ | |
## PHASE: CHECKSUM | |
################################################################################ | |
checksums rmd160 e006121ae5cac37aa419ac5bbf59e090e6ca7f70 \ | |
sha256 1bf254b2d69393ccd57a3cdd30a2f80318a005de8883a0792ed2f5e2598e5ada | |
################################################################################ | |
## PHASE: EXTRACT | |
################################################################################ | |
################################################################################ | |
## PHASE: PATCH | |
################################################################################ | |
patchfiles patch-tools-build-v2-tools-darwin.jam.diff | |
################################################################################ | |
## PHASE: CONFIGURE | |
################################################################################ | |
configure.compiler macports-gcc-4.6 | |
configure.cc_archflags | |
configure.cxx_archflags | |
configure.objc_archflags | |
configure.ld_archflags | |
configure.cmd ./bootstrap.sh | |
configure.args --with-icu=${prefix} \ | |
--with-libraries=filesystem,regex,system | |
configure.pre_args-delete --prefix=${prefix} | |
configure.pre_args-append --prefix=${_private_root} | |
################################################################################ | |
## PHASE: BUILD | |
################################################################################ | |
pre-build { | |
set fd [open ${worksrcpath}/user-config.jam "w"] | |
puts ${fd} "using darwin : 4.6 : /opt/local/bin/g++-mp-4.6 : <compileflags>-std=c++0x ;" | |
close ${fd} | |
} | |
build.cmd ${worksrcpath}/b2 | |
build.target | |
build.args -j${build.jobs} \ | |
-q \ | |
-d+2 \ | |
--debug-configuration \ | |
--user-config=user-config.jam \ | |
link=shared \ | |
threading=multi \ | |
variant=release \ | |
toolset=darwin-4.6 | |
################################################################################ | |
## PHASE: TEST | |
################################################################################ | |
################################################################################ | |
## PHASE: DESTROOT | |
################################################################################ | |
destroot.pre_args | |
destroot.args ${build.args} | |
destroot.post_args install --prefix=${destroot}${_private_root} | |
destroot.violate_mtree yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment