Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 2,040 Lines • ▼ Show 20 Lines | |||||
DO_NADA?= ${TRUE} | DO_NADA?= ${TRUE} | ||||
# Use this as the first operand to always build dependency. | # Use this as the first operand to always build dependency. | ||||
NONEXISTENT?= /nonexistent | NONEXISTENT?= /nonexistent | ||||
CHECKSUM_ALGORITHMS?= sha256 | CHECKSUM_ALGORITHMS?= sha256 | ||||
DISTINFO_FILE?= ${MASTERDIR}/distinfo | DISTINFO_FILE?= ${MASTERDIR}/distinfo | ||||
mat: Maybe this should be in a `.else` for the next `.if`. | |||||
Not Done Inline ActionsI think it's because we want it to be 0 also if DISTINFO_FILE exists but does not have a TIMESTAMP line emaste: I think it's because we want it to be 0 also if DISTINFO_FILE exists but does not have a… | |||||
MAKE_FLAGS?= -f | MAKE_FLAGS?= -f | ||||
MAKEFILE?= Makefile | MAKEFILE?= Makefile | ||||
Not Done Inline ActionsCan you cache this using the usual mechanism so that we do not run awk in each submake? mat: Can you cache this using the usual mechanism so that we do not run awk in each submake? | |||||
MAKE_CMD?= ${BSDMAKE} | MAKE_CMD?= ${BSDMAKE} | ||||
MAKE_ENV+= PREFIX=${PREFIX} \ | MAKE_ENV+= PREFIX=${PREFIX} \ | ||||
LOCALBASE=${LOCALBASE} \ | LOCALBASE=${LOCALBASE} \ | ||||
CC="${CC}" CFLAGS="${CFLAGS}" \ | CC="${CC}" CFLAGS="${CFLAGS}" \ | ||||
CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \ | CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \ | ||||
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ | LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \ | ||||
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ | CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ | ||||
MANPREFIX="${MANPREFIX}" | MANPREFIX="${MANPREFIX}" | ||||
▲ Show 20 Lines • Show All 1,362 Lines • ▼ Show 20 Lines | ${WRKDIR_PKGFILE}: ${TMPPLIST} create-manifest ${WRKDIR}/pkg | ||||
fi | fi | ||||
# | # | ||||
# Temporary will be later dynamically added per subpackages | # Temporary will be later dynamically added per subpackages | ||||
_EXTRA_PACKAGE_TARGET_DEP+= ${WRKDIR_PKGFILE} | _EXTRA_PACKAGE_TARGET_DEP+= ${WRKDIR_PKGFILE} | ||||
# This will be the end of the loop | # This will be the end of the loop | ||||
.if !target(do-package) | .if !target(do-package) | ||||
PKG_CREATE_ARGS= -r ${STAGEDIR} | PKG_CREATE_ARGS= -r ${STAGEDIR} | ||||
_TIMESTAMP!= ${AWK} -F= -v ts=0 '/^TIMESTAMP/ { ts=$$2 } END { print ts}' ${DISTINFO_FILE} | |||||
.if ${_TIMESTAMP} != 0 | |||||
PKG_CREATE_ARGS+= -t ${_TIMESTAMP} | |||||
.endif | |||||
. if defined(PKG_CREATE_VERBOSE) | . if defined(PKG_CREATE_VERBOSE) | ||||
PKG_CREATE_ARGS+= -v | PKG_CREATE_ARGS+= -v | ||||
. endif | . endif | ||||
do-package: ${_EXTRA_PACKAGE_TARGET_DEP} ${WRKDIR}/pkg | do-package: ${_EXTRA_PACKAGE_TARGET_DEP} ${WRKDIR}/pkg | ||||
.endif | .endif | ||||
.if !target(delete-package) | .if !target(delete-package) | ||||
delete-package: | delete-package: | ||||
▲ Show 20 Lines • Show All 1,973 Lines • Show Last 20 Lines |
Maybe this should be in a .else for the next .if.