CREATEBUILDLINK(8)

NAME
createbuildlink - automatic pkgsrc buildlink3.mk generator

SYNOPSIS
createbuildlink [-p]

DESCRIPTION
createbuildlink reads in the Makefile and PLIST of a package and creates an initial buildlink3.mk file on stdout.

The following options are available:

-p  Create PRINT_PLIST_AWK substitution patterns for directories created and removed by this package. This is useful for base packages that create a directory structure for a number of dependent packages.

While createbuildlink is supposed to help starting create a buildlink file for a package, it is not intended to fly on autopilot. That means that while the script makes some simplistic attempts to interpret some elements of the Makefile and the PLIST such as the contents of the include and lib subdirectories or package config scripts, the results should not be put into a package directory without some scrutiny.

Using createbuildlink helps maneuver through the initial process of creating a buildlink file for a package to be included by depending packages. Using createbuildlink is less error-prone than copying an existing buildlink file as a template and renaming the entries in there.

SEE ALSO
packages(7), url2pkg(8)

AUTHORS
createbuildlink was written by Rene Hexel <rh@netbsd.org>.