version 1.181, 2001/08/25 02:17:02 |
version 1.182, 2001/08/29 22:55:36 |
Line 1545 Where possible, the system headers and l |
|
Line 1545 Where possible, the system headers and l |
|
into ${BUILDLINK_DIR} to match the names of their pkgsrc counterparts so |
into ${BUILDLINK_DIR} to match the names of their pkgsrc counterparts so |
that the files may be referenced under a consistent name. |
that the files may be referenced under a consistent name. |
|
|
Goal (2) requires some work on the part of the package builder and can |
Goal (2) requires some work on the part of the package builder. As all |
still only be incompletely met. As all headers and libraries used by a |
headers and libraries used by a package may be found in ${BUILDLINK_DIR}, |
package may be found in ${BUILDLINK_DIR}, and -I${BUILDLINK_DIR}/include |
and -I${BUILDLINK_DIR}/include and -L${BUILDLINK_DIR}/lib are already passed |
and -L${BUILDLINK_DIR}/lib are already passed to the compiler, it is no |
to the compiler, it is no longer necessary to pass -I${LOCALBASE}/include or |
longer necessary to pass -I${LOCALBASE}/include or -L${LOCABASE}/lib to the |
-L${LOCABASE}/lib to the compiler. Therefore, those lines should be removed |
compiler. Therefore, those lines should be removed from package Makefiles, |
from package Makefiles, and where necessary, the package sources should be |
and where necessary, the package sources should be patched to do the same. |
patched to do the same. Also, if a package uses X11, then by including |
If USE_BUILDLINK_ONLY is defined, then -L${LOCALBASE}/lib is not |
mk/x11.buildlink.mk, -I${BUILDLINK_X11_DIR}/include and |
automatically added to LDFLAGS in bsd.pkg.mk. However, this process |
-L${BUILDLINK_X11_DIR}/lib are also passed to the compiler instead of the |
provides isolated builds only for platforms that use xpkgwedge as we |
corresponding directories in ${X11BASE}. Also, if USE_BUILDLINK_ONLY is |
can't currently isolate the X11R6 files from package files installed under |
defined, then -L${LOCALBASE}/lib is not automatically added to LDFLAGS in |
${X11BASE}. |
bsd.pkg.mk. |
|
|
|
|
8.2 Writing buildlink.mk files |
8.2 Writing buildlink.mk files |
Line 1604 buildlink.mk files: |
|
Line 1604 buildlink.mk files: |
|
USE_MOTIF --> .include "../../x11/lesstif/buildlink.mk" |
USE_MOTIF --> .include "../../x11/lesstif/buildlink.mk" |
USE_MOTIF12 --> .include "../../x11/lesstif12/buildlink.mk" |
USE_MOTIF12 --> .include "../../x11/lesstif12/buildlink.mk" |
USE_SSL --> .include "../../security/openssl/buildlink.mk" |
USE_SSL --> .include "../../security/openssl/buildlink.mk" |
|
USE_X11 --> .include "../../mk/x11.buildlink.mk" |
USE_XAW --> .include "../../mk/xaw.buildlink.mk" |
USE_XAW --> .include "../../mk/xaw.buildlink.mk" |
USE_XPM --> .include "../../graphics/xpm/buildlink.mk" |
USE_XPM --> .include "../../graphics/xpm/buildlink.mk" |
|
|