Difference between revisions of "Hugin Compiling FreeBSD"

From PanoTools.org Wiki
Jump to navigation Jump to search
(Created page with '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 reco...')
 
(Remove instructions for the old style packages)
(18 intermediate revisions by 5 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 with two ports 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.  Note that the binary package approach is changing, and this description could become out of date.
  
== Install with the port ==
+
== Build locally ==
 +
 
 +
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,
 +
 
 +
=== Install the package ===
 +
With the new packages collection, simply:
  
 
<pre>
 
<pre>
# su
+
$ su
 +
# pkg install hugin
 +
</pre>
 +
 
 +
=== Install the latest released port ===
 +
 
 +
<pre>
 +
$ su
 
# cd /usr/ports/graphics/hugin
 
# cd /usr/ports/graphics/hugin
# make
+
# make clean install
# make install
+
</pre>
 +
 
 +
This port is currently maintained by Vasil Dimov <vd (at) FreeBSD.org>.
 +
 
 +
=== Install the latest development version ===
 +
 
 +
<pre>
 +
$ su
 +
# cd /usr/ports/graphics/hugin-devel
 +
# make clean install
 
</pre>
 
</pre>
  
== Update the port ==
+
This port is currently maintained by Greg Lehey <grog (at) FreeBSD.org>.
  
{| style="margin: 1em auto 1em 1em;background:#FFFF99;color:#FF0000;text-align:left;border: solid #FF3300;"
+
=== Multiple versions ===
|-valign="top"
 
! '''WARNING:'''
 
Below is newbie's work in progress. Following these instructions may corrupt your FreeBSD system or worse. Don't do that 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:
+
It is not possible to install both the released and the development versions of Hugin on the same machine.  If you want to experiment, first make a backup of the installed version, remove it, and install the other version.  If you want to go back, remove the new version and restore the old version.
  
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.
+
For example, to try a new development version, you would do:
  
2. edit the '''Makefile'''.
+
<pre>
* add/update build dependencies to LIB_DEPENDS=
+
$ su
* add/update runtime dependencies to RUN_DEPENDS=
+
# cd /usr/ports/graphics/hugin
* add/update Cmake building arguments to CMAKE_ARGS=
+
# make backup
* if you're not sure about something that need to be done, ask the experts.
+
# make deinstall
 +
# cd /usr/ports/graphics/hugin-devel
 +
# make clean install
 +
</pre>
  
3. edit the '''pkg-plist''' list of installed files
+
If you then decide to go back to the old version, you can do:
 +
 
 +
<pre>
 +
# make backup
 +
# make deinstall
 +
# cd /usr/ports/graphics/hugin
 +
# pkg_add hugin-2012.0.0.tbz
 +
</pre>
  
4. probably not necessary: edit the '''pkg-descr''' description of Hugin.
 
  
make a diff and submit it to the FreeBSD experts.
+
[[Category:Software:Hugin]]
 +
[[Category:Software:Hugin:Compiling]]

Revision as of 07:42, 3 October 2014

FreeBSD supports Hugin with two ports 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. Note that the binary package approach is changing, and this description could become out of date.

Build locally

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

Install the package

With the new packages collection, simply:

$ su
# pkg install hugin

Install the latest released port

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

This port is currently maintained by Vasil Dimov <vd (at) FreeBSD.org>.

Install the latest development version

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

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

Multiple versions

It is not possible to install both the released and the development versions of Hugin on the same machine. If you want to experiment, first make a backup of the installed version, remove it, and install the other version. If you want to go back, remove the new version and restore the old version.

For example, to try a new development version, you would do:

$ su
# cd /usr/ports/graphics/hugin
# make backup
# make deinstall
# cd /usr/ports/graphics/hugin-devel
# make clean install

If you then decide to go back to the old version, you can do:

# make backup
# make deinstall
# cd /usr/ports/graphics/hugin
# pkg_add hugin-2012.0.0.tbz