Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
77 captures
15 Sep 2008 - 10 Jun 2025
AugSEPDec
Previous capture26Next capture
202020212022
success
fail
COLLECTED BY
Collection:Common Crawl
Web crawl data from Common Crawl.
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20210926215742/https://guide.macports.org/chunked/using.binaries.html
1. Introduction
2. Installing MacPorts
2.1. Install Xcode
2.2. Install MacPorts
2.3. Upgrade MacPorts
2.4. Uninstall MacPorts
2.5. MacPorts and the Shell
3. Using MacPorts
3.1. The port Command
3.2. Port Variants
3.3. Common Tasks
3.4. Port Binaries
4. Portfile Development
4.1. Portfile Introduction
4.2. Creating a Portfile
4.3. Example Portfiles
4.4. Port Variants
4.5. Patch Files
4.6. Local Portfile Repositories
4.7. Portfile Best Practices
4.8. MacPorts' buildbot
5. Portfile Reference
5.1. Global Keywords
5.2. Global Variables
5.3. Port Phases
5.4. Dependencies
5.5. Variants
5.6. Tcl Extensions & Useful Tcl Commands
5.7. StartupItems
5.8. Livecheck / Distcheck
5.9. PortGroups
6. MacPorts Internals
6.1. File Hierarchy
6.2. Configuration Files
6.3. Port Images
6.4. APIs and Libs
6.5. The MacPorts Registry
6.6. Tests
7. MacPorts Project
7.1. Using Trac for Tickets
7.2. Using Git and GitHub
7.3. Contributing to MacPorts
7.4. Port Update Policies
7.5. Updating Documentation
7.6. MacPorts Membership
7.7. The PortMgr Team
8. MacPorts Guide Glossary
Glossary
3.4. Port Binaries
Prev Chapter 3. Using MacPorts Next

Single PageChunked

3.4. Port Binaries

3.4.1. Binary Archives
3.4.2. Binary Packages

MacPorts can pre-compile ports into binaries so applications need not be compiled when installing on a target system. MacPorts supports two types of binaries: archives and packages.

3.4.1. Binary Archives

Binary archives can only be used on a target system running MacPorts. They allow MacPorts utilities to skip the build (which is usually the phase that takes longest) and begin installation after the destroot phase. Binary archives are automatically created whenever a port is installed, and can also be downloaded from a server. MacPorts runs a buildbot infrastructure that creates prebuilt binary packages for all ports in MacPorts for the default installation prefix. Buildbots exist for systems later or equal to Snow Leopard. If a port builds successfully and its license and those of its dependencies allow binary redistribution, the archives are uploaded topackages.macports.org and will be automatically used by MacPorts during installation.

You can manually create an archive (and see debug output for its creation) using

$sudo port -d archive logrotate
--->  Installing logrotate @3.8.6_2+gzip[…]DEBUG: Creating logrotate-3.8.6_2+gzip.darwin_13.x86_64.tbz2[…]a .a ./+COMMENTa ./+CONTENTSa ./+DESCa ./+PORTFILEa ./+STATEa ./opta ./opt/locala ./opt/local/etca ./opt/local/sbina ./opt/local/sharea ./opt/local/vara ./opt/local/var/runa ./opt/local/var/run/logrotatea ./opt/local/var/run/logrotate/.turd_logrotatea ./opt/local/share/logrotatea ./opt/local/share/mana ./opt/local/share/man/man5a ./opt/local/share/man/man8a ./opt/local/share/man/man8/logrotate.8.gza ./opt/local/share/man/man5/logrotate.conf.5.gza ./opt/local/share/logrotate/CHANGESa ./opt/local/share/logrotate/COPYINGa ./opt/local/share/logrotate/logrotate.conf.examplea ./opt/local/share/logrotate/org.macports.logrotate.plist.examplea ./opt/local/sbin/logrotatea ./opt/local/etc/logrotate.da ./opt/local/etc/logrotate.d/.turd_logrotateDEBUG: Archive logrotate-3.8.6_2+gzip.darwin_13.x86_64.tbz2 packaged

Binary archive files are placed in${prefix}/var/macports/software/. The archive file type is set inmacports.conf using theportarchivetype key. The default format istbz2; other options are:tar,tbz,tbz2,tgz,tlz,txz,xar,zip,cpgz, andcpio.

3.4.2. Binary Packages

Binary packages are standalone binary installers that are precompiled; they do not require MacPorts on the target system. As such, they are helpful in generating disk images or installers to be redistributed to users without relying on MacPorts for installation. Binary installers created with MacPorts are usually.pkg (macOS Installer packages). MacPorts can also convert a.pkg package into a macOS.dmg disk image. You can create binary packages usingport as shown in the following examples.

Warning

If you want to create installer packages using MacPorts for redistribution, make sure you do not use a standard installation of MacPorts in/opt/local. If you do that, your installer package conflicts with MacPorts on systems thatdo have MacPorts installed.

Instead, followSection 2.2.4, “Install Multiple MacPorts Copies” and choose a prefix specific to the software you are trying to package, e.g.,/opt/logrotate forlogrotate. Then use this custom MacPorts installation to build your package.

Create a macOS.pkg installer for thepstree port:

$sudo port pkg pstree

You may also create a macOS.dmg disk image file instead:

$sudo port dmg pstree

In most cases you probably want to package a port and all its library and runtime dependencies in a single package. You can use a metapackage to do this. Create one using:

$sudo port mpkg gimp2

Just as with a single package, a metapackage can also be wrapped in a.dmg.

$sudo port mdmg gimp2

All packages are placed in a port's work directory, which you can locate using:

$port workportname

Prev Up Next
3.3. Common Tasks Home Chapter 4. Portfile Development

[8]ページ先頭

©2009-2025 Movatter.jp