Changeset View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,713 Lines • ▼ Show 20 Lines | |||||
. else | . else | ||||
STRIP_CMD= ${TRUE} | STRIP_CMD= ${TRUE} | ||||
. endif | . endif | ||||
# Allow the user to specify another linux_base version. | # Allow the user to specify another linux_base version. | ||||
. if defined(OVERRIDE_LINUX_BASE_PORT) | . if defined(OVERRIDE_LINUX_BASE_PORT) | ||||
. if ${USE_LINUX:tl} == yes | . if ${USE_LINUX:tl} == yes | ||||
USE_LINUX= ${OVERRIDE_LINUX_BASE_PORT} | USE_LINUX= ${OVERRIDE_LINUX_BASE_PORT} | ||||
. elif ${USE_LINUX} == "c6" && ${OVERRIDE_LINUX_BASE_PORT} == "c6_64" | |||||
allanjude: this can probably be combined into a single if, but it'd be really long | |||||
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:${PORTSDIR}/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:${PORTSDIR}/emulators/linux_base-c6 | ||||
. elif ${USE_LINUX} == "c6_64" | |||||
LINUX_BASE_PORT= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/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") | |||||
Not Done Inline ActionsWhat's the reason for moving this block from bsd.linux-rpm.mk ? xmj: What's the reason for moving this block from bsd.linux-rpm.mk ? | |||||
Not Done Inline Actionslinux-rpm.mk is only included if the port has USE_LINUX_RPM=yes Some other ports, like linux-c6, the base it self, flash, etc, needed the variables like LINUX_RPM_ARCH and LINUX_REPO_ARCH even though they don't use the RPM system (which changes the distfiles etc). This will also be required for stuff like a 64bit version of the linux-oracle-jdk port allanjude: linux-rpm.mk is only included if the port has USE_LINUX_RPM=yes
Some other ports, like linux… | |||||
. if ${ARCH} != "amd64" | |||||
Not Done Inline ActionsUSE_LINUX= c6_64 should be IGNORE'd if the destination ARCH is i386. xmj: USE_LINUX= c6_64 should be IGNORE'd if the destination ARCH is i386. | |||||
IGNORE= Cannot install 64 bit Linux on non-64bit platforms | |||||
. endif | |||||
LINUX_RPM_ARCH?= x86_64 | |||||
Not Done Inline ActionsDuplicate if-block. Can you abstract it outside, so that it'll work for both CentOS bases/ports independent of architecture? xmj: Duplicate if-block. Can you abstract it outside, so that it'll work for both CentOS bases/ports… | |||||
Not Done Inline Actions+1 to what @xmj said eadler: +1 to what @xmj said | |||||
LINUX_REPO_ARCH?= x86_64 | |||||
. elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" # default to CentOS | |||||
LINUX_RPM_ARCH?= i686 | |||||
LINUX_REPO_ARCH?= i386 | |||||
Not Done Inline ActionsWhen is this part ever executed? xmj: When is this part ever executed? | |||||
Not Done Inline Actionsyes, most ports set USE_LINUX to c6, not c6_64 This block actually switches them if 'override' is set. This might be a place where it should be OVERRIDE_LINUX_NONBASE_PORTS allanjude: yes, most ports set USE_LINUX to c6, not c6_64
This block actually switches them if 'override'… | |||||
. elif ${USE_LINUX} == "f10" | |||||
LINUX_RPM_ARCH?= i386 | |||||
LINUX_REPO_ARCH?= i386 | |||||
. 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:${PORTSDIR}/graphics/gbm | ||||
_GL_glesv2_BUILD_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | _GL_glesv2_BUILD_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | ||||
_GL_glesv2_RUN_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | _GL_glesv2_RUN_DEPENDS= libglesv2>0:${PORTSDIR}/graphics/libglesv2 | ||||
▲ Show 20 Lines • Show All 3,935 Lines • Show Last 20 Lines |
this can probably be combined into a single if, but it'd be really long