<p><pre><code>  My quick notes on how to get started with pkgsrc
  
  More info:	http:&#x2F;&#x2F;pkgsrc.org&#x2F;
  			http:&#x2F;&#x2F;wiki.netbsd.org&#x2F;pkgsrc&#x2F;pkgsrc_64bit_osx&#x2F;
  			
  # Download pkgsrc
  curl -O https:&#x2F;&#x2F;ftp.netbsd.org&#x2F;pub&#x2F;pkgsrc&#x2F;stable&#x2F;pkgsrc.tar.bz2
  # validate shasum
  $ curl -O https:&#x2F;&#x2F;ftp.netbsd.org&#x2F;pub&#x2F;pkgsrc&#x2F;stable&#x2F;pkgsrc.tar.bz2.SHA1
  $ cat pkgsrc.tar.bz2.SHA1
  $ shasum pkgsrc.tar.bz2
  # extract pkgsrc archive. Mine lives at ~&#x2F;Work and I also install built packages under Work.
  $ tar jxvf pkgsrc.tar.bz2
  # bootstrap
  $ cd pkgsrc&#x2F;bootstrap
  $ .&#x2F;bootstrap --abi=64 --prefer-pkgsrc=yes --unprivileged --compiler=clang --prefix=&quot;$HOME&#x2F;Work&#x2F;pkg&quot;
  # append prefix&#x2F;bin to your PATH
  $ cat ~&#x2F;.bash_profile
  export PATH=&quot;$PATH:$HOME&#x2F;Work&#x2F;pkg&#x2F;bin&quot;
  # re-login to make PATH effective
  # Example build of dos2unix (poor example because lots of dependencies like perl...)
  $ cd pkgsrc&#x2F;converters&#x2F;dos2unix&#x2F;
  $ bmake install
  ...
  ===&gt; Installing binary package of dos2unix-7.3.3
  
  $ file ~&#x2F;Work&#x2F;pkg&#x2F;bin&#x2F;dos2unix
  &#x2F;Users&#x2F;petri&#x2F;Work&#x2F;pkg&#x2F;bin&#x2F;dos2unix: Mach-O 64-bit executable x86_64</code></pre>