Coder Social home page Coder Social logo

macports / brew / pkgsrc ??? about osxcross HOT 13 CLOSED

maci0 avatar maci0 commented on July 22, 2024
macports / brew / pkgsrc ???

from osxcross.

Comments (13)

tpoechtrager avatar tpoechtrager commented on July 22, 2024

MacPorts might be worth a try:

Running on platforms other than Mac OS X is not the main focus of The MacPorts Project,
so remaining cross-platform is not an actively-pursued development goal. Nevertheless,
it is not an actively-discouraged goal either and as a result some experimental support
does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.

https://www.macports.org/install.php

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

I was able to install macports on linux. IIRC the problem would be the need to touch all the port files to use a cross compiler.

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Modifying MacPorts would probably also work, especially libexec/macports/lib/port1.0/portconfigure.tcl.

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

ok, will look into that then. if i get it working somehow i will write something up

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

@tpoechtrager i came up with this: https://github.com/maci0/pmmacports
its not perfect but works for my use case and i was able to compile a rather complex project using osxcross

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Good job. I will integrate it into OSXCross soon.
Are you fine with GPL2 and an entry in AUTHORS?

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

@tpoechtrager take it :) I'm fine with GPL2 as well, just picked BSD for its simplicity.
Might be wise to add a check at the beginning of the script to see if lynx and wget are installed.

also instead of main $PACKAGES one could change it to main $* to accept the packagelist from commandline

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

I already got rid of lynx and improved/fixed a lot of other things:

https://gist.github.com/tpoechtrager/75db965b025c5bf62b9a

$ osxcross-macports search libcxx geoip
libcxx
libcxxabi
wxWidgets-3.0-libcxx
libgeoip
php-geoip
[...]

$ osxcross-macports install libcxx libgeoip
searching for package libcxx ...
downloading libcxx-183506_1.darwin_11.x86_64.tbz2 ...
installing libcxx ...
searching for package libgeoip ...
downloading libgeoip-1.6.2_0.darwin_11.x86_64.tbz2 ...
installing libgeoip ...

$ osxcross-macports install wget           
searching for package wget ...
downloading wget-1.15_1+ssl.darwin_11.x86_64.tbz2 ...
[...]
searching for package libedit-20121213 ...
no packages found
trying libedit instead ...
searching for package libedit ...
downloading libedit-20140620-3.1_0.darwin_11.x86_64.tbz2 ...
installing libedit ...
[...]

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

i guess you will run into problems with pkg-config if you dont install this under /opt/local .. perhap sits enough to change the .pc files but im not sure

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

I am planning to make MacPorts installed libraries directly usable with OSXCross
(or at least optionally), so there is no need for -isystem /-I / -L/ pkg-config etc.

But seding the *.pc files may not be wrong either.

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Ok, I will go the opt/ + PKG_CONFIG_SYSROOT_DIR + PKG_CONFIG_PATH way, other directories are causing lots of troubles...

i.e.:

export OSXCROSS_PKG_CONFIG_SYSROOT_DIR=/home/thomas/development/osxcross/target/macports
export OSXCROSS_PKG_CONFIG_PATH=/home/thomas/development/osxcross/target/macports/opt/local/lib/pkgconfig

$ x86_64-apple-darwin13-pkg-config --libs SDL2_mixer
-L/home/thomas/development/osxcross/target/macports/opt/local/lib -lSDL2_mixer -lSDL2 
$ x86_64-apple-darwin13-pkg-config --cflags SDL2_mixer
-D_THREAD_SAFE -I/home/thomas/development/osxcross/target/macports/opt/local/include/SDL2 -I/home/thomas/development/osxcross/target/macports/usr/include/SDL2 

Thanks for the hint!

from osxcross.

maci0 avatar maci0 commented on July 22, 2024

all i did to get my project compiling was
export OSXCROSS_PKG_CONFIG_LIBDIR=/opt/local/lib/pkgconfig might be the wrong way tho. there is lots of conflicting pkgconfig information floating around the net

from osxcross.

tpoechtrager avatar tpoechtrager commented on July 22, 2024

Added a minimalistic macports packet manager in 5a21748.
Sorry for the long delay.

from osxcross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.