Showing posts with label macports. Show all posts
Showing posts with label macports. Show all posts

Wednesday, August 14, 2024

macports port hints

macports.org

search for available packages

https://ports.macports.org/

 

port installed
 
 
sudo port selfupdate

 

2.4. Uninstall MacPorts

uninstall all installed packages

sudo port -fp uninstall installed

 To find the location of installed components, use the contents subcommand:

port contents libxml2
macport prefix
 
 
https://github.com/cargo-generate/cargo-generate/issues/1208#issuecomment-2182884600
sudo port deactivate libiconv cargo install cargo-generate sudo port activate libiconv

 

MacPort Cheat Sheet

 

Get description on package

port info gnutls 

 




 
 

Tuesday, April 23, 2024

part 1:clean rust install

Note:

If you need rustc and cargo to learn rust you might not need rustup.  However it is required for most projects.   So follow this.

Install Rust (macos)

 curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh

 

The install (see above) is as easy as the official site (https://www.rust-lang.org/tools/install) says.   So why don't I like it?

Well I know I would have to:

  1. examine the script and try to figure out what it was doing
  2. write a note to myself about some directory paths
  3. review above note to uninstall 
  4. leave behind a bunch of left over files

Instructions

macport is the package manager I use.

download and install macports from macports.org

A how to for homebrew users.

You don't need xcode but you will need the tools.  Launch terminal and enter these commands:

xcode-select --install

sudo port install rust
sudo port install cargo

 

cd /opt/local/bin 

./rustc --version
rustc 1.77.1 (7cf61ebde 2024-03-27) (built from a source tarball)
 

Success you have installed rust!

macos 12.7 Monterey macbook pro 2.7 GHz Core i5 (I5-5257U)

Part 2: rustup; why


Sunday, September 11, 2022

Audacity 3.2.1 and libraries

Audacity 3.2.1

Tried arm64 and x86_64 both available for download.  The libraries are available in FAT binaries; works great.

 
Ignore below:

Building FFmpeg import/export library notes

Visit 2: building m1 arm64 apple silicon native ffmpeg


port install automake fdk-aac git lame libass libtool libvorbis libvpx \
opus sdl shtool texi2html theora wget x264 x265 xvid nasm
 Error: Port fdk-aac not found 
Error: Port opus not found
Error: Port sdl not found 

Error: Port shtool not found 

Error: Port theora not found



Error: Port shtool not found


Corrections:
sudo port install libfdk-aac
sudo port install libopus
sudo port install libsdl
sudo port install libtheora



sudo port install automake libfdk-aac lame libass libtool libvorbis libvpx libopus libsdl texi2html libtheora wget x264 x265 xvid nasm

  


Install shtool manually:
https://www.gnu.org/software/shtool/

 --annoying of MacPorts to drop shtool?  brew has a formula



In /Users/b____/Documents/builds/ffmpeg_src/ffmpeg-4.4

./configure

WARNING: pkg-config not found, library detection may fail.



sudo port install pkgconfig 

./configure
make

sudo make install



The binary will be installed in:

/usr/local/bin/ffmpeg

 

Success building ffmpeg but ...



Still no ffmpeg.55.64bit.dylib !?!

Let's wait for Release 3.2

 

Visit 1: Building audacity


Thursday, October 14, 2021

emacs Universal build Intel x86_64 and arm64

emacs Intel, arm build

If you just want to install gnu emacs for macos and get going Emacs for MacOSX is the place to go.  

I did the builds on my early-2015 mbp with Big Sur 11.6.
  • read https://github.com/caldwell/build-emacs
  • download build scripts
 
I didn't install xcode.
xcode-select --install (installs command line tools)

install macports
sudo port install xz
./fetch-emacs-from-ftp -v ftp://ftp.gnu.org/gnu/emacs/
 
# port install xz
# if you need to convert xz to bz2
# xzcat -c emacs-27.2.tar.xz | bzip2 > emacs-27.2.tar.bz2

./build-emacs-from-tar -v emacs-27.2.tar.bz2 release 

Success:
Built Emacs-27.2-11.6-x86_64.tar.bz2, Emacs-27.2-11.6-x86_64-extra-source.tar

  • CODESIGN crash
Then I reproduced those same steps on an m1 mac mini with xcode13 installed and signed it:
  • ./combine-and-package -v --sign "Common Name" Emacs-27.2-11.6-arm64.tar.bz2 
    • replace "Common Name" with the name in the keychain access login cert.
  • see: code signing issue #103  
  • Success!  Thanks Emacs for MacOSX!
TODO:
Go back to the MBP and try the codesign step. 


 

 

 




 

Tuesday, September 7, 2021

Building Audacity on m1 apple silicon

Building Audacity on m1 apple silicon

Don't bother with all the stuff below.  Audacity is now available as an arm64 m1 native binary.  The x86_64 version works great too!  Great work developers!

DONE  

Visit 1

 
  • install macports for Big Sur 11.5.2
  • sudo port install audacity
  • Success, kind of, version 2.2.2 popped out in glorious Apple Silicon binary but I couldn't get the current 3.0.4.
  • pull request BUILDING.md typo, correction:
 cmake -GXcode -T buildsystem=1 -Daudacity_use_mad="off" -Daudacity_use_id3tag=off ../audacity
 
git clone https://github.com/audacity/audacity
  •  sudo pip3 install conan   
  • activated venv using py-env
  • master v3.1.0 failed check out 3.0.4
git clone -b release-3.0.4 --single-branch https://github.com/audacity/audacity
  • cmake and Xcode

cmake -GXcode -T buildsystem=1 ../audacity 

open Audacity.xcodeproj

  • rm -rf build/*
  • run cmake again:
 cmake -GXcode -T buildsystem=1 -Daudacity_use_mad="off" -Daudacity_use_id3tag=off ../audacity
 

 

 DO

 Using python3 venv virtual environment:

 BLOCKED 

  • conan install failing(use py-env)
  • source blocked for m1 compile; 
  • downloaded branch beta 12.2 wxwidget not included
  • wxwidget build error
  • Xcode does not build master branch 3.1.0 or 3.0.4
  • 3.0.4 builds then crashes immediately (Intel)
 

First, doing anything on an external USB3 hard drive is painfully slow compared to the blisteringly fast internal ssd.  macports took over an hour to install.

I think macports is finally falling behind since most sites talk about brew (meh). Macports has been working great so far.

I wish m1 virtual machine time was 3cents/hr
 
 

Info 

 



 

Monday, August 23, 2021

macports gramps geneology build Universal binary

 

Installing macports pkg manager for macos 11.5.2


  • Install port 
  • edit macports.conf; uncomment the universal_archs line

sudo nano /opt/local/etc/macports/macports.conf

sudo port install gramps +universal

try this instead 

sudo port -s install gramps +universal 

result:

--->  Configuring m4

Error: Failed to configure m4: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log

Error: Failed to configure m4: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

 

known issue

#62991    m4 @1.4.19+universal: configure: error:
 
sudo port clean m4 

sudo port install gramps

result:


--->  Configuring db53

Error: Failed to configure db53: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/work/db-5.3.28/build_unix/config.log

Error: Failed to configure db53: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db53/db53/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gramps failed

--->  Some of the ports you installed have notes:

  gawk has the following notes:

    readline support has been removed from gawk. If you need to run gawk interactively, install rlwrap:

    

    sudo port install rlwrap

    

    and run gawk using rlwrap:

    

    rlwrap gawk ...


db53 report filed

#63400    Error: Processing of port db53 failed


Check:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_m4/m4/work/m4-1.4.19/config.log


$xcodebuild -showsdks




Nice Table of Xcode and macos versions

https://developer.apple.com/support/xcode/




Update needed after OS upgrade


sudo xcode-select --install



Big Sur problem builds

broken ports









Friday, August 13, 2021

Explore using Nix instead of Homebrew

 

Explore using Nix instead of Homebrew.

https://wickedchicken.github.io/post/macos-nix-setup/

 Moving from Homebrew to Nix Package Manager

https://dev.to/louy2/use-nix-on-macos-as-a-homebrew-user-22d

Not recommended, use it on Debian

Switching from Homebrew to Nix - ErrRight

Saturday, September 26, 2009

my notes on building git on OS X 10.6 Snow Leopard

Hello!

Looking at the Omni frameworks I realized I would need the git source control package.

Dan Benjamin's HiveLogic article on building git on Snow Leopard explains the steps in detail.
What I am going to talk about are the road bumps I ran into.

After getting the git source, download:
asciidoc
xmlto
getopt
packages.

Alright, time to turn to MacPorts 1.8.0 to resolve all these dependencies. Except xmlto (bug#) hung up the works in MacPorts. Thanks to lightning fast response from MacPorts I found I needed to upgrade libxml2 to 2.7.5 thus:

sudo port install libxml2

After that xmlto installs fine as does git. Hope that helps. Cheers.

More links:
asciidoc
http://www.methods.co.nz/asciidoc/INSTALL.html#X1
http://sourceforge.net/projects/asciidoc/

xmlto
http://directory.fsf.org/project/xmlto/

getopt
http://huizen.dds.nl/~frodol/getopt.html
http://software.frodo.looijaard.name/getopt/download.php