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

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.10      joerg       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.9       joerg      20: .if !exists(${DFPORTSDIR}/${PORTPATH}/Makefile)
                     21: 
1.13    ! joerg      22: .if defined(USE_RC_SUBR)
        !            23: .undef USE_RC_SUBR
        !            24: RC_SUBR=       /etc/rc.subr
        !            25: .endif
        !            26: 
1.5       dillon     27: # If the port does not exist in /usr/dfports/<portpath> use the original
                     28: # FreeBSD port.  Also process as per normal if BEFOREPORTMK is set so
                     29: # any expected variables are set.
1.3       dillon     30: #
1.1       dillon     31: .include <bsd.own.mk>
                     32: .include "${PORTSDIR}/Mk/bsd.port.mk"
1.3       dillon     33: 
                     34: .else
                     35: 
1.5       dillon     36: .undef BEFOREPORTMK
                     37: .undef AFTERPORTMK
                     38: 
1.3       dillon     39: # Otherwise retarget to the DragonFly override port.
                     40: #
                     41: 
                     42: TARGETS+=      all
                     43: TARGETS+=      build
                     44: TARGETS+=      checksum
                     45: TARGETS+=      clean
                     46: TARGETS+=      clean-for-cdrom
                     47: TARGETS+=      clean-for-cdrom-list
                     48: TARGETS+=      clean-restricted
                     49: TARGETS+=      clean-restricted-list
                     50: TARGETS+=      configure
                     51: TARGETS+=      deinstall
                     52: TARGETS+=      depend
                     53: TARGETS+=      depends
                     54: TARGETS+=      describe
                     55: TARGETS+=      distclean
                     56: TARGETS+=      extract
                     57: TARGETS+=      fetch
                     58: TARGETS+=      fetch-list
                     59: TARGETS+=      ignorelist
                     60: TARGETS+=      makesum
                     61: TARGETS+=      maintainer
                     62: TARGETS+=      package
                     63: TARGETS+=      realinstall
                     64: TARGETS+=      reinstall
                     65: TARGETS+=      install
                     66: TARGETS+=      tags
                     67: 
1.6       dillon     68: .undef PORTSDIR
1.10      joerg      69: .if !make(package-depends-list) && !make(all-depends-list)
1.5       dillon     70: .BEGIN:
1.4       dillon     71:        @echo "WARNING, USING DRAGONFLY OVERRIDE ${DFPORTSDIR}/${PORTPATH}"
1.5       dillon     72:        cd ${DFPORTSDIR}/${PORTPATH} && ${MAKE} -B ${.TARGETS}
1.9       joerg      73: .endif
1.3       dillon     74: 
1.12      joerg      75: .if !empty(.TARGETS)
1.8       joerg      76: ${.TARGETS}:
1.12      joerg      77: .else
                     78: all:
                     79: .MAIN: all
                     80: .endif
1.8       joerg      81: 
1.11      joerg      82: # Hack to get Makefiles with conditional statements working
                     83: XFREE86_VERSION?=      4
                     84: ARCH?=                 i386
                     85: MACHINE_ARCH?=         i386
                     86: HAVE_GNOME?=
                     87: 
1.3       dillon     88: .endif
                     89: