BV functions with respect to a measure and relaxation of metric integral functionals.