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

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.4       dillon      5: DFPORTSDIR?=   /usr/dfports
1.3       dillon      6: PORTPATH!=     /usr/bin/relpath ${PORTSDIR} ${.CURDIR}
1.1       dillon      7: 
1.5     ! dillon      8: .if !exists(${DFPORTSDIR}/${PORTPATH}/Makefile) || defined(BEFOREPORTMK)
        !             9: # If the port does not exist in /usr/dfports/<portpath> use the original
        !            10: # FreeBSD port.  Also process as per normal if BEFOREPORTMK is set so
        !            11: # any expected variables are set.
1.3       dillon     12: #
1.1       dillon     13: .include <bsd.own.mk>
                     14: .include "${PORTSDIR}/Mk/bsd.port.mk"
1.3       dillon     15: 
                     16: .else
                     17: 
1.5     ! dillon     18: .undef BEFOREPORTMK
        !            19: .undef AFTERPORTMK
        !            20: 
1.3       dillon     21: # Otherwise retarget to the DragonFly override port.
                     22: #
                     23: 
                     24: TARGETS+=      all
                     25: TARGETS+=      build
                     26: TARGETS+=      checksum
                     27: TARGETS+=      clean
                     28: TARGETS+=      clean-for-cdrom
                     29: TARGETS+=      clean-for-cdrom-list
                     30: TARGETS+=      clean-restricted
                     31: TARGETS+=      clean-restricted-list
                     32: TARGETS+=      configure
                     33: TARGETS+=      deinstall
                     34: TARGETS+=      depend
                     35: TARGETS+=      depends
                     36: TARGETS+=      describe
                     37: TARGETS+=      distclean
                     38: TARGETS+=      extract
                     39: TARGETS+=      fetch
                     40: TARGETS+=      fetch-list
                     41: TARGETS+=      ignorelist
                     42: TARGETS+=      makesum
                     43: TARGETS+=      maintainer
                     44: TARGETS+=      package
                     45: TARGETS+=      realinstall
                     46: TARGETS+=      reinstall
                     47: TARGETS+=      install
                     48: TARGETS+=      tags
                     49: 
1.5     ! dillon     50: .BEGIN:
1.4       dillon     51:        @echo "WARNING, USING DRAGONFLY OVERRIDE ${DFPORTSDIR}/${PORTPATH}"
1.5     ! dillon     52:        cd ${DFPORTSDIR}/${PORTPATH} && ${MAKE} -B ${.TARGETS}
1.3       dillon     53: 
                     54: .endif
                     55: