The attached patch implements the automatic appending of the appropriate flags on CPPFLAGS and LDFLAGS if x11-dev is found on the BuildDepends. Note that we don't seem to have a special routine yet to check for the presence of a specific package on Depends or BuildDepends. The current patch places the test that sets the $BD_on_x11_dev in the resolve_altspec(). Tested on 10.10 fink by checking the CPPFLAGS set with and without x11-dev being present on the BuildDepends line.
This patch will make fink robust to removal of the X11 and X11R6 convenience symlinks and should make the usage of "--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" unnecessary. That construct is extremely problematic to retain if we don't insure the presence of the convenience symlinks.
Log in to post a comment.