Table of Contents
The pkgsrc system has already been ported to many operating systems, hardware architectures and compilers. This chapter explains the necessary steps to make pkgsrc even more portable.
To port pkgsrc to a new operating system (called
MyOS in this example), you need to touch the
This file contains some basic definitions, for example the name of the C compiler.
Insert code that defines the variables
APPEND_ELF, and the other variables that
appear in this file.
This file contains the platform-specific definitions that are used by pkgsrc. Start by copying one of the other files and edit it to your needs.
This file defines the paths to all the tools that are needed by one or the other package in pkgsrc, as well as by pkgsrc itself. Find out where these tools are on your platform and add them.
Now, you should be able to build some basic packages, like