Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 1,559 Lines • ▼ Show 20 Lines | CO_ENV+= STAGEDIR=${STAGEDIR} \ | ||||
MTREE_FILE=${MTREE_FILE} \ | MTREE_FILE=${MTREE_FILE} \ | ||||
TMPPLIST=${TMPPLIST} \ | TMPPLIST=${TMPPLIST} \ | ||||
SCRIPTSDIR=${SCRIPTSDIR} \ | SCRIPTSDIR=${SCRIPTSDIR} \ | ||||
PLIST_SUB_SED="${PLIST_SUB_SED}" \ | PLIST_SUB_SED="${PLIST_SUB_SED}" \ | ||||
PORT_OPTIONS="${PORT_OPTIONS}" \ | PORT_OPTIONS="${PORT_OPTIONS}" \ | ||||
PORTSDIR="${PORTSDIR}" | PORTSDIR="${PORTSDIR}" | ||||
.if defined(X_BUILD_FOR) | .if defined(X_BUILD_FOR) | ||||
BUILD_DEPENDS+= ${X_BUILD_FOR}-cc:${PORTSDIR}/devel/${X_BUILD_FOR}-xdev | BUILD_DEPENDS+= ${X_BUILD_FOR}-cc:devel/${X_BUILD_FOR}-xdev | ||||
PKG_ENV+= ABI_FILE=${X_SYSROOT}/usr/lib/crt1.o | PKG_ENV+= ABI_FILE=${X_SYSROOT}/usr/lib/crt1.o | ||||
MAKE_ENV+= NM=${NM} \ | MAKE_ENV+= NM=${NM} \ | ||||
STRIPBIN=${X_BUILD_FOR}-strip \ | STRIPBIN=${X_BUILD_FOR}-strip \ | ||||
PKG_CONFIG_SYSROOT_DIR="${X_SYSROOT}" | PKG_CONFIG_SYSROOT_DIR="${X_SYSROOT}" | ||||
CONFIGURE_ENV+= PKG_CONFIG_SYSROOT_DIR="${X_SYSROOT}" | CONFIGURE_ENV+= PKG_CONFIG_SYSROOT_DIR="${X_SYSROOT}" | ||||
.endif | .endif | ||||
WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work | WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work | ||||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
CONFIGURE_SHELL?= ${SH} | CONFIGURE_SHELL?= ${SH} | ||||
MAKE_SHELL?= ${SH} | MAKE_SHELL?= ${SH} | ||||
CONFIGURE_ENV+= SHELL=${CONFIGURE_SHELL} CONFIG_SHELL=${CONFIGURE_SHELL} | CONFIGURE_ENV+= SHELL=${CONFIGURE_SHELL} CONFIG_SHELL=${CONFIGURE_SHELL} | ||||
MAKE_ENV+= SHELL=${MAKE_SHELL} NO_LINT=YES | MAKE_ENV+= SHELL=${MAKE_SHELL} NO_LINT=YES | ||||
.if defined(PATCHFILES) && ${PATCHFILES:M*.zip} | .if defined(PATCHFILES) && ${PATCHFILES:M*.zip} | ||||
PATCH_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip | PATCH_DEPENDS+= ${LOCALBASE}/bin/unzip:archivers/unzip | ||||
.endif | .endif | ||||
# Check the compatibility layer for amd64/ia64 | # Check the compatibility layer for amd64/ia64 | ||||
.if ${ARCH} == "amd64" || ${ARCH} =="ia64" | .if ${ARCH} == "amd64" || ${ARCH} =="ia64" | ||||
.if exists(/usr/lib32) | .if exists(/usr/lib32) | ||||
HAVE_COMPAT_IA32_LIBS?= YES | HAVE_COMPAT_IA32_LIBS?= YES | ||||
.endif | .endif | ||||
Show All 23 Lines | |||||
.endif | .endif | ||||
PLIST_SUB+= LIB32DIR=${LIB32DIR} | PLIST_SUB+= LIB32DIR=${LIB32DIR} | ||||
.if ${WITH_PKG} == devel | .if ${WITH_PKG} == devel | ||||
PKG_ORIGIN= ports-mgmt/pkg-devel | PKG_ORIGIN= ports-mgmt/pkg-devel | ||||
.endif | .endif | ||||
.if !defined(PKG_DEPENDS) && !defined(CLEAN_FETCH_ENV) | .if !defined(PKG_DEPENDS) && !defined(CLEAN_FETCH_ENV) | ||||
PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PORTSDIR}/${PKG_ORIGIN} | PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN} | ||||
.endif | .endif | ||||
.if defined(USE_GCC) | .if defined(USE_GCC) | ||||
.include "${PORTSDIR}/Mk/bsd.gcc.mk" | .include "${PORTSDIR}/Mk/bsd.gcc.mk" | ||||
.endif | .endif | ||||
.if defined(USE_BINUTILS) && !defined(DISABLE_BINUTILS) | .if defined(USE_BINUTILS) && !defined(DISABLE_BINUTILS) | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils | BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils | ||||
BINUTILS?= ADDR2LINE AR AS CPPFILT GPROF LD NM OBJCOPY OBJDUMP RANLIB \ | BINUTILS?= ADDR2LINE AR AS CPPFILT GPROF LD NM OBJCOPY OBJDUMP RANLIB \ | ||||
READELF SIZE STRINGS | READELF SIZE STRINGS | ||||
BINUTILS_NO_MAKE_ENV?= | BINUTILS_NO_MAKE_ENV?= | ||||
. for b in ${BINUTILS} | . for b in ${BINUTILS} | ||||
${b}= ${LOCALBASE}/bin/${b:C/PP/++/:tl} | ${b}= ${LOCALBASE}/bin/${b:C/PP/++/:tl} | ||||
. if defined(GNU_CONFIGURE) || defined(BINUTILS_CONFIGURE) | . if defined(GNU_CONFIGURE) || defined(BINUTILS_CONFIGURE) | ||||
CONFIGURE_ENV+= ${b}="${${b}}" | CONFIGURE_ENV+= ${b}="${${b}}" | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
USE_LINUX= ${OVERRIDE_LINUX_BASE_PORT} | USE_LINUX= ${OVERRIDE_LINUX_BASE_PORT} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
# NOTE: when you update the default linux_base version (case "yes"), | # NOTE: when you update the default linux_base version (case "yes"), | ||||
# don't forget to update the Handbook! | # don't forget to update the Handbook! | ||||
. if exists(${PORTSDIR}/emulators/linux_base-${USE_LINUX}) | . if exists(${PORTSDIR}/emulators/linux_base-${USE_LINUX}) | ||||
LINUX_BASE_PORT= ${LINUXBASE}/bin/sh:${PORTSDIR}/emulators/linux_base-${USE_LINUX} | LINUX_BASE_PORT= ${LINUXBASE}/bin/sh:emulators/linux_base-${USE_LINUX} | ||||
. else | . else | ||||
. if ${USE_LINUX:tl} == "yes" | . if ${USE_LINUX:tl} == "yes" | ||||
USE_LINUX= c6 | USE_LINUX= c6 | ||||
LINUX_BASE_PORT= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-c6 | LINUX_BASE_PORT= ${LINUXBASE}/etc/redhat-release:emulators/linux_base-c6 | ||||
. elif ${USE_LINUX} == "c6_64" | . elif ${USE_LINUX} == "c6_64" | ||||
LINUX_BASE_PORT= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base-c6 | LINUX_BASE_PORT= ${LINUXBASE}/etc/redhat-release:emulators/linux_base-c6 | ||||
. else | . else | ||||
IGNORE= cannot be built: there is no emulators/linux_base-${USE_LINUX}, perhaps wrong use of USE_LINUX or OVERRIDE_LINUX_BASE_PORT | IGNORE= cannot be built: there is no emulators/linux_base-${USE_LINUX}, perhaps wrong use of USE_LINUX or OVERRIDE_LINUX_BASE_PORT | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. if ${USE_LINUX} == "c6_64" || (defined(OVERRIDE_LINUX_BASE_PORT) && ${OVERRIDE_LINUX_BASE_PORT} == "c6_64") | . if ${USE_LINUX} == "c6_64" || (defined(OVERRIDE_LINUX_BASE_PORT) && ${OVERRIDE_LINUX_BASE_PORT} == "c6_64") | ||||
. if ${ARCH} != "amd64" | . if ${ARCH} != "amd64" | ||||
IGNORE= Cannot install 64 bit Linux on non-64bit platforms | IGNORE= Cannot install 64 bit Linux on non-64bit platforms | ||||
. endif | . endif | ||||
LINUX_RPM_ARCH?= x86_64 | LINUX_RPM_ARCH?= x86_64 | ||||
LINUX_REPO_ARCH?= x86_64 | LINUX_REPO_ARCH?= x86_64 | ||||
. elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" # default to CentOS | . elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" # default to CentOS | ||||
LINUX_RPM_ARCH?= i686 | LINUX_RPM_ARCH?= i686 | ||||
LINUX_REPO_ARCH?= i386 | LINUX_REPO_ARCH?= i386 | ||||
. elif ${USE_LINUX} == "f10" | . elif ${USE_LINUX} == "f10" | ||||
LINUX_RPM_ARCH?= i386 | LINUX_RPM_ARCH?= i386 | ||||
LINUX_REPO_ARCH?= i386 | LINUX_REPO_ARCH?= i386 | ||||
. endif | . endif | ||||
RUN_DEPENDS+= ${LINUX_BASE_PORT} | RUN_DEPENDS+= ${LINUX_BASE_PORT} | ||||
.endif | .endif | ||||
PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | ||||
_GL_gbm_LIB_DEPENDS= libgbm.so:${PORTSDIR}/graphics/gbm | _GL_gbm_LIB_DEPENDS= libgbm.so:graphics/gbm | ||||
_GL_glesv2_BUILD_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | _GL_glesv2_BUILD_DEPENDS= libglesv2>0:graphics/libglesv2 | ||||
_GL_glesv2_RUN_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | _GL_glesv2_RUN_DEPENDS= libglesv2>0:graphics/libglesv2 | ||||
_GL_egl_BUILD_DEPENDS= libEGL>0:${PORTSDIR}/graphics/libEGL | _GL_egl_BUILD_DEPENDS= libEGL>0:graphics/libEGL | ||||
_GL_egl_RUN_DEPENDS= libEGL>0:${PORTSDIR}/graphics/libEGL | _GL_egl_RUN_DEPENDS= libEGL>0:graphics/libEGL | ||||
_GL_gl_BUILD_DEPENDS= libGL>0:${PORTSDIR}/graphics/libGL | _GL_gl_BUILD_DEPENDS= libGL>0:graphics/libGL | ||||
_GL_gl_RUN_DEPENDS= libGL>0:${PORTSDIR}/graphics/libGL | _GL_gl_RUN_DEPENDS= libGL>0:graphics/libGL | ||||
_GL_gl_USE_XORG= glproto dri2proto | _GL_gl_USE_XORG= glproto dri2proto | ||||
_GL_glew_LIB_DEPENDS= libGLEW.so:${PORTSDIR}/graphics/glew | _GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew | ||||
_GL_glu_LIB_DEPENDS= libGLU.so:${PORTSDIR}/graphics/libGLU | _GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU | ||||
_GL_glu_USE_XORG= glproto dri2proto | _GL_glu_USE_XORG= glproto dri2proto | ||||
_GL_glw_LIB_DEPENDS= libGLw.so:${PORTSDIR}/graphics/libGLw | _GL_glw_LIB_DEPENDS= libGLw.so:graphics/libGLw | ||||
_GL_glut_LIB_DEPENDS= libglut.so:${PORTSDIR}/graphics/freeglut | _GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut | ||||
.if defined(USE_GL) | .if defined(USE_GL) | ||||
. if ${USE_GL:tl} == "yes" | . if ${USE_GL:tl} == "yes" | ||||
USE_GL= glu | USE_GL= glu | ||||
. endif | . endif | ||||
. for _component in ${USE_GL} | . for _component in ${USE_GL} | ||||
. if !defined(_GL_${_component}_LIB_DEPENDS) && \ | . if !defined(_GL_${_component}_LIB_DEPENDS) && \ | ||||
!defined(_GL_${_component}_RUN_DEPENDS) | !defined(_GL_${_component}_RUN_DEPENDS) | ||||
▲ Show 20 Lines • Show All 855 Lines • ▼ Show 20 Lines | |||||
.if ${PREFIX} == /usr | .if ${PREFIX} == /usr | ||||
INFO_PATH?= share/info | INFO_PATH?= share/info | ||||
.else | .else | ||||
INFO_PATH?= info | INFO_PATH?= info | ||||
.endif | .endif | ||||
.if defined(INFO) | .if defined(INFO) | ||||
RUN_DEPENDS+= indexinfo:${PORTSDIR}/print/indexinfo | RUN_DEPENDS+= indexinfo:print/indexinfo | ||||
. for D in ${INFO:H} | . for D in ${INFO:H} | ||||
RD:= ${D} | RD:= ${D} | ||||
. if ${RD} != "." | . if ${RD} != "." | ||||
. if !defined(INFO_SUBDIR) | . if !defined(INFO_SUBDIR) | ||||
INFO_SUBDIR:= ${RD} | INFO_SUBDIR:= ${RD} | ||||
. elif ${INFO_SUBDIR} != ${RD} | . elif ${INFO_SUBDIR} != ${RD} | ||||
BROKEN= only one subdirectory in INFO is allowed | BROKEN= only one subdirectory in INFO is allowed | ||||
▲ Show 20 Lines • Show All 1,734 Lines • ▼ Show 20 Lines | |||||
fetch-recursive-list: | fetch-recursive-list: | ||||
@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ | @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ | ||||
(cd $$dir; ${MAKE} fetch-list); \ | (cd $$dir; ${MAKE} fetch-list); \ | ||||
done | done | ||||
.endif | .endif | ||||
# Used by fetch-required and fetch-required list, this script looks | # Used by fetch-required and fetch-required list, this script looks | ||||
# at each of the dependencies. If 3 items are specified in the tuple, | # at each of the dependencies. If 3 items are specified in the tuple, | ||||
# such as foo:${PORTSDIR}/graphics/foo:extract, the first item (foo) | # such as foo:graphics/foo:extract, the first item (foo) | ||||
# is examined. Only if it begins with a / and does not exist on the | # is examined. Only if it begins with a / and does not exist on the | ||||
# file-system will ``make targ'' proceed. | # file-system will ``make targ'' proceed. | ||||
# For more usual (dual-item) dependency tuples, the ``make targ'' | # For more usual (dual-item) dependency tuples, the ``make targ'' | ||||
# proceeds, if the exact package, which the directory WOULD'VE installed, | # proceeds, if the exact package, which the directory WOULD'VE installed, | ||||
# is not yet installed. | # is not yet installed. | ||||
# This is the exact behaviour of the old code, and it may need | # This is the exact behaviour of the old code, and it may need | ||||
# revisiting. For example, the entire first case seems dubious, and in | # revisiting. For example, the entire first case seems dubious, and in | ||||
# the second case we, probably, should be satisfied with _any_ (earlier) | # the second case we, probably, should be satisfied with _any_ (earlier) | ||||
▲ Show 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | |||||
# distribution-name|port-path|installation-prefix|comment| \ | # distribution-name|port-path|installation-prefix|comment| \ | ||||
# description-file|maintainer|categories|extract-depends| \ | # description-file|maintainer|categories|extract-depends| \ | ||||
# patch-depends|fetch-depends|build-depends|run-depends|www site | # patch-depends|fetch-depends|build-depends|run-depends|www site | ||||
# | # | ||||
# If this ever changes, portmgr should contact the portsnap maintainer | # If this ever changes, portmgr should contact the portsnap maintainer | ||||
# first to avoid gratuitous breakage. | # first to avoid gratuitous breakage. | ||||
. if !target(describe) | . if !target(describe) | ||||
_EXTRACT_DEPENDS=${EXTRACT_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} | _EXTRACT_DEPENDS=${EXTRACT_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} | ||||
_PATCH_DEPENDS=${PATCH_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} | _PATCH_DEPENDS=${PATCH_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} | ||||
_FETCH_DEPENDS=${FETCH_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} | _FETCH_DEPENDS=${FETCH_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} | ||||
_LIB_DEPENDS=${LIB_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} | _LIB_DEPENDS=${LIB_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} | ||||
_BUILD_DEPENDS=${BUILD_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} ${_LIB_DEPENDS} | _BUILD_DEPENDS=${BUILD_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} ${_LIB_DEPENDS} | ||||
_RUN_DEPENDS=${RUN_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u} ${_LIB_DEPENDS} | _RUN_DEPENDS=${RUN_DEPENDS:C/^[^ :]+:([^ :]+)(:[^ :]+)?/\1/:O:u:C,(^[^/]),${PORTSDIR}/\1,} ${_LIB_DEPENDS} | ||||
. if exists(${DESCR}) | . if exists(${DESCR}) | ||||
_DESCR=${DESCR} | _DESCR=${DESCR} | ||||
. else | . else | ||||
_DESCR=/dev/null | _DESCR=/dev/null | ||||
. endif | . endif | ||||
. if defined(BUILDING_INDEX) && defined(INDEX_PORTS) | . if defined(BUILDING_INDEX) && defined(INDEX_PORTS) | ||||
INDEX_OUT=${INDEX_TMPDIR}/${INDEXFILE}.desc.aggr | INDEX_OUT=${INDEX_TMPDIR}/${INDEXFILE}.desc.aggr | ||||
▲ Show 20 Lines • Show All 1,108 Lines • Show Last 20 Lines |