Difference between revisions of "Hugin Compiling FreeBSD"

From PanoTools.org Wiki
Jump to: navigation, search
(all FreeBSD files / patches have been streamlined)
(Bring up to date.)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Hugin is part of the FreeBSD [http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/hugin/ ports collection]. Using the ports collection (and contributing fixes to it) is the recommended way to install Hugin on FreeBSD.
+
FreeBSD supports Hugin in the [http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/hugin/ ports collection]. The FreeBSD project is currently in a transition from building ports locally to distributing binary packages.  This page describes both approaches.
  
== Install with the port ==
+
=== Install the binary package ===
 +
With the new packages collection, simply:
  
 
<pre>
 
<pre>
# su
+
$ su
# cd /usr/ports/graphics/hugin
+
# pkg install hugin
# make
 
# make install
 
 
</pre>
 
</pre>
  
== Update the port ==
+
=== Install the latest released port ===
  
{| style="margin: 1em auto 1em 1em;background:#FFFF99;color:#FF0000;text-align:left;border: solid #FF3300;"
+
The details of building FreeBSD ports are described [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html here]. Briefly, once you ensure that your ports tree is up to date,
|-valign="top"
 
! '''WARNING:'''
 
Below is newbie's work in progress. Following these instructions may corrupt your FreeBSD system or worse. Exercise caution (read: don't do this) until the experts confirm that the newbie has done things rights.
 
|}
 
  
to track closely Hugin's releases, after each new release edit the following files in the ports collection:
+
<pre>
 
+
$ su
1. edit '''[http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/hugin/distinfo?rev=1.8;content-type=text%2Fplain distinfo]''' to point to the right tarball. You will need to edit the name in parenthesis, to calculate and edit the md5 and sha256 hashes, to edit the filesize.
+
# cd /usr/ports/graphics/hugin
 
+
# make clean install
2. edit the '''Makefile'''.
+
</pre>
* edit PORTVERSION and PORTREVISION
 
* add/update build dependencies to LIB_DEPENDS=
 
* add/update runtime dependencies to RUN_DEPENDS=
 
* add/update Cmake building arguments to CMAKE_ARGS=
 
* if you're not sure about something that need to be done, ask the experts.
 
  
3. edit the '''pkg-plist''' list of installed files. While it can't be done automatically, the trick is to 'make PREFIX=/tmp/foobar install' and then check the files under /tmp/foobar (assuming it was non-existent before)
+
This port is currently maintained by Greg Lehey <grog (at) FreeBSD.org>.
  
4. probably not necessary: edit the '''pkg-descr''' description of Hugin.
+
=== Install the latest development version ===
  
make a diff and submit it to the FreeBSD experts.
+
The development version is no longer available in the Ports Collection.  To build it, update the standard port according to the instructions in the [https://www.freebsd.org/doc/en/books/porters-handbook/ FreeBSD Porter's Handbook]
  
 
[[Category:Software:Hugin]]
 
[[Category:Software:Hugin]]
 
[[Category:Software:Hugin:Compiling]]
 
[[Category:Software:Hugin:Compiling]]

Latest revision as of 04:14, 11 November 2016

FreeBSD supports Hugin in the ports collection. The FreeBSD project is currently in a transition from building ports locally to distributing binary packages. This page describes both approaches.

Install the binary package

With the new packages collection, simply:

$ su
# pkg install hugin

Install the latest released port

The details of building FreeBSD ports are described here. Briefly, once you ensure that your ports tree is up to date,

$ su
# cd /usr/ports/graphics/hugin
# make clean install

This port is currently maintained by Greg Lehey <grog (at) FreeBSD.org>.

Install the latest development version

The development version is no longer available in the Ports Collection. To build it, update the standard port according to the instructions in the FreeBSD Porter's Handbook