- Constructs shared directories for graphics packages. - Defines installation behavior for all pkgs that use GRAPHICS flag.early
@ -0,0 +1,6 @@ |
|||||
|
MENU_PKG_GRAPHICS |
||||
|
Here you'll find options for the CG target |
||||
|
|
||||
|
SDECFG_PKG_GRAPHICS_PREFIX |
||||
|
The installation prefix for graphics and graphics related applications for the CG target |
||||
|
|
@ -0,0 +1,8 @@ |
|||||
|
if pkgcheck graphics-dirtree X |
||||
|
then |
||||
|
menu_begin MENU_PKG_GRAPHICS 'CG target options' |
||||
|
text 'Install prefix for graphics and related applications' \ |
||||
|
SDECFG_PKG_GRAPHICS_PREFIX "opt/graphics" |
||||
|
menu_end |
||||
|
fi |
||||
|
|
@ -0,0 +1,21 @@ |
|||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
|
# |
||||
|
# Filename: package/.../graphics-dirtree/data.txt |
||||
|
# Copyright (C) 2007 The OpenSDE Project |
||||
|
# |
||||
|
# More information can be found in the files COPYING and README. |
||||
|
# |
||||
|
# This program is free software; you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU General Public License as published by |
||||
|
# the Free Software Foundation; version 2 of the License. A copy of the |
||||
|
# GNU General Public License can be found in the file COPYING. |
||||
|
# --- SDE-COPYRIGHT-NOTE-END --- |
||||
|
|
||||
|
# $prefix is added by default. |
||||
|
m bin |
||||
|
m lib |
||||
|
m include |
||||
|
m man |
||||
|
m doc |
||||
|
m share |
@ -0,0 +1,54 @@ |
|||||
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
|
# |
||||
|
# T2 SDE: package/.../graphics-dirtree/graphics-dirtree.conf |
||||
|
# Copyright (C) 2004 - 2007 The T2 SDE Project |
||||
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
||||
|
# |
||||
|
# More information can be found in the files COPYING and README. |
||||
|
# |
||||
|
# This program is free software; you can redistribute it and/or modify |
||||
|
# it under the terms of the GNU General Public License as published by |
||||
|
# the Free Software Foundation; version 2 of the License. A copy of the |
||||
|
# GNU General Public License can be found in the file COPYING. |
||||
|
# --- T2-COPYRIGHT-NOTE-END --- |
||||
|
|
||||
|
main_dt() { |
||||
|
echo -n "Change to sysroot directory ... " |
||||
|
cd $sysroot/ ; echo 'done' |
||||
|
|
||||
|
while read a b c ; do |
||||
|
b=$prefix/$b |
||||
|
if [ "$a" = "chmod" -o "$a" = "chown" ] ; then |
||||
|
echo "Running $a ($b) on $c ..." |
||||
|
$a "$b" "$sysroot/$c" |
||||
|
elif [ "$a" -a "$a" != "#" ] ; then |
||||
|
if [ -e "$sysroot/$b" ] ; then |
||||
|
echo "Exists already: $b." |
||||
|
elif [ "$a" = "m" ] ; then |
||||
|
echo "Create directory $b ..." |
||||
|
mkdir -p "$sysroot/$b" |
||||
|
elif [ "$a" = "l" ] ; then |
||||
|
echo "Create symlink $b ($c) ..." |
||||
|
ln -fsn "$c" "$sysroot/$b" |
||||
|
else |
||||
|
echo "Syntax Error: $a $b $c" ; false |
||||
|
fi |
||||
|
add_flist "$sysroot/$b" |
||||
|
fi |
||||
|
done < <( |
||||
|
cat $confdir/data.txt |
||||
|
if [[ $libdir = *lib64 ]]; then |
||||
|
echo "m lib64" |
||||
|
echo "m usr/lib64" |
||||
|
echo "m usr/local/lib64" |
||||
|
fi |
||||
|
) |
||||
|
} |
||||
|
|
||||
|
srctar=none |
||||
|
createprefix=0 |
||||
|
createdocs=0 |
||||
|
custmain="main_dt" |
||||
|
check_usrlocal=0 |
||||
|
|
@ -0,0 +1,32 @@ |
|||||
|
|
||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||
|
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
|
[COPY] |
||||
|
[COPY] Filename: package/.../00-dirtree/00-dirtree.desc |
||||
|
[COPY] Copyright (C) 2006 The OpenSDE Project |
||||
|
[COPY] Copyright (C) 2004 - 2006 The T2 SDE Project |
||||
|
[COPY] Copyright (C) 1998 - 2003 Clifford Wolf |
||||
|
[COPY] |
||||
|
[COPY] More information can be found in the files COPYING and README. |
||||
|
[COPY] |
||||
|
[COPY] This program is free software; you can redistribute it and/or modify |
||||
|
[COPY] it under the terms of the GNU General Public License as published by |
||||
|
[COPY] the Free Software Foundation; version 2 of the License. A copy of the |
||||
|
[COPY] GNU General Public License can be found in the file COPYING. |
||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-END --- |
||||
|
|
||||
|
[I] Directory tree framework for graphics |
||||
|
|
||||
|
[T] This Package contains the basic directory tree for graphics packages. |
||||
|
|
||||
|
[A] Minto van der Sluis <misl@opensde.org> |
||||
|
[M] Minto van der Sluis <misl@opensde.org> |
||||
|
|
||||
|
[C] base/system |
||||
|
[F] DIETLIBC GRAPHICS |
||||
|
|
||||
|
[L] GPL |
||||
|
[S] Stable |
||||
|
[V] 0000 |
||||
|
[P] X 01---5---9 000.001 |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
if hasflag GRAPHICS; then |
||||
|
if [ "$pkg" == "graphics-dirtree" ]; then |
||||
|
if [ "$SDECFG_PKG_GRAPHICS_PREFIX" ] ; then |
||||
|
prefix="$SDECFG_PKG_GRAPHICS_PREFIX" |
||||
|
else |
||||
|
prefix="opt/graphics" |
||||
|
fi |
||||
|
else |
||||
|
pkgprefix -t graphics-dirtree |
||||
|
prefix=$( pkgprefix graphics-dirtree ) |
||||
|
fi |
||||
|
echo "Prefix = " $prefix |
||||
|
set_confopt |
||||
|
fi |