Elegant way to hack port source
amijaresp at gmail.com
Fri Mar 19 16:45:00 UTC 2010
On Fri, Mar 19, 2010 at 12:05 PM, Alejandro Imass <ait at p2ee.org> wrote:
> I need to modify a file from a port before building. Specifically, the
> sane-backends pnm.c driver has a bug and the folks at the original
> project has not fixed for a while. I need to modify pnm.c in the work
> directory before compiling. What is an elegant way of doing this? If I
> make and then modify, the main make file does not see the change made
> in the file and will not recompile. And since there is no actual
> makefile in the work subdirectory I can't compile there either!
You could make a copy of graphics/sane-backends to
graphics/sane-backends-devel, fix the source in the new port's
directory and install it as a regular port.
Check this out too
More information about the freebsd-questions