Annotation of htdocs/docs/pkgsrc/porting.html, revision 1.19
1.19 ! sevan 1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
1.1 dsieger 2: <html>
3: <head>
4: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
1.3 rillig 5: <title>Chapter 26. Porting pkgsrc</title>
1.7 spz 6: <link rel="stylesheet" type="text/css" href="/global.css">
1.1 dsieger 7: <meta name="generator" content="DocBook XSL Stylesheets VX.X.X">
1.5 rillig 8: <link rel="home" href="index.html" title="The pkgsrc guide">
1.1 dsieger 9: <link rel="up" href="infrastructure.html" title="Part III. The pkgsrc infrastructure internals">
1.3 rillig 10: <link rel="prev" href="regression.html" title="Chapter 25. Regression tests">
1.1 dsieger 11: <link rel="next" href="examples.html" title="Appendix A. A simple example package: bison">
12: </head>
13: <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14: <div class="navheader">
15: <table width="100%" summary="Navigation header">
1.3 rillig 16: <tr><th colspan="3" align="center">Chapter 26. Porting pkgsrc</th></tr>
1.1 dsieger 17: <tr>
18: <td width="20%" align="left">
19: <a accesskey="p" href="regression.html">Prev</a> </td>
20: <th width="60%" align="center">Part III. The pkgsrc infrastructure internals</th>
21: <td width="20%" align="right"> <a accesskey="n" href="examples.html">Next</a>
22: </td>
23: </tr>
24: </table>
25: <hr>
26: </div>
1.9 asau 27: <div class="chapter">
1.1 dsieger 28: <div class="titlepage"><div><div><h2 class="title">
1.3 rillig 29: <a name="porting"></a>Chapter 26. Porting pkgsrc</h2></div></div></div>
1.1 dsieger 30: <div class="toc">
31: <p><b>Table of Contents</b></p>
1.18 rillig 32: <dl class="toc"><dt><span class="sect1"><a href="porting.html#porting.opsys">26.1. Porting pkgsrc to a new operating system</a></span></dt></dl>
1.1 dsieger 33: </div>
34: <p>The pkgsrc system has already been ported to many
35: operating systems, hardware architectures and compilers. This
36: chapter explains the necessary steps to make pkgsrc even more
37: portable.</p>
1.9 asau 38: <div class="sect1">
1.1 dsieger 39: <div class="titlepage"><div><div><h2 class="title" style="clear: both">
1.3 rillig 40: <a name="porting.opsys"></a>26.1. Porting pkgsrc to a new operating system</h2></div></div></div>
1.1 dsieger 41: <p>To port pkgsrc to a new operating system (called
42: <code class="literal">MyOS</code> in this example), you need to touch the
43: following files:</p>
1.9 asau 44: <div class="variablelist"><dl class="variablelist">
1.1 dsieger 45: <dt><span class="term"><code class="filename">pkgtools/bootstrap-mk-files/files/mods/<em class="replaceable"><code>MyOS</code></em>.sys.mk</code></span></dt>
46: <dd><p>This file contains some basic definitions, for
47: example the name of the C
48: compiler.</p></dd>
49: <dt><span class="term"><code class="filename">mk/bsd.prefs.mk</code></span></dt>
50: <dd><p>Insert code that defines the variables
51: <code class="varname">OPSYS</code>, <code class="varname">OS_VERSION</code>,
52: <code class="varname">LOWER_OS_VERSION</code>,
53: <code class="varname">LOWER_VENDOR</code>,
54: <code class="varname">MACHINE_ARCH</code>, <code class="varname">OBJECT_FMT</code>,
55: <code class="varname">APPEND_ELF</code>, and the other variables that
56: appear in this file.</p></dd>
57: <dt><span class="term"><code class="filename">mk/platform/<em class="replaceable"><code>MyOS</code></em>.mk</code></span></dt>
58: <dd><p>This file contains the platform-specific
59: definitions that are used by pkgsrc. Start by copying one of the
60: other files and edit it to your
61: needs.</p></dd>
62: <dt><span class="term"><code class="filename">mk/tools/tools.<em class="replaceable"><code>MyOS</code></em>.mk</code></span></dt>
63: <dd><p>This file defines the paths to all the tools
64: that are needed by one or the other package in pkgsrc, as well
65: as by pkgsrc itself. Find out where these tools are on your
66: platform and add them.</p></dd>
67: </dl></div>
68: <p>Now, you should be able to build some basic packages, like
1.19 ! sevan 69: <a href="http://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/lang/perl5/README.html" target="_top"><code class="filename">lang/perl5</code></a>, <a href="http://cdn.NetBSD.org/pub/pkgsrc/current/pkgsrc/shells/bash/README.html" target="_top"><code class="filename">shells/bash</code></a>.</p>
1.1 dsieger 70: </div>
71: </div>
72: <div class="navfooter">
73: <hr>
74: <table width="100%" summary="Navigation footer">
75: <tr>
76: <td width="40%" align="left">
77: <a accesskey="p" href="regression.html">Prev</a> </td>
78: <td width="20%" align="center"><a accesskey="u" href="infrastructure.html">Up</a></td>
79: <td width="40%" align="right"> <a accesskey="n" href="examples.html">Next</a>
80: </td>
81: </tr>
82: <tr>
1.3 rillig 83: <td width="40%" align="left" valign="top">Chapter 25. Regression tests </td>
1.1 dsieger 84: <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
85: <td width="40%" align="right" valign="top"> Appendix A. A simple example package: bison</td>
86: </tr>
87: </table>
88: </div>
89: </body>
90: </html>
CVSweb <webmaster@jp.NetBSD.org>