-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Ellis
committed
Jul 13, 2015
1 parent
93250cf
commit 9ef9a3d
Showing
1 changed file
with
14 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,25 @@ I don't think there is an official prebuilt package repository for the developme | |
|
||
|
||
To get started | ||
|
||
Fetch the ports tree | ||
|
||
root@wandboard:~ # portsnap fetch | ||
|
||
First time usage | ||
|
||
root@wandboard:~ # portsnap extract | ||
|
||
The systems comes with a *C* compiler and associated development tools | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # which cc | ||
root@wandboard:~ # which cc | ||
/usr/bin/cc | ||
|
||
root@wandboard:/usr/ports/ports-mgmt/pkg # cc --version | ||
root@wandboard:~ # cc --version | ||
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 | ||
Target: armv6--freebsd11.0-gnueabi | ||
Thread model: posix | ||
|
||
Fetch the ports tree | ||
|
||
root@wandboard:~ # portsnap fetch | ||
|
||
First time usage | ||
|
||
Generate a ports index (optional, takes awhile) | ||
root@wandboard:~ # portsnap extract | ||
|
||
root@wandboard:/usr/ports # make index | ||
|
||
Since I never plan to connect a display, I'm setting some default flags in `/etc/make.conf` so they apply to all ports | ||
|
||
|
@@ -57,100 +54,15 @@ Search for a port | |
List dependencies before building | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make all-depends-list | ||
/usr/ports/ports-mgmt/pkg | ||
|
||
The *iperf* port has only one dependency - *pkg* | ||
Configure dependencies all at once (so the build can run unattended) | ||
|
||
root@wandboard:/usr/ports/devel/subversion # make config-recursive | ||
|
||
Build a port, this will build and install dependencies as well | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # make install iperf | ||
... | ||
|
||
When it completes | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # which iperf | ||
/usr/local/bin/iperf | ||
|
||
root@wandboard:/usr/ports/benchmarks/iperf # iperf -v | ||
iperf version 2.0.5 (08 Jul 2010) pthreads | ||
|
||
Something a little bigger | ||
|
||
root@wandboard:/usr/ports # make search name=python27 | ||
Port: python27-2.7.8_5 | ||
Path: /usr/ports/lang/python27 | ||
Info: Interpreted object-oriented programming language | ||
Maint: [email protected] | ||
B-deps: gettext-0.18.3.1_1 indexinfo-0.2 pkgconf-0.9.7 readline-6.3.8 | ||
R-deps: gettext-0.18.3.1_1 indexinfo-0.2 readline-6.3.8 | ||
WWW: http://www.python.org/ | ||
|
||
root@wandboard:/usr/ports # cd lang/python27 | ||
root@wandboard:/usr/ports/lang/python27 # make install | ||
|
||
You'll get a dialog for a few options not in `/etc/make.conf` | ||
|
||
DEBUG (=n) | ||
PYMALLOC (=y) | ||
SEM (=y) | ||
UCS2 (=n) | ||
UCS4 (=y) | ||
|
||
(I am accepting the defaults for all packages unless I specify otherwise.) | ||
|
||
The *readline* build will also prompt for some config settings. | ||
|
||
When it's done | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ls /usr/local/bin | ||
2to3-2.7 idle2.7 iperf pkgconf python2.7 | ||
dialog4ports indexinfo pkg-config pydoc2.7 python2.7-config | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python2.7 | ||
Python 2.7.8 (default, Oct 4 2014, 12:44:55) | ||
[GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd11 | ||
Type "help", "copyright", "credits" or "license" for more information. | ||
>>> print 5+6 | ||
11 | ||
>>> quit() | ||
|
||
Make it the default (probably a more standard way) | ||
|
||
root@wandboard:/usr/ports/lang/python27 # ln -s /usr/local/bin/python2.7 /usr/local/bin/python | ||
|
||
root@wandboard:/usr/ports/lang/python27 # python --version | ||
Python 2.7.8 | ||
|
||
Proceeding like this, I eventually ended up with this package list | ||
|
||
root@wandboard:~ # pkg info | ||
ca_root_nss-3.17.1 The root certificate bundle from the Mozilla Project | ||
dialog4ports-0.1.5_2 Console Interface to configure ports | ||
gettext-0.18.3.1_1 GNU gettext package | ||
glib-2.36.3_4 Some useful routines of C programming (current stable version) | ||
gmake-3.82_2 GNU version of 'make' utility | ||
gmake-lite-3.82 Minimalist version of gnu make | ||
help2man-1.43.3_1 Automatically generating simple manual pages from program output | ||
icu-53.1 International Components for Unicode (from IBM) | ||
indexinfo-0.2 Utility to regenerate the GNU info page index | ||
iperf-2.0.5 Tool to measure maximum TCP and UDP bandwidth | ||
jpeg-8_5 IJG's jpeg compression utilities | ||
libffi-3.0.13_2 Foreign Function Interface | ||
libiconv-1.14_4 Character set conversion library | ||
libv4l-0.8.8_2 Video4Linux library | ||
pcre-8.35_1 Perl Compatible Regular Expressions library | ||
perl5-5.16.3_11 Practical Extraction and Report Language | ||
pkg-1.3.8_2 Package manager | ||
pkgconf-0.9.7 Utility to help to configure compiler and linker flags | ||
python27-2.7.8_5 Interpreted object-oriented programming language | ||
qt5-buildtools-5.2.1_1 Qt build tools | ||
qt5-core-5.2.1_2 Qt core non-graphical module | ||
qt5-network-5.2.1_1 Qt network module | ||
qt5-qmake-5.2.1_1 Qt Makefile generator | ||
readline-6.3.8 Library for editing command lines as they are typed | ||
texinfo-5.2.20140808 Typeset documentation system with multiple format output | ||
v4l_compat-1.0.20120501_1 Video4Linux IOCTL header files | ||
webcamd-3.17.0.6 Port of Linux USB webcam and DVB drivers into userspace | ||
root@wandboard:/usr/ports/devel/subversion # make install clean | ||
|
||
|
||
|
||
[freebsd]: http://www.freebsd.org | ||
|