Annotation of src/share/mk/bsd.port.mk, revision 1.3

1.1       dillon      1: # $FreeBSD: src/share/mk/bsd.port.mk,v 1.303.2.2 2002/07/17 19:08:23 ru Exp $
1.3     ! dillon      2: # $DragonFly$
1.1       dillon      3: 
                      4: PORTSDIR?=     /usr/ports
1.3     ! dillon      5: DPORTSDIR?=    /usr/dports
        !             6: PORTPATH!=     /usr/bin/relpath ${PORTSDIR} ${.CURDIR}
1.1       dillon      7: 
1.3     ! dillon      8: .if !exists(${DPORTSDIR}/${PORTPATH}/Makefile)
        !             9: # If the port does not exist in /usr/dports/<portpath> use the original
        !            10: # FreeBSD port
        !            11: #
1.1       dillon     12: .include <bsd.own.mk>
                     13: .include "${PORTSDIR}/Mk/bsd.port.mk"
1.3     ! dillon     14: 
        !            15: .else
        !            16: 
        !            17: # Otherwise retarget to the DragonFly override port.
        !            18: #
        !            19: 
        !            20: TARGETS+=      all
        !            21: TARGETS+=      build
        !            22: TARGETS+=      checksum
        !            23: TARGETS+=      clean
        !            24: TARGETS+=      clean-for-cdrom
        !            25: TARGETS+=      clean-for-cdrom-list
        !            26: TARGETS+=      clean-restricted
        !            27: TARGETS+=      clean-restricted-list
        !            28: TARGETS+=      configure
        !            29: TARGETS+=      deinstall
        !            30: TARGETS+=      depend
        !            31: TARGETS+=      depends
        !            32: TARGETS+=      describe
        !            33: TARGETS+=      distclean
        !            34: TARGETS+=      extract
        !            35: TARGETS+=      fetch
        !            36: TARGETS+=      fetch-list
        !            37: TARGETS+=      ignorelist
        !            38: TARGETS+=      makesum
        !            39: TARGETS+=      maintainer
        !            40: TARGETS+=      package
        !            41: TARGETS+=      realinstall
        !            42: TARGETS+=      reinstall
        !            43: TARGETS+=      install
        !            44: TARGETS+=      tags
        !            45: 
        !            46: .for __target in ${TARGETS}
        !            47: .if !target(${__target})
        !            48: ${__target}:
        !            49:        @echo "WARNING, USING DRAGONFLY OVERRIDE ${DPORTSDIR}/${PORTPATH}"
        !            50:        cd ${DPORTSDIR}/${PORTPATH} && ${MAKE} -B ${.TARGET}
        !            51: .endif
        !            52: .endfor
        !            53: 
        !            54: .endif
        !            55: