Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 1,673 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) && empty(USE_GITHUB:Mnodefault) | .if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) && empty(USE_GITHUB:Mnodefault) | ||||
.if defined(WRKSRC) | .if defined(WRKSRC) | ||||
DEV_WARNING+= "You are using USE_GITHUB and WRKSRC is set which is wrong. Set GH_PROJECT correctly, set WRKSRC_SUBDIR or remove WRKSRC entirely." | DEV_WARNING+= "You are using USE_GITHUB and WRKSRC is set which is wrong. Set GH_PROJECT correctly, set WRKSRC_SUBDIR or remove WRKSRC entirely." | ||||
.endif | .endif | ||||
WRKSRC?= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT} | WRKSRC?= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT} | ||||
.endif | .endif | ||||
.if !default(IGNORE_MASTER_SITE_GITLAB) && defined(USE_GITLAB) && empty(USE_GITLAB:Mnodefault) | |||||
WRKSRC?= ${WRKDIR}/${GL_PROJECT}-${GL_COMMIT}-${GL_COMMIT} | |||||
.endif | |||||
# If the distname is not extracting into a specific subdirectory, have the | # If the distname is not extracting into a specific subdirectory, have the | ||||
# ports framework force extract into a subdirectory so that metadata files | # ports framework force extract into a subdirectory so that metadata files | ||||
# do not get in the way of the build, and vice-versa. | # do not get in the way of the build, and vice-versa. | ||||
.if defined(NO_WRKSUBDIR) | .if defined(NO_WRKSUBDIR) | ||||
# Some ports have DISTNAME=PORTNAME, and USE_RC_SUBR=PORTNAME, in those case, | # Some ports have DISTNAME=PORTNAME, and USE_RC_SUBR=PORTNAME, in those case, | ||||
# the rc file will conflict with WRKSRC, as WRKSRC is artificial, make it the | # the rc file will conflict with WRKSRC, as WRKSRC is artificial, make it the | ||||
# most unlikely to conflict as we can. | # most unlikely to conflict as we can. | ||||
WRKSRC?= ${WRKDIR}/${PKGNAME} | WRKSRC?= ${WRKDIR}/${PKGNAME} | ||||
▲ Show 20 Lines • Show All 1,255 Lines • ▼ Show 20 Lines | |||||
DEPENDS_TARGET+= reinstall | DEPENDS_TARGET+= reinstall | ||||
.else | .else | ||||
DEPENDS_TARGET+= install | DEPENDS_TARGET+= install | ||||
.endif | .endif | ||||
.if defined(DEPENDS_CLEAN) | .if defined(DEPENDS_CLEAN) | ||||
DEPENDS_TARGET+= clean | DEPENDS_TARGET+= clean | ||||
DEPENDS_ARGS+= NOCLEANDEPENDS=yes | DEPENDS_ARGS+= NOCLEANDEPENDS=yes | ||||
.endif | .endif | ||||
.endif | |||||
.if defined(USE_GITLAB) && !${USE_GITLAB:Mnodefault} && empty(GL_COMMIT_DEFAULT) | |||||
check-makevars:: | |||||
@${ECHO_MSG} "GL_COMMIT is a required 40 character hash for use USE_GITLAB" | |||||
@${FALSE} | |||||
.endif | .endif | ||||
################################################################ | ################################################################ | ||||
# | # | ||||
# Do preliminary work to detect if we need to run the config | # Do preliminary work to detect if we need to run the config | ||||
# target or not. | # target or not. | ||||
# | # | ||||
################################################################ | ################################################################ | ||||
▲ Show 20 Lines • Show All 2,444 Lines • Show Last 20 Lines |