Lines 477-482
Link Here
|
477 |
# Set to value <X>, if the port needs emulators/linux_base-<X>. |
477 |
# Set to value <X>, if the port needs emulators/linux_base-<X>. |
478 |
# If set to "7", a dependency is registered to emulators/linux_base. |
478 |
# If set to "7", a dependency is registered to emulators/linux_base. |
479 |
# Implies appropriate settings for STRIP and STRIP_CMD. |
479 |
# Implies appropriate settings for STRIP and STRIP_CMD. |
|
|
480 |
# |
481 |
# USE_LINUX_OSRELEASE - Controls the exact, the maximal or the minimal working LINUX_OSRELEASE |
482 |
# value the port works with. |
483 |
# |
484 |
# USE_LINUX_OSRELEASE_REASON - Sets a reason for the dependency, which is used to |
485 |
# set IGNORE. |
486 |
# |
480 |
# USE_LINUX_PREFIX |
487 |
# USE_LINUX_PREFIX |
481 |
# - controls the action of PREFIX (see above). Only use this |
488 |
# - controls the action of PREFIX (see above). Only use this |
482 |
# if the port is a linux infrastructure port (e.g. contains libs |
489 |
# if the port is a linux infrastructure port (e.g. contains libs |
Lines 1809-1816
Link Here
|
1809 |
USE_LINUX?= yes |
1816 |
USE_LINUX?= yes |
1810 |
.endif |
1817 |
.endif |
1811 |
|
1818 |
|
1812 |
.if defined(USE_LINUX) |
1819 |
.if defined(USE_LINUX_OSRELEASE) |
|
|
1820 |
.if !defined(LINUX_OSRELEASE) |
1821 |
LINUX_OSRELEASE!= ${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null` |
1822 |
.endif |
1823 |
|
1824 |
.if ${LINUX_OSRELEASE}x == "x" |
1825 |
IGNORE= Linuxulator is not (kld)loaded |
1826 |
.endif |
1827 |
|
1828 |
linux_major= ${LINUX_OSRELEASE:C|\..*||} |
1829 |
_linux_minor= ${LINUX_OSRELEASE:S|^${linux_major}||:S|^.||:C|\..*||} |
1830 |
_linux_micro= ${LINUX_OSRELEASE:S|^${linux_major}||:S|^.${_linux_minor}||:S|^.||:C|\..*||} |
1831 |
linux_minor= ${_linux_minor:S|^|000|:C|.*(...)|\1|} |
1832 |
linux_micro= ${_linux_micro:S|^|00|:C|.*(..)|\1|} |
1833 |
linux_osrel= ${linux_major}${linux_minor}${linux_micro} |
1834 |
|
1835 |
want_linux_sign= ${USE_LINUX_OSRELEASE:C|^[0-9.]+||} |
1836 |
want_linux_ver= ${USE_LINUX_OSRELEASE:S|${want_linux_sign}$||} |
1837 |
want_linux_major= ${want_linux_ver:C|\..*||} |
1838 |
_want_linux_minor= ${want_linux_ver:S|^${want_linux_major}||:S|^.||:C|\..*||} |
1839 |
_want_linux_micro= ${want_linux_ver:S|^${want_linux_major}||:S|^.${_want_linux_minor}||:S|^.||:C|\..*||} |
1840 |
want_linux_minor= ${_want_linux_minor:S|^|000|:C|.*(...)|\1|} |
1841 |
want_linux_micro= ${_want_linux_micro:S|^|00|:C|.*(..)|\1|} |
1842 |
want_linux_osrel= ${want_linux_major}${want_linux_minor}${want_linux_micro} |
1843 |
|
1844 |
.if ${want_linux_sign} == "+" |
1845 |
.if ${want_linux_osrel} > ${linux_osrel} |
1846 |
USE_LINUX_OSRELEASE_REASON?= requires Linux emulation ${want_linux_ver} or later, please consult the documentation and set the compat.linux.osrelease sysctl appropriately |
1847 |
IGNORE= ${USE_LINUX_OSRELEASE_REASON} |
1848 |
.endif |
1849 |
.elif ${want_linux_sign} == "" |
1850 |
.if ${want_linux_osrel} != ${linux_osrel} |
1851 |
USE_LINUX_OSRELEASE_REASON?= requires Linux emulation ${want_linux_ver} exactly, please consult the documentation and set the compat.linux.osrelease sysctl appropriately |
1852 |
IGNORE= ${USE_LINUX_OSRELEASE_REASON} |
1853 |
.endif |
1854 |
.elif ${want_linux_sign} == "-" |
1855 |
.if ${want_linux_osrel} <= ${linux_osrel} |
1856 |
USE_LINUX_OSRELEASE_REASON?= requires Linux emulation earlier than ${want_linux_ver}, please consult the documentation and set the compat.linux.osrelease sysctl appropriately |
1857 |
IGNORE= ${USE_LINUX_OSRELEASE_REASON} |
1858 |
.endif |
1859 |
.else # wrong suffix |
1860 |
IGNORE= improper use of USE_LINUX_OSRELEASE |
1861 |
.endif |
1813 |
|
1862 |
|
|
|
1863 |
.endif |
1864 |
|
1865 |
.if defined(USE_LINUX) |
1814 |
. if !defined(LINUX_OSRELEASE) |
1866 |
. if !defined(LINUX_OSRELEASE) |
1815 |
LINUX_OSRELEASE!= ${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null` |
1867 |
LINUX_OSRELEASE!= ${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null` |
1816 |
. endif |
1868 |
. endif |