Changeset View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 2,213 Lines • ▼ Show 20 Lines | |||||
PKGHELP?= ${PKGDIR}/pkg-help | PKGHELP?= ${PKGDIR}/pkg-help | ||||
PKGINSTALL?= ${PKGDIR}/pkg-install | PKGINSTALL?= ${PKGDIR}/pkg-install | ||||
PKGDEINSTALL?= ${PKGDIR}/pkg-deinstall | PKGDEINSTALL?= ${PKGDIR}/pkg-deinstall | ||||
PKGREQ?= ${PKGDIR}/pkg-req | PKGREQ?= ${PKGDIR}/pkg-req | ||||
PKGMESSAGE?= ${PKGDIR}/pkg-message | PKGMESSAGE?= ${PKGDIR}/pkg-message | ||||
_PKGMESSAGES+= ${PKGMESSAGE} | _PKGMESSAGES+= ${PKGMESSAGE} | ||||
TMPPLIST?= ${WRKDIR}/.PLIST.mktmp | TMPPLIST?= ${WRKDIR}/.PLIST.mktmp | ||||
_PLIST?= ${WRKDIR}/.PLIST | |||||
.if defined(PKG_NOCOMPRESS) | .if defined(PKG_NOCOMPRESS) | ||||
PKG_SUFX?= .tar | PKG_SUFX?= .tar | ||||
.else | .else | ||||
PKG_SUFX?= .txz | PKG_SUFX?= .txz | ||||
.endif | .endif | ||||
# where pkg_add records its dirty deeds. | # where pkg_add records its dirty deeds. | ||||
PKG_DBDIR?= /var/db/pkg | PKG_DBDIR?= /var/db/pkg | ||||
▲ Show 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | . if empty(VALID_CATEGORIES:M${cat}) | ||||
@${ECHO_MSG} "${PKGNAME}: Makefile error: category ${cat} not in list of valid categories."; \ | @${ECHO_MSG} "${PKGNAME}: Makefile error: category ${cat} not in list of valid categories."; \ | ||||
${FALSE}; | ${FALSE}; | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
PKGREPOSITORYSUBDIR?= All | PKGREPOSITORYSUBDIR?= All | ||||
PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR} | PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR} | ||||
.if exists(${PACKAGES}) | |||||
PACKAGES:= ${PACKAGES:S/:/\:/g} | |||||
_HAVE_PACKAGES= yes | |||||
PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX} | |||||
.else | |||||
PKGFILE?= ${.CURDIR}/${PKGNAME}${PKG_SUFX} | |||||
.endif | |||||
WRKDIR_PKGFILE= ${WRKDIR}/pkg/${PKGNAME}${PKG_SUFX} | |||||
# The "latest version" link -- ${PKGNAME} minus everthing after the last '-' | # The "latest version" link -- ${PKGNAME} minus everthing after the last '-' | ||||
PKGLATESTREPOSITORY?= ${PACKAGES}/Latest | PKGLATESTREPOSITORY?= ${PACKAGES}/Latest | ||||
PKGBASE?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} | PKGBASE?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} | ||||
PKGLATESTFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_SUFX} | PKGLATESTFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_SUFX} | ||||
_PKGS= ${PKGBASE} | |||||
.for p in ${SUBPACKAGES} | |||||
_PKGS+= ${PKGBASE}-${p} | |||||
.endfor | |||||
.if exists(${PACKAGES}) | |||||
-PACKAGES:= ${PACKAGES:S/:/\:/g} | |||||
_HAVE_PACKAGES= yes | |||||
_PKGDIR= ${PKGREPOSITORY} | |||||
.else | |||||
_PKGDIR= ${.CURDIR} | |||||
.endif | |||||
. for p in ${_PKGS} | |||||
tcberner: ^ `flavors` sounds wrong here. | |||||
Done Inline ActionsAh, yes, too much copy&paste ^^ mat: Ah, yes, too much copy&paste ^^ | |||||
${p}_PKGFILE= ${_PKGDIR}/${p}-${PKGVERSION}${PKG_SUFX} | |||||
# FIXME: This should go away at one point | |||||
PKGFILE?= ${${p}_PKGFILE} | |||||
. endfor | |||||
_EXTRA_PACKAGE_TARGET_DEP+= ${_PKGDIR} | |||||
.for p in ${_PKGS} | |||||
${p}_WRKDIR_PKGFILE= ${WRKDIR}/pkg/${p}-${PKGVERSION}${PKG_SUFX} | |||||
.endfor | |||||
CONFIGURE_SCRIPT?= configure | CONFIGURE_SCRIPT?= configure | ||||
CONFIGURE_CMD?= ./${CONFIGURE_SCRIPT} | CONFIGURE_CMD?= ./${CONFIGURE_SCRIPT} | ||||
CONFIGURE_TARGET?= ${HOSTARCH}-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET?= ${HOSTARCH}-portbld-${OPSYS:tl}${OSREL} | ||||
CONFIGURE_TARGET:= ${CONFIGURE_TARGET:S/--build=//} | CONFIGURE_TARGET:= ${CONFIGURE_TARGET:S/--build=//} | ||||
CONFIGURE_LOG?= config.log | CONFIGURE_LOG?= config.log | ||||
# A default message to print if do-configure fails. | # A default message to print if do-configure fails. | ||||
CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer] and attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a ${PKG_INFO} -Ea)." | CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer] and attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a ${PKG_INFO} -Ea)." | ||||
CONFIG_SITE?= ${PORTSDIR}/Templates/config.site | CONFIG_SITE?= ${PORTSDIR}/Templates/config.site | ||||
.if defined(GNU_CONFIGURE) | .if defined(GNU_CONFIGURE) | ||||
# Maximum command line length | # Maximum command line length | ||||
Done Inline Actions^ I would keep it afterwards and add a DEV_WARNING tcberner: ^ I would keep it afterwards and add a `DEV_WARNING` | |||||
Done Inline ActionsMmmm. You mean a DEV_WARNING when the subpackage does not have a specific description file? mat: Mmmm. You mean a DEV_WARNING when the subpackage does not have a specific description file? | |||||
.if !defined(CONFIGURE_MAX_CMD_LEN) | .if !defined(CONFIGURE_MAX_CMD_LEN) | ||||
CONFIGURE_MAX_CMD_LEN!= ${SYSCTL} -n kern.argmax | CONFIGURE_MAX_CMD_LEN!= ${SYSCTL} -n kern.argmax | ||||
.endif | .endif | ||||
_EXPORTED_VARS+= CONFIGURE_MAX_CMD_LEN | _EXPORTED_VARS+= CONFIGURE_MAX_CMD_LEN | ||||
Done Inline ActionsHow about adding a bsd.subpackages.commentsuffix.mk ala bsd.options.desc.mk: COMMENTSUFFIX.debug?= Debug Parts COMMENTSUFFIX.doc?= Documentation COMMENTSUFFIX.l10n?= Localization Files And then do something like: . if defined(COMMENTSUFFIX.${p}) _COMMENTSUFFIX?= ${COMMENTSUFFIX.${p}} . else _COMMENTSUFFIX?= ${p} subpackage . endif COMMENT.${p}?= ${COMMENT} (${_COMMENTSUFFIX}) . endfor .endif tcberner: How about adding a `bsd.subpackages.commentsuffix.mk` ala `bsd.options.desc.mk`:
```… | |||||
Done Inline ActionsFirst, I think bsd.options.desc.mk should die, preferably in a large bonfire. Because it's all filled in with: <foo>_DESC= <foo> support Which is mostly useless to end users, because it does not tell them anything. Of course option foo as something to do with foo being added. But it does not tell the users what foo is, or what adding foo support actually does. For example, if a port has the ICU option, the user will be shown "Unicode support via ICU", but what does it mean for the port? Does it mean that without it, the port will only accept 7 bit ASCII text input? So, while your three examples are ok, I feel having this would end up as the options, and not saying much of what's in it. Or it would need to require some sort of approval to add to, unlike options.desc right now. Also, I feel adding too many helpers defeats the purpose of having everything customizable. (Side note, your example can be written as two lines: COMMENTSUFFIX.${p}?= ${p} subpackage COMMENT.${p}?= ${COMMENT} (${COMMENTSUFFIX.${p}}) ) mat: First, I think bsd.options.desc.mk should die, preferably in a large bonfire. Because it's all… | |||||
GNU_CONFIGURE_PREFIX?= ${PREFIX} | GNU_CONFIGURE_PREFIX?= ${PREFIX} | ||||
GNU_CONFIGURE_MANPREFIX?= ${MANPREFIX} | GNU_CONFIGURE_MANPREFIX?= ${MANPREFIX} | ||||
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} $${_LATE_CONFIGURE_ARGS} | CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} $${_LATE_CONFIGURE_ARGS} | ||||
.if defined(CROSS_TOOLCHAIN) | .if defined(CROSS_TOOLCHAIN) | ||||
CROSS_HOST= ${CROSS_TOOLCHAIN:C,-.*$,,}-unknown-${OPSYS:tl}${OSREL} | CROSS_HOST= ${CROSS_TOOLCHAIN:C,-.*$,,}-unknown-${OPSYS:tl}${OSREL} | ||||
CONFIGURE_ARGS+= --host=${CROSS_HOST} | CONFIGURE_ARGS+= --host=${CROSS_HOST} | ||||
.endif | .endif | ||||
CONFIGURE_ENV+= CONFIG_SITE=${CONFIG_SITE} lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} | CONFIGURE_ENV+= CONFIG_SITE=${CONFIG_SITE} lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} | ||||
▲ Show 20 Lines • Show All 748 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# Package | # Package | ||||
.if defined(_HAVE_PACKAGES) | .if defined(_HAVE_PACKAGES) | ||||
_EXTRA_PACKAGE_TARGET_DEP+= ${PKGFILE} | _EXTRA_PACKAGE_TARGET_DEP+= ${PKGFILE} | ||||
_PORTS_DIRECTORIES+= ${PKGREPOSITORY} | _PORTS_DIRECTORIES+= ${PKGREPOSITORY} | ||||
${PKGFILE}: ${WRKDIR_PKGFILE} ${PKGREPOSITORY} | |||||
@${LN} -f ${WRKDIR_PKGFILE} ${PKGFILE} 2>/dev/null \ | |||||
|| ${CP} -f ${WRKDIR_PKGFILE} ${PKGFILE} | |||||
. if ${PKGORIGIN} == "ports-mgmt/pkg" || ${PKGORIGIN} == "ports-mgmt/pkg-devel" | . if ${PKGORIGIN} == "ports-mgmt/pkg" || ${PKGORIGIN} == "ports-mgmt/pkg-devel" | ||||
_EXTRA_PACKAGE_TARGET_DEP+= ${PKGLATESTREPOSITORY} | _EXTRA_PACKAGE_TARGET_DEP+= ${PKGLATESTREPOSITORY} | ||||
_PORTS_DIRECTORIES+= ${PKGLATESTREPOSITORY} | _PORTS_DIRECTORIES+= ${PKGLATESTREPOSITORY} | ||||
_EXTRA_PACKAGE_TARGET_DEP+= ${PKGLATESTFILE} | _EXTRA_PACKAGE_TARGET_DEP+= ${PKGLATESTFILE} | ||||
${PKGLATESTFILE}: ${PKGFILE} ${PKGLATESTREPOSITORY} | ${PKGLATESTFILE}: ${PKGFILE} ${PKGLATESTREPOSITORY} | ||||
${INSTALL} -l rs ${PKGFILE} ${PKGLATESTFILE} | ${INSTALL} -l rs ${PKGFILE} ${PKGLATESTFILE} | ||||
.for p in ${_PKGS} | |||||
.endfor | |||||
adamwUnsubmitted Done Inline ActionsIs this a placeholder, or a leftover? adamw: Is this a placeholder, or a leftover? | |||||
matAuthorUnsubmitted Done Inline ActionsNo idea, it was in @bapt patch when I imported his work. mat: No idea, it was in @bapt patch when I imported his work. | |||||
baptUnsubmitted Done Inline ActionsYou can remove, it was a "false" good idea. bapt: You can remove, it was a "false" good idea.
Aka I started with an idea, started writting the… | |||||
. endif | . endif | ||||
.endif | .endif | ||||
# from here this will become a loop for subpackages | .for p in ${_PKGS} | ||||
${WRKDIR_PKGFILE}: ${TMPPLIST} create-manifest ${WRKDIR}/pkg | ${_PLIST}.${p}: ${TMPPLIST} | ||||
@if ! ${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CREATE} ${PKG_CREATE_ARGS} -m ${METADIR} -p ${TMPPLIST} -f ${PKG_SUFX:S/.//} -o ${WRKDIR}/pkg ${PKGNAME}; then \ | @if [ "${PKGBASE}" = "${.TARGET:T:S/.PLIST.//}" ]; then \ | ||||
${GREP} -Fv -e"@comment " -e"@@" ${TMPPLIST} > ${.TARGET} ; \ | |||||
else \ | |||||
${SED} -n "s/@@${.TARGET:T:S/.PLIST.${PKGBASE}-//}@@//p" ${TMPPLIST} > ${.TARGET} ; \ | |||||
fi | |||||
${${p}_WRKDIR_PKGFILE}: ${_PLIST}.${p} create-manifest.${p} ${WRKDIR}/pkg | |||||
@echo "===> Building ${p}-${PKGVERSION}" | |||||
@if ! ${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_CREATE} ${PKG_CREATE_ARGS} -m ${METADIR}.${p} -p ${_PLIST}.${p} -f ${PKG_SUFX:S/.//} -o ${WRKDIR}/pkg ${PKGNAME}; then \ | |||||
cd ${.CURDIR} && eval ${MAKE} delete-package >/dev/null; \ | cd ${.CURDIR} && eval ${MAKE} delete-package >/dev/null; \ | ||||
exit 1; \ | exit 1; \ | ||||
fi | fi | ||||
# | |||||
# Temporary will be later dynamically added per subpackages | |||||
_EXTRA_PACKAGE_TARGET_DEP+= ${WRKDIR_PKGFILE} | |||||
# This will be the end of the loop | |||||
_EXTRA_PACKAGE_TARGET_DEP+= ${${p}_WRKDIR_PKGFILE} | |||||
${${p}_PKGFILE}: ${${p}_WRKDIR_PKGFILE} | |||||
@${LN} -f ${${p}_WRKDIR_PKGFILE} ${${p}_PKGFILE} \ | |||||
|| ${CP} -f ${${p}_WRKDIR_PKGFILE} ${${p}_PKGFILE} | |||||
_EXTRA_PACKAGE_TARGET_DEP+= ${${p}_PKGFILE} | |||||
.endfor | |||||
.if !target(do-package) | .if !target(do-package) | ||||
PKG_CREATE_ARGS= -r ${STAGEDIR} | PKG_CREATE_ARGS= -r ${STAGEDIR} | ||||
. 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 | ||||
▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | build-message: | ||||
@${ECHO_MSG} "===> Building for ${PKGNAME}" | @${ECHO_MSG} "===> Building for ${PKGNAME}" | ||||
stage-message: | stage-message: | ||||
@${ECHO_MSG} "===> Staging for ${PKGNAME}" | @${ECHO_MSG} "===> Staging for ${PKGNAME}" | ||||
install-message: | install-message: | ||||
@${ECHO_MSG} "===> Installing for ${PKGNAME}" | @${ECHO_MSG} "===> Installing for ${PKGNAME}" | ||||
test-message: | test-message: | ||||
@${ECHO_MSG} "===> Testing for ${PKGNAME}" | @${ECHO_MSG} "===> Testing for ${PKGNAME}" | ||||
package-message: | package-message: | ||||
@${ECHO_MSG} "===> Building package for ${PKGNAME}" | @${ECHO_MSG} "===> Building packages for ${PKGNAME}" | ||||
# Empty pre-* and post-* targets | # Empty pre-* and post-* targets | ||||
.if exists(${SCRIPTDIR}) | .if exists(${SCRIPTDIR}) | ||||
.for stage in pre post | .for stage in pre post | ||||
.for name in pkg check-sanity fetch extract patch configure build stage install package | .for name in pkg check-sanity fetch extract patch configure build stage install package | ||||
.if !target(${stage}-${name}-script) | .if !target(${stage}-${name}-script) | ||||
▲ Show 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
# Build a package but don't check the package cookie | # Build a package but don't check the package cookie | ||||
.if !target(repackage) | .if !target(repackage) | ||||
repackage: pre-repackage package | repackage: pre-repackage package | ||||
pre-repackage: | pre-repackage: | ||||
@${RM} ${PACKAGE_COOKIE} | @${RM} ${PACKAGE_COOKIE} ${TMPPLIST}* | ||||
.endif | .endif | ||||
# Build a package but don't check the cookie for installation, also don't | # Build a package but don't check the cookie for installation, also don't | ||||
# install package cookie | # install package cookie | ||||
.if !target(package-noinstall) | .if !target(package-noinstall) | ||||
package-noinstall: package | package-noinstall: package | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | ACTUAL-PACKAGE-DEPENDS?= \ | ||||
done ; \ | done ; \ | ||||
${SETENV} PKG_BIN="${PKG_BIN}" ${SH} ${SCRIPTSDIR}/actual-package-depends.sh $${depfiles} ${RUN_DEPENDS:C/(.*)\:.*/"\1"/} | ${SETENV} PKG_BIN="${PKG_BIN}" ${SH} ${SCRIPTSDIR}/actual-package-depends.sh $${depfiles} ${RUN_DEPENDS:C/(.*)\:.*/"\1"/} | ||||
PKG_NOTES_ENV?= | PKG_NOTES_ENV?= | ||||
.for note in ${PKG_NOTES} | .for note in ${PKG_NOTES} | ||||
PKG_NOTES_ENV+= dp_PKG_NOTE_${note}=${PKG_NOTE_${note}:Q} | PKG_NOTES_ENV+= dp_PKG_NOTE_${note}=${PKG_NOTE_${note}:Q} | ||||
.endfor | .endfor | ||||
create-manifest: | .for p in ${_PKGS} | ||||
create-manifest.${p}: | |||||
@${SETENV} \ | @${SETENV} \ | ||||
dp_SCRIPTSDIR='${SCRIPTSDIR}' \ | dp_SCRIPTSDIR='${SCRIPTSDIR}' \ | ||||
dp_ACTUAL_PACKAGE_DEPENDS='${ACTUAL-PACKAGE-DEPENDS}' \ | dp_ACTUAL_PACKAGE_DEPENDS='${ACTUAL-PACKAGE-DEPENDS}' \ | ||||
dp_CATEGORIES='${CATEGORIES:u:S/$/,/}' \ | dp_CATEGORIES='${CATEGORIES:u:S/$/,/}' \ | ||||
dp_COMMENT=${COMMENT:Q} \ | dp_COMMENT=${COMMENT:Q} \ | ||||
dp_COMPLETE_OPTIONS_LIST='${COMPLETE_OPTIONS_LIST}' \ | dp_COMPLETE_OPTIONS_LIST='${COMPLETE_OPTIONS_LIST}' \ | ||||
dp_DEPRECATED=${DEPRECATED:Q} \ | dp_DEPRECATED=${DEPRECATED:Q} \ | ||||
dp_DESCR='${DESCR}' \ | dp_DESCR='${DESCR}' \ | ||||
dp_EXPIRATION_DATE='${EXPIRATION_DATE}' \ | dp_EXPIRATION_DATE='${EXPIRATION_DATE}' \ | ||||
dp_GROUPS='${GROUPS:u:S/$/,/}' \ | dp_GROUPS='${GROUPS:u:S/$/,/}' \ | ||||
dp_LICENSE='${LICENSE:u:S/$/,/}' \ | dp_LICENSE='${LICENSE:u:S/$/,/}' \ | ||||
dp_LICENSE_COMB='${LICENSE_COMB}' \ | dp_LICENSE_COMB='${LICENSE_COMB}' \ | ||||
dp_MAINTAINER='${MAINTAINER}' \ | dp_MAINTAINER='${MAINTAINER}' \ | ||||
dp_METADIR='${METADIR}' \ | dp_METADIR='${METADIR}.${p}' \ | ||||
dp_NO_ARCH='${NO_ARCH}' \ | dp_NO_ARCH='${NO_ARCH}' \ | ||||
dp_PKGBASE='${PKGBASE}' \ | dp_PKGBASE='${p}' \ | ||||
dp_PKGDEINSTALL='${PKGDEINSTALL}' \ | dp_PKGDEINSTALL='${PKGDEINSTALL}' \ | ||||
dp_PKGINSTALL='${PKGINSTALL}' \ | dp_PKGINSTALL='${PKGINSTALL}' \ | ||||
dp_PKGMESSAGES='${_PKGMESSAGES}' \ | dp_PKGMESSAGES='${_PKGMESSAGES}' \ | ||||
dp_PKGORIGIN='${PKGORIGIN}' \ | dp_PKGORIGIN='${PKGORIGIN}' \ | ||||
dp_PKGPOSTDEINSTALL='${PKGPOSTDEINSTALL}' \ | dp_PKGPOSTDEINSTALL='${PKGPOSTDEINSTALL}' \ | ||||
dp_PKGPOSTINSTALL='${PKGPOSTINSTALL}' \ | dp_PKGPOSTINSTALL='${PKGPOSTINSTALL}' \ | ||||
dp_PKGPOSTUPGRADE='${PKGPOSTUPGRADE}' \ | dp_PKGPOSTUPGRADE='${PKGPOSTUPGRADE}' \ | ||||
dp_PKGPREDEINSTALL='${PKGPREDEINSTALL}' \ | dp_PKGPREDEINSTALL='${PKGPREDEINSTALL}' \ | ||||
dp_PKGPREINSTALL='${PKGPREINSTALL}' \ | dp_PKGPREINSTALL='${PKGPREINSTALL}' \ | ||||
dp_PKGPREUPGRADE='${PKGPREUPGRADE}' \ | dp_PKGPREUPGRADE='${PKGPREUPGRADE}' \ | ||||
dp_PKGUPGRADE='${PKGUPGRADE}' \ | dp_PKGUPGRADE='${PKGUPGRADE}' \ | ||||
dp_PKGVERSION='${PKGVERSION}' \ | dp_PKGVERSION='${PKGVERSION}' \ | ||||
dp_PKG_BIN='${PKG_BIN}' \ | dp_PKG_BIN='${PKG_BIN}' \ | ||||
dp_PKG_IGNORE_DEPENDS='${PKG_IGNORE_DEPENDS}' \ | dp_PKG_IGNORE_DEPENDS='${PKG_IGNORE_DEPENDS}' \ | ||||
dp_PKG_NOTES='${PKG_NOTES}' \ | dp_PKG_NOTES='${PKG_NOTES}' \ | ||||
dp_PORT_OPTIONS='${PORT_OPTIONS}' \ | dp_PORT_OPTIONS='${PORT_OPTIONS}' \ | ||||
dp_PREFIX='${PREFIX}' \ | dp_PREFIX='${PREFIX}' \ | ||||
dp_USERS='${USERS:u:S/$/,/}' \ | dp_USERS='${USERS:u:S/$/,/}' \ | ||||
dp_WWW='${WWW}' \ | dp_WWW='${WWW}' \ | ||||
${PKG_NOTES_ENV} \ | ${PKG_NOTES_ENV} \ | ||||
${SH} ${SCRIPTSDIR}/create-manifest.sh | ${SH} ${SCRIPTSDIR}/create-manifest.sh | ||||
.endfor | |||||
# Print out package names. | # Print out package names. | ||||
package-depends: | package-depends: | ||||
@${PACKAGE-DEPENDS-LIST} | ${AWK} '{print $$1":"$$3}' | @${PACKAGE-DEPENDS-LIST} | ${AWK} '{print $$1":"$$3}' | ||||
actual-package-depends: | actual-package-depends: | ||||
▲ Show 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | |||||
.endfor | .endfor | ||||
.endif | .endif | ||||
# Fake installation of package so that user can pkg delete it later. | # Fake installation of package so that user can pkg delete it later. | ||||
.if !target(fake-pkg) | .if !target(fake-pkg) | ||||
STAGE_ARGS= -i ${STAGEDIR} | STAGE_ARGS= -i ${STAGEDIR} | ||||
.if !defined(NO_PKG_REGISTER) | .if !defined(NO_PKG_REGISTER) | ||||
.for p in ${_PKGS} | |||||
fake-pkg: create-manifest.${p} | |||||
.endfor | |||||
fake-pkg: | fake-pkg: | ||||
.if defined(INSTALLS_DEPENDS) | .if defined(INSTALLS_DEPENDS) | ||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME} as automatic" | @${ECHO_MSG} "===> Registering installation for ${PKGNAME} as automatic" | ||||
.else | .else | ||||
@${ECHO_MSG} "===> Registering installation for ${PKGNAME}" | @${ECHO_MSG} "===> Registering installation for ${PKGNAME}" | ||||
.endif | .endif | ||||
.if defined(INSTALLS_DEPENDS) | .if defined(INSTALLS_DEPENDS) | ||||
@${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_REGISTER} -d ${STAGE_ARGS} -m ${METADIR} -f ${TMPPLIST} | @${SETENV} ${PKG_ENV} FORCE_POST="${_FORCE_POST_PATTERNS}" ${PKG_REGISTER} -d ${STAGE_ARGS} -m ${METADIR} -f ${TMPPLIST} | ||||
▲ Show 20 Lines • Show All 573 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
_TEST_DEP= stage | _TEST_DEP= stage | ||||
_TEST_SEQ= 100:test-message 150:test-depends 300:pre-test 500:do-test \ | _TEST_SEQ= 100:test-message 150:test-depends 300:pre-test 500:do-test \ | ||||
800:post-test \ | 800:post-test \ | ||||
${_OPTIONS_test} ${_USES_test} | ${_OPTIONS_test} ${_USES_test} | ||||
_INSTALL_DEP= stage | _INSTALL_DEP= stage | ||||
_INSTALL_SEQ= 100:install-message \ | _INSTALL_SEQ= 100:install-message \ | ||||
200:check-already-installed \ | 200:check-already-installed \ | ||||
300:create-manifest | |||||
_INSTALL_SUSEQ= 400:fake-pkg 500:security-check | _INSTALL_SUSEQ= 400:fake-pkg 500:security-check | ||||
_PACKAGE_DEP= stage | _PACKAGE_DEP= stage | ||||
_PACKAGE_SEQ= 100:package-message 300:pre-package 450:pre-package-script \ | _PACKAGE_SEQ= 100:package-message 300:pre-package 450:pre-package-script \ | ||||
500:do-package 850:post-package-script \ | 500:do-package 850:post-package-script \ | ||||
${_OPTIONS_package} ${_USES_package} | ${_OPTIONS_package} ${_USES_package} | ||||
# Enforce order for -jN builds | # Enforce order for -jN builds | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |
^ flavors sounds wrong here.