1 # this path is used by some packages to install additional makefiles
2 export DESTDIR_GNUSTEP_MAKEFILES
=$out/share
/GNUstep
/Makefiles
4 addGnustepInstallFlags
() {
6 "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" \
7 "GNUSTEP_SYSTEM_APPS=${!outputLib}/lib/GNUstep/Applications" \
8 "GNUSTEP_SYSTEM_ADMIN_APPS=${!outputLib}/lib/GNUstep/Applications" \
9 "GNUSTEP_SYSTEM_WEB_APPS=${!outputLib}/lib/GNUstep/WebApplications" \
10 "GNUSTEP_SYSTEM_TOOLS=${!outputBin}/bin" \
11 "GNUSTEP_SYSTEM_ADMIN_TOOLS=${!outputBin}/sbin" \
12 "GNUSTEP_SYSTEM_LIBRARY=${!outputLib}/lib/GNUstep" \
13 "GNUSTEP_SYSTEM_HEADERS=${!outputInclude}/include" \
14 "GNUSTEP_SYSTEM_LIBRARIES=${!outputLib}/lib" \
15 "GNUSTEP_SYSTEM_DOC=${!outputDoc}/share/GNUstep/Documentation" \
16 "GNUSTEP_SYSTEM_DOC_MAN=${!outputMan}/share/man" \
17 "GNUSTEP_SYSTEM_DOC_INFO=${!outputInfo}/share/info" \
21 preInstallPhases
+=" addGnustepInstallFlags"
27 if [[ -d "$2" && "${!1-}" != *"$2"* ]]; then
28 addToSearchPath
"$1" "$2"
32 gsAddToIncludeSearchPath
() {
35 # NOTE: contrary to the one in wrapGNUstepAppsHook, use -e here instead of -d since it's also used for the makefiles
36 if [[ -e "$2" && "${ref-}" != *"$2"* ]]; then
37 if [[ "${ref-}" != "" ]]; then
45 for filename
in $1/share
/GNUstep
/Makefiles
/Additional
/*.
make ; do
46 gsAddToIncludeSearchPath NIX_GNUSTEP_MAKEFILES_ADDITIONAL
"$filename"
49 export NIX_GNUSTEP_MAKEFILES_ADDITIONAL
51 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_APPS
"$1/lib/GNUstep/Applications"
52 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_ADMIN_APPS
"$1/lib/GNUstep/Applications"
53 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_WEB_APPS
"$1/lib/GNUstep/WebApplications"
54 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_TOOLS
"$1/bin"
55 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_ADMIN_TOOLS
"$1/sbin"
56 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_LIBRARY
"$1/lib/GNUstep"
57 gsAddToIncludeSearchPath NIX_GNUSTEP_SYSTEM_HEADERS
"$1/include"
58 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_LIBRARIES
"$1/lib"
59 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_DOC
"$1/share/GNUstep/Documentation"
60 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_DOC_MAN
"$1/share/man"
61 gsAddToSearchPath NIX_GNUSTEP_SYSTEM_DOC_INFO
"$1/share/info"
63 addEnvHooks
"$targetOffset" addGNUstepEnvVars
66 export GNUSTEP_MAKEFILES
="$(gnustep-config --variable=GNUSTEP_MAKEFILES)"
68 .
$GNUSTEP_MAKEFILES/GNUstep.sh
71 preConfigureHooks
+=(gsmakeSetup
)