According the PKGSRC documentation (doc/pkgsrc.txt), you can override any target by writing adding a "do_<target>" target to your pkgsrc package Makefile.
You can also amend any target in the pkgsrc Makefile by adding "pre-<target>" to have something happen before the standard target, and a "post-<target>" to have something happen after the target.
|