-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build infrastucture to allow creating FreeBSD/GhostBSD pkg packages
- Loading branch information
Showing
7 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-$(python3 -c "import os;print(os.cpu_count())")} | ||
|
||
# rapid-build script for mcstas-kernel dev: | ||
|
||
|
||
if [ "x$1" = "x" ]; then | ||
# No arguments | ||
echo Please provide one argument,e.g : $0 2.0 | ||
exit 1; | ||
fi | ||
|
||
git checkout main | ||
git pull | ||
|
||
# Ensure our 3rd party modules are in place and updated | ||
THIRDPARTY=`ls 3rdparty | grep -v patches` | ||
|
||
./3rdparty/sync.sh | ||
|
||
WORK=`pwd` | ||
|
||
export MCINSTALL_PREFIX=/usr/local | ||
|
||
./mkdist mcstas ${1} "" "" ghostbsd "" -- pkg | ||
./mkdist mcstas-comps ${1} "" "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcgui ${1} tools/Python/mcgui/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcrun ${1} tools/Python/mcrun/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcdoc ${1} tools/Python/mcdoc/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mctest ${1} tools/Python/mctest/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mccodelib ${1} tools/Python/mccodelib/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcdisplay-pyqtgraph ${1} tools/Python/mcdisplay/pyqtgraph/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcdisplay-webgl ${1} tools/Python/mcdisplay/webgl/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcdisplay-cad ${1} tools/Python/mcdisplay/cad/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcdisplay-mantid ${1} tools/Python/mcdisplay/mantid_xml/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcplot-pyqtgraph ${1} tools/Python/mcplot/pyqtgraph/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcplot-svg ${1} tools/Python/mcplot/svg/ "" ghostbsd "" -- pkg | ||
./mkdist mcstas-tools-python-mcplot-matplotlib ${1} tools/Python/mcplot/matplotlib/ "" ghostbsd "" -- pkg | ||
cp tools/other/mcsplit/mcsplit.py $HOME/McStas/mcstas/${1}/bin/ | ||
|
||
export MCINSTALL_PREFIX=$HOME/McStas/mcstas/${1}/ | ||
./mkdist mcstas-ncrystal ${1} 3rdparty/ncrystal-package "" ghostbsd "" -- pkg | ||
./mkdist mcstas-mcpl ${1} 3rdparty/mcpl-package "" ghostbsd "" -- pkg | ||
./mkdist mcstas-nexus ${1} 3rdparty/nexus-package "" ghostbsd "" -- pkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# the name of the target operating system | ||
SET(CMAKE_SYSTEM_NAME "FreeBSD") | ||
SET(ARCH "amd64") | ||
|
||
# Commands for running various external tools | ||
set(BROWSER "xdg-open") | ||
set(TERMINAL "mate-terminal -e") | ||
set(TOOLS_CC "clang") | ||
set(MPICC "mpicc") | ||
set(MPIRUN "mpirun") | ||
set(MPILIB "mpi") | ||
set(MCCODE_CFLAGS "-g -O2 -DNDEBUG -lm -std=c99 -D_POSIX_SOURCE") | ||
set(EDITOR "gedit") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters