Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xx-macports to install MacPorts packages #87

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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 <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
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