aboutsummaryrefslogtreecommitdiffstats
path: root/devel/imake-4/scripts/configure
blob: d4fd250860b179cab9607f5c0395b3e6257fbfbb (plain) (blame)
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
#!/bin/sh
# configuration scripts for imake/XFree86

F=$WRKDIR/.config

isyes() {
    if [ X$1 = XYES -o X$1 = XYes -o X$1 = Xyes -o X$1 = XY -o X$1 = Xy ]; then
    ret=YES
    else
        ret=$1
    fi
}

rm -f $F

echo "/*" >> $F
echo "/* The following was generated by FreeBSD imake-4/XFree86-4-* ports system." >> $F
echo " */" >> $F
echo "#ifndef HasSecureRPC"         >> $F
echo "#define HasSecureRPC $HasSecureRPC"   >> $F
echo "#endif"                   >> $F
echo "#ifndef BuildAoutLibraries"       >> $F
echo "#define BuildAoutLibraries $BuildAoutLibraries" >> $F
echo "#endif"                   >> $F
isyes $DebuggableLibraries
if [ $ret = YES -a $OSVERSION -ge 400000 ]; then
    echo "#ifndef DebuggableLibraries"      >> $F
    echo "#define DebuggableLibraries $ret" >> $F
    echo "#endif"               >> $F
fi
echo "#ifndef InstallXdmConfig"         >> $F
echo "#define InstallXdmConfig $InstallXdmConfig" >> $F
echo "#endif"                   >> $F
echo "#ifndef InstallXinitConfig"       >> $F
echo "#define InstallXinitConfig $InstallXinitConfig" >> $F
echo "#endif"                   >> $F
echo "#ifndef InstallAppDefFiles"       >> $F
echo "#define InstallAppDefFiles $InstallAppDefFiles" >> $F
echo "#endif"                   >> $F
echo "#define HasXdmAuth YES"           >> $F
echo "#define BuildXF86Setup NO"        >> $F
echo "#define HasFreetype2 YES"         >> $F
echo "#define Freetype2Dir ${LOCALBASE}"    >> $F
echo "#define HasExpat YES"         >> $F
echo "#define ExpatDir ${LOCALBASE}"        >> $F
echo "#define HasFontconfig YES"        >> $F
echo "#define FontconfigDir ${PREFIX}"      >> $F
echo "#define HasLibpng YES"            >> $F
echo "#define LibpngDir ${LOCALBASE}"       >> $F
echo "#define BuildHtmlManPages NO"     >> $F
# Never install something to outside ${X11BASE}
echo "#define NothingOutsideProjectRoot YES"    >> $F

cat $F >> ${WRKDIR}/xc/config/cf/xf86site.def

echo "#define ProjectRoot ${PREFIX}" > ${WRKDIR}/xc/config/cf/host.def

cd ${WRKDIR}/xc
touch config/cf/version.def
touch config/cf/date.def
make Makefile.boot
make -f xmakefile VerifyOS version.def Makefiles includes