blob: 2d485bc9d38bf1564d02d233ceaef993546b5359 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Set up the build variables which are used by a given build
#
# Code fragment used by other scripts for commonality
buildenv () {
pb=$1
arch=$2
branch=$3
export X11BASE=/usr/X11R6
export LOCALBASE=/usr/local
case "x$branch" in
x4)
export PKGSUFFIX=.tgz
export PKGZIPCMD=gzip
export INDEXFILE=INDEX
export X_WINDOW_SYSTEM=xfree86-4
;;
x4-exp)
export PKGSUFFIX=.tgz
export PKGZIPCMD=gzip
export PORTS_AUDIT=1
export INDEXFILE=INDEX
export X_WINDOW_SYSTEM=xfree86-4
;;
x5)
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
export INDEXFILE=INDEX-5
export X_WINDOW_SYSTEM=xorg
;;
x5-exp)
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
export INDEXFILE=INDEX-5
export X_WINDOW_SYSTEM=xorg
;;
x6)
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
export INDEXFILE=INDEX-6
export X_WINDOW_SYSTEM=xorg
;;
x7)
export PKGSUFFIX=.tbz
export PKGZIPCMD=bzip2
export INDEXFILE=INDEX-7
export X_WINDOW_SYSTEM=xorg
;;
*)
echo "buildenv: invalid branch"
exit 1
;;
esac
export ARCH=${arch}
export MACHINE_ARCH=${arch}
# Have to use realpath because 'make index' doesn't deal with symlinks in PORTSDIR
# - kk 020311
export PORTSDIR=$(realpath ${pb}/${arch}/${branch}/ports)
export SRCBASE=$(realpath ${pb}/${arch}/${branch}/src)
export SRCPREFIX=${SRCBASE} #XXX Which one is canonical?
export OSVERSION=$(awk '/^#define __FreeBSD_version/ {print $3}' < ${SRCBASE}/sys/sys/param.h)
export OSREL=$(awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
export BRANCH=$(awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < ${SRCBASE}/sys/conf/newvers.sh)
export __MAKE_CONF=${pb}/${arch}/make.conf
export DISTDIR=${pb}/${arch}/${branch}/distfiles
export PACKAGES=${pb}/${arch}/${branch}/packages
# Don't pick up host OPTIONS
export PORT_DBDIR=/nonexistent
export UNAME_m=${ARCH}
export UNAME_n=freebsd.org
export UNAME_p=${ARCH}
export UNAME_r=${OSREL}-${BRANCH}
export UNAME_s=FreeBSD
export UNAME_v="FreeBSD ${OSREL}-${BRANCH} #0: $(date) kris@freebsd.org:/usr/src/sys/magic/kernel/path"
export BATCH=1
export PACKAGE_BUILDING=1
export USA_RESIDENT=yes
# Old and mouldy?
export PORTOBJFORMAT=elf
export PARALLEL_PACKAGE_BUILD=1
export HAVE_MOTIF=1
export FTP_PASSIVE_MODE=yes
#export FETCH_BEFORE_ARGS=-vvv
}
|