Changeset View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,737 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:tl} == "c6_64" | |||||
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 | |||||
. if ${ARCH} == "amd64" || ${ARCH} == "i386" | |||||
xmjAuthorUnsubmitted 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 ? | |||||
allanjudeUnsubmitted 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 ${USE_LINUX} == "c6_64" | |||||
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. | |||||
# Do not build CentOS 6 ports if overridden by f10 | |||||
. if defined(OVERRIDE_LINUX_NONBASE_PORTS) && ${OVERRIDE_LINUX_NONBASE_PORTS} == "f10" | |||||
IGNORE= This port requires CentOS ${LINUX_DIST_VER}. Please remove OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf. | |||||
xmjAuthorUnsubmitted 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… | |||||
eadlerUnsubmitted Not Done Inline Actions+1 to what @xmj said eadler: +1 to what @xmj said | |||||
. endif | |||||
LINUX_RPM_ARCH?= x86_64 | |||||
LINUX_REPO_ARCH?= x86_64 | |||||
. elif defined(OVERRIDE_LINUX_BASE_PORT) && ${OVERRIDE_LINUX_BASE_PORT} == "c6_64" | |||||
xmjAuthorUnsubmitted Not Done Inline ActionsWhen is this part ever executed? xmj: When is this part ever executed? | |||||
allanjudeUnsubmitted 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'… | |||||
LINUX_RPM_ARCH?= x86_64 | |||||
LINUX_REPO_ARCH?= x86_64 | |||||
. elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" # default to CentOS | |||||
# Do not build CentOS 6 ports if overridden by f10 | |||||
. if defined(OVERRIDE_LINUX_NONBASE_PORTS) && ${OVERRIDE_LINUX_NONBASE_PORTS} == "f10" | |||||
IGNORE= This port requires CentOS ${LINUX_DIST_VER}. Please remove OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf. | |||||
. endif | |||||
LINUX_RPM_ARCH?= i686 # ?= because of nasty c5 qt ports | |||||
LINUX_REPO_ARCH?= i386 | |||||
. elif ${USE_LINUX} == "f10" | |||||
# Do not build Fedora 10 ports unless specifically overridden. | |||||
#. if ! defined(OVERRIDE_LINUX_NONBASE_PORTS) || ${OVERRIDE_LINUX_NONBASE_PORTS} != "f10" | |||||
#IGNORE= This port requires Fedora 10, yet Fedora 10 is heavily outdated and contains many vulnerable ports. If you really need it, add OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf. | |||||
#. endif | |||||
LINUX_RPM_ARCH?= i386 # the linuxulator does not yet support amd64 code | |||||
LINUX_REPO_ARCH?= i386 | |||||
. endif | |||||
. elif ${ARCH} == "powerpc" | |||||
LINUX_RPM_ARCH?= ppc | |||||
. 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:${PORTSDIR}/graphics/gbm | ||||
▲ Show 20 Lines • Show All 4,279 Lines • Show Last 20 Lines |
this can probably be combined into a single if, but it'd be really long