Skip to content

Conversation

@crazy-max
Copy link
Collaborator

@crazy-max crazy-max commented Nov 2, 2022

Adds xx-macports wrapper to install MacPorts packages.

This can be useful for projects using external libs like: https://github.com/crazy-max/goxx/blob/d1984026a69580e20cb2c738fa021bb98e6398ab/examples/jq/exec.go#L11 (Dockerfile usage example: https://github.com/crazy-max/goxx/blob/d1984026a69580e20cb2c738fa021bb98e6398ab/examples/jq/Dockerfile#L18-L23)

Needs to update README with basic usage example.

@crazy-max crazy-max force-pushed the macports branch 2 times, most recently from c4700bd to 441b59c Compare February 16, 2024 08:53
flags="--arm64"
fi

if ! command -v "osxcross-macports" >/dev/null 2>/dev/null; then
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the current changes osxcross needs to be mounted in the Dockerfile but we could just fork https://github.com/tpoechtrager/osxcross/blob/master/tools/osxcross-macports. It just requires wget to download packages so should be fine as we need it for also prebuilt ld binaries. More info: https://github.com/tpoechtrager/osxcross/blob/master/README.MACPORTS.md

@tonistiigi WDYT?

Signed-off-by: CrazyMax <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant