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

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