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

Simple install script using MacPorts #113

Open
cvknage opened this issue Jan 10, 2021 · 0 comments
Open

Simple install script using MacPorts #113

cvknage opened this issue Jan 10, 2021 · 0 comments

Comments

@cvknage
Copy link

cvknage commented Jan 10, 2021

Here is a skript to minimize hassle for MacPorts users

Based on "noyannus commented on 2 Jun 2020"

(This works with "macFUSE 4.0.5" installed on "macOS Big Sur - Apple Silicon")

#!/bin/sh

sudo port install e2fsprogs m4 automake autoconf libtool pkgconfig

if [ ! -d fuse-ext2 ]; then
  git clone https://github.com/alperakcan/fuse-ext2.git
fi

# When creating a package in a system where GNU cp shadows BSD cp, the -X option in make-pkg.sh must be deleted or the script fails.
if [ $(which cp) == /opt/coreutils/libexec/gnubin/cp ]; then 
  sed -i 's/cp -pRX /cp -pR /' ./fuse-ext2/tools/macosx/make-pkg.sh 
fi

cd fuse-ext2
./autogen.sh
./configure \
    PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" \
    CFLAGS="-idirafter/opt/local/include -idirafter/usr/local/include/fuse" \
    LDFLAGS="-L/opt/local/lib"
make

# To install on the current system
# sudo make install

# To create an install package in the current directory
make package             
mv fuse-ext2*.dmg ../fuse-ext2.dmg
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

No branches or pull requests

1 participant