59 |
INHERITS="${INHERITS} xorg" |
INHERITS="${INHERITS} xorg" |
60 |
|
|
61 |
# pkg setup |
# pkg setup |
62 |
|
: ${HOMEPAGE="http://xorg.freedesktop.org"} |
63 |
: ${SRCFILE="${PNAME}-${PVER}.tar.bz2"} |
: ${SRCFILE="${PNAME}-${PVER}.tar.bz2"} |
64 |
: ${SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"} |
: ${SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"} |
65 |
|
|
73 |
|
|
74 |
# get the right subdir |
# get the right subdir |
75 |
case ${PCAT} in |
case ${PCAT} in |
76 |
app-doc) URISUBDIR="doc" ;; |
app-doc) URISUBDIR="doc" ;; |
77 |
media-fonts) URISUBDIR="font" ;; |
media-fonts) URISUBDIR="font" ;; |
78 |
x11-apps) URISUBDIR="app" ;; |
x11-apps) URISUBDIR="app" ;; |
79 |
x11-base) URISUBDIR="xserver" ;; |
x11-base) URISUBDIR="xserver" ;; |
80 |
x11-drivers) URISUBDIR="driver" ;; |
x11-drivers) URISUBDIR="driver" ;; |
81 |
x11-libs) URISUBDIR="lib" ;; |
x11-libs) |
82 |
x11-misc) case ${PNAME} in |
case ${PNAME} in |
83 |
xbitmaps|xkbdata) URISUBDIR="data" ;; |
glamor-egl) URISUBDIR="driver" ;; |
84 |
xkeyboard-config) URISUBDIR="data/xkeyboard-config" ;; |
*) URISUBDIR="lib" ;; |
85 |
*) URISUBDIR="util" ;; |
esac |
86 |
esac |
;; |
87 |
|
x11-misc) |
88 |
|
case ${PNAME} in |
89 |
|
xbitmaps|xkbdata) URISUBDIR="data" ;; |
90 |
|
xkeyboard-config) URISUBDIR="data/xkeyboard-config" ;; |
91 |
|
*) URISUBDIR="util" ;; |
92 |
|
esac |
93 |
;; |
;; |
94 |
x11-proto) URISUBDIR="proto" ;; |
x11-proto) URISUBDIR="proto" ;; |
95 |
x11-themes) URISUBDIR="data" ;; |
x11-themes) URISUBDIR="data" ;; |
96 |
x11-wm) URISUBDIR="app" ;; |
x11-wm) URISUBDIR="app" ;; |
97 |
esac |
esac |
98 |
|
|
99 |
SRC_URI=( |
SRC_URI=( |
100 |
${SRC_URI[*]} |
${SRC_URI[*]} |
|
# ${XORG_MIRROR}/individual/app/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/data/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/doc/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/driver/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/font/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/lib/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/proto/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/testdir/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/util/${SRCFILE} |
|
|
# ${XORG_MIRROR}/individual/xserver/${SRCFILE} |
|
101 |
${XORG_MIRROR}/individual/${URISUBDIR}/${SRCFILE} |
${XORG_MIRROR}/individual/${URISUBDIR}/${SRCFILE} |
102 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
103 |
) |
) |
104 |
|
|
105 |
|
UP2DATE="updatecmd_xorg ${PNAME}" |
106 |
|
|
107 |
# add default deps |
# add default deps |
108 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
109 |
>= virtual/man" |
>= virtual/man" |
133 |
# default input driver dependencies |
# default input driver dependencies |
134 |
if is_xorg_input_driver |
if is_xorg_input_driver |
135 |
then |
then |
136 |
|
: ${DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices."} |
137 |
|
|
138 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
139 |
|
>= x11-libs/libXi-1.7 |
140 |
|
>= x11-libs/libXtst-1.1 |
141 |
>= x11-base/xorg-server-1" |
>= x11-base/xorg-server-1" |
142 |
|
|
143 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
149 |
# default video driver dependencies |
# default video driver dependencies |
150 |
if is_xorg_video_driver |
if is_xorg_video_driver |
151 |
then |
then |
152 |
|
: ${DESCRIPTION="Xorg video driver for ${PNAME/xf86-video-/} devices."} |
153 |
|
|
154 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
155 |
>= x11-base/xorg-server-1" |
>= x11-base/xorg-server-1" |
156 |
|
|
165 |
|
|
166 |
xorg_src_prepare() |
xorg_src_prepare() |
167 |
{ |
{ |
|
# check for old xorg installations |
|
|
is_old_xorg_installed |
|
|
|
|
168 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
169 |
} |
} |
170 |
|
|
212 |
mmake || die |
mmake || die |
213 |
} |
} |
214 |
|
|
215 |
|
xorg_src_check() |
216 |
|
{ |
217 |
|
cd ${SRCDIR} |
218 |
|
mmake -k check || die |
219 |
|
} |
220 |
|
|
221 |
xorg_src_install() |
xorg_src_install() |
222 |
{ |
{ |
223 |
cd ${SRCDIR} |
cd ${SRCDIR} |
230 |
fi |
fi |
231 |
} |
} |
232 |
|
|
233 |
xorg_preinstall() |
export_inherits xorg src_prepare src_compile src_check src_install |
|
{ |
|
|
# run this in postinstall to cover --src-install builds |
|
|
# ( the is now package-dir at this moment, cause its not already builded :) |
|
|
# if [[ -n ${XORG_FONT_PKG} ]] |
|
|
# then |
|
|
# xorg_discover_font_dirs |
|
|
# fi |
|
|
return 0 |
|
|
} |
|
|
|
|
|
export_inherits xorg src_prepare src_compile src_install preinstall |
|