Change the system name from 'FreeBSD' to 'DragonFly'. We are now officially
[dragonfly.git] / share / mk / bsd.port.mk
1 # $FreeBSD: src/share/mk/bsd.port.mk,v 1.303.2.2 2002/07/17 19:08:23 ru Exp $
2 # $DragonFly: src/share/mk/Attic/bsd.port.mk,v 1.7 2003/11/19 00:51:24 dillon Exp $
3
4 PORTSDIR?=      /usr/ports
5 DFPORTSDIR?=    /usr/dfports
6 PORTPATH!=      /usr/bin/relpath ${PORTSDIR} ${.CURDIR}
7
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
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.
24 #
25 .include <bsd.own.mk>
26 .include "${PORTSDIR}/Mk/bsd.port.mk"
27
28 .else
29
30 .undef BEFOREPORTMK
31 .undef AFTERPORTMK
32
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
62 .undef PORTSDIR
63 .BEGIN:
64         @echo "WARNING, USING DRAGONFLY OVERRIDE ${DFPORTSDIR}/${PORTPATH}"
65         cd ${DFPORTSDIR}/${PORTPATH} && ${MAKE} -B ${.TARGETS}
66
67 .endif
68