[CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

Chris Rees utisoft at gmail.com
Sat Oct 27 17:33:29 UTC 2012


On 27 October 2012 18:27, Simon J. Gerraty <sjg at juniper.net> wrote:
>>These discussions need backing up with a real roadmap, including detail on
>>exactly what 8.3 and 7.4 users will have to do to ensure that the ports
>>tree still works.
>
> I've tested the ports tree converted to bmake - per the "patch" I
> mentioned on a 7.1 box.  It worked for me.  Once the ports tree has
> found or installed bmake, the system version makes no further
> difference.
>
> Obviously not a conclusive result, but yes this issue has been given
> consideration.

What about these?

[crees at pegasus]~% grep -n :\[LU] /usr/ports/Mk/bsd.port.mk | tee
/dev/tty | wc -l
1324:PORTVERSION=
${DISTVERSION:L:C/([a-z])[a-z]+/\1/g:C/([0-9])([a-z])/\1.\2/g:C/:(.)/\1/g:C/[^a-z0-9+]+/./g}
1451:.if (defined(USE_QT_VER) && ${USE_QT_VER:L} == 3) ||
defined(USE_KDELIBS_VER) || defined(USE_KDEBASE_VER)
1455:.if defined(USE_QT_VER) && ${USE_QT_VER:L} == 4 || defined(USE_QT4)
1674:.if ${USE_PKGCONFIG:L} == yes || ${USE_PKGCONFIG:L} == build
1677:.elif ${USE_PKGCONFIG:L} == both
1681:.elif ${USE_PKGCONFIG:L} == run
1696:${b}=      ${LOCALBASE}/bin/${b:C/PP/++/:L}
1763:_USE_OPENAL+= ${_OPENAL_${_OPENAL_SYSTEM:U}}
1783:_USE_OPENAL+=      ${_OPENAL_${component:U}}
1829:.if defined(FAM_SYSTEM_${FAM_SYSTEM:U})
1830:LIB_DEPENDS+=      ${FAM_SYSTEM_${FAM_SYSTEM:U}}
1836:.if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES"
1844:.if defined(USE_LDCONFIG) && ${USE_LDCONFIG:L} == "yes"
1847:.if defined(USE_LDCONFIG32) && ${USE_LDCONFIG32:L} == "yes"
1856:.  if ${USE_GETTEXT:L} == "build"
1858:.  elif ${USE_GETTEXT:L} == "run"
1860:.  elif ${USE_GETTEXT:L} == "yes"
1888:.          if ${USE_LINUX:L} == yes
1899:.          if ${USE_LINUX:L} == "yes"
1977:. if ${USE_GL:L} == "yes"
1994:. if ${USE_BISON:L} == "build"
1996:. elif ${USE_BISON:L} == "run"
1998:. elif ${USE_BISON:L} == "both"
2044:.if defined(USE_QT_VER) && ${USE_QT_VER:L} == 4 || defined(USE_QT4)
3038:_MANPAGES+=
${MAN${sect}:S%^%${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
3043:.if defined(MAN${sect}_${manlang:S%^man/%%:U})
3044:_MANPAGES+=
${MAN${sect}_${manlang:S%^man/%%:U}:S%^%${MAN${sect}PREFIX}/${manlang}/man${sect:L}/%}
3056:_MANPAGES+=
${MAN${sect}_EN:S%^%${MAN${sect}PREFIX}/man/man${sect:L}/%}
3312:   || defined(CONFIG_DONE_${UNIQUENAME:U}) || \
3600:.if ${USE_DOS2UNIX:U}=="YES"
4361:${target}: ${${target:U}_COOKIE}
4364:   @cd ${.CURDIR} && ${MAKE} CONFIG_DONE_${UNIQUENAME:U}=1
${${target:U}_COOKIE}
4368:.if !exists(${${target:U}_COOKIE})
4370:.if ${UID} != 0 && defined(_${target:U}_SUSEQ) && !defined(INSTALL_AS_USER)
4372:${${target:U}_COOKIE}: ${_${target:U}_DEP}
4373:   @cd ${.CURDIR} && ${MAKE} ${_${target:U}_SEQ}
4375:${${target:U}_COOKIE}: ${_${target:U}_DEP} ${_${target:U}_SEQ}
4379:           ${SU_CMD} "${MAKE} ${_${target:U}_SUSEQ}"
4383:${${target:U}_COOKIE}: ${_${target:U}_DEP}
4385:           ${MAKE} ${_${target:U}_SEQ} ${_${target:U}_SUSEQ}
4388:${${target:U}_COOKIE}: ${_${target:U}_DEP} ${_${target:U}_SEQ}
${_${target:U}_SUSEQ}
4393:${${target:U}_COOKIE}::
4802:   for alg in ${CHECKSUM_ALGORITHMS:U}; do \
4825:                   for alg in ${CHECKSUM_ALGORITHMS:U}; do \
4836:           for alg in ${CHECKSUM_ALGORITHMS:U}; do \
4850:                   for alg in ${CHECKSUM_ALGORITHMS:U}; do \
4904:                   for alg in ${CHECKSUM_ALGORITHMS:U}; do \
5032:${deptype:L}-depends:
5653:${i:S/-//:U}=      ${WRKDIR}/${SUB_FILES:M${i}*}
5700:.if defined(PLIST_REINPLACE_${reinplace:U})
5701:   @${SED} -i "" -e '${PLIST_REINPLACE_${reinplace:U}}' ${TMPPLIST}
5854:.if defined(USE_RCORDER) || defined(USE_RC_SUBR) &&
${USE_RC_SUBR:U} != "YES"
5864:.if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES"
      53
[crees at pegasus]~%

Chris


More information about the freebsd-hackers mailing list