| Summary: | [books/porters-handbook] Adding a call sample for pkg-install in Makefile | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | freebsd | ||||
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | doc | ||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed The change was committed with a little modification: PKG_PREFIX instead of @PKG_PREFIX. Thanks! |
Because a lot of maintainer does not make a correct call to the pkg-install script in their Makefile, i think we should include a sample. Adding @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL is a mistake because with a WRKDIRPREFIX variable set, this would not work: pkg-install have to be replaced with the PKG-INSTALL variable substitution instead.