summaryrefslogtreecommitdiff
path: root/Ports/.port_include.sh
AgeCommit message (Collapse)Author
2021-02-02Ports: Add post_configure functionLinus Groh
There's pre_configure to do things required by the configure script, let's also add post_configure for things not covered by the configure script. The specific use case is overwriting a file created by python3's configure script.
2021-02-01Ports: Move packages.db from Ports/ to Build/Linus Groh
When removing and recreating the Build directory, it's quite annoying having to edit/remove Ports/packages.db as the installer won't install previously installed port dependencies again if they're still listed. This problem is easily solved by just considering packages.db a build-specific file.
2021-01-25Ports: Improve configure scriptTheMorc
Just a small modification so that ports that are configured e.g. using cmake don't need a dummy configure file anymore.
2021-01-23Ports: Install dependencies in separate "installdepends" stepLinus Groh
Calling installdepends in do_fetch seems kinda silly and unexpected. Let's add a separate step with the same name instead.
2021-01-22Meta: Get building on NixOS (#5005)Jonathan Turner
2021-01-17Ports: Rename a few .diff files to .patchLinus Groh
Let's keep things consistent, .diff is the name we use pretty much everywhere. Also tweak the glob in .port_includes.sh to be 'patches/*.patch' rather than just 'patches/*'.
2020-12-31Ports: Hard-code SERENITY_ARCH=i686 until other architectures work (#4688)Dan MacDonald
2020-12-29Build: Support non-i686 toolchainsmeme
* Add SERENITY_ARCH option to CMake for selecting the target toolchain * Port all build scripts but continue to use i686 * Update GitHub Actions cache to include BuildIt.sh
2020-06-09Ports: Use keyserver.ubuntu.com as .sig keyserver (#2535)Nico Weber
Increases the number of successfully building ports from 27 to 36 (of 56) on my system.
2020-05-14Build: Switch to CMake :^)Sergey Bugaev
Closes https://github.com/SerenityOS/serenity/issues/2080
2020-04-15Ports: Support pre_configure scriptLinus Groh
This is useful if we want to do something after patching but before running the configure script - e.g. creating the configure script using another script :^)
2020-03-25Ports/bash: Make a /bin/bash symlink to /usr/local/bin/bashAndreas Kling
I've added a post_install step to the system that allows you to run arbitrary commands after the regular install step. This allows scripts that start with "#!/bin/bash" to work in Serenity.
2020-02-06Ports: Improve port build sriptEmanuel Sprung
* Add authenticity methods: sig, asc, md5sum, sha1sum, sha256sum * Split patch into own step * Improve extraction and patching: only do it, if it hasn't already be done, to do that, hidden files are created when a file is extracted or a patch is applied * Patch function is named patched_internal to not overwrite patch command in /usr/bin
2019-12-23Ports: Do not download sources if they're already presentSergey Bugaev
When running ./package.sh to rebuild an already installed port, we would not want to spend time re-downlodaing the same tarball again. Ideally, this should use some sort of hash checking to ensure the file is not truncated or something, but this is good enough for now.
2019-12-20Build: get rid of UseIt.shjoshua stein
The build system uses relative paths to the toolchain binaries, so modifying $PATH is no longer necessary, and nothing needs $SERENITY_ROOT anymore.
2019-12-06Ports: Use unzip to extract zips if bsdtar unavailable (#855)Larkin
2019-11-13Ports: Add support for zip files and ensure configure is executable (#773)Dan MacDonald
2019-11-03Ports: Undo POSIX sh compliance changes for nowAndreas Kling
Partial revert of 704f48d7f3a1a88047a64b4e2939878d6d4fafb8. These changes made the ports system unusable.
2019-11-03POSIX compliance: (most) shell scripts converted to generic shellGeorge Pickering
Ports/.port_include.sh, Toolchain/BuildIt.sh, Toolchain/UseIt.sh have been left largely untouched due to use of Bash-exclusive functions and variables such as $BASH_SOURCE, pushd and popd.
2019-09-24Ports: Update uninstall function to use $SERENITY_ROOTLarkin Nickle
Now uninstalling should just work once we have plists in place.
2019-09-24Ports: Switch to new ports system (#594)Larkin
Much redundancy is removed from package scripts with this system. It also supports simple dependency management, uninstalling (through BSD ports style plist files), cleaning up after itself (with clean, clean_dist, clean_all commands), etc.
2019-09-06Ports: Always export Serenity's GCC and G++ in the build environmentAndreas Kling
Export the appropriate CC and CXX to all port commands.
2019-07-01Ports: Force curl to follow redirects in run_fetch_web() (#266)Dan MacDonald
This fixes downloading files from github when building ports.
2019-07-01Ports: Fix SDL2 port trying to build against PulseAudio for some reason.Andreas Kling
I didn't look into why, but for some reason the SDL2 cmake build system thinks it should build against PulseAudio which we definitely don't have. So just tell it explicitly not to do that. Fixes #265.
2019-06-05Ports: Remove bashisms and switch all scripts to /bin/sh.Larkin Nickle
2019-05-28Ports: Add linksRobin Burchell
Doesn't actually run yet. in_term's read() fails with EFAULT for reasons that are presently beyond me, points to a bug in Serenity.
2019-05-28Ports: Vim and ncursesChristopher Dumas
2019-05-28LibC: Move struct timeval to sys/time.h. #POSIXAndreas Kling
2019-05-28Ports: Replace run_command use in bash with a run_replace_in_file helperRobin Burchell
This way, we don't (in the ports themselves) depend on perl as a public interface, which means if we ever have to, we can port to something else easier.
2019-05-28Ports: Remove MAKEOPTS hacks from bashRobin Burchell
This doesn't seem to go wrong anymore.
2019-05-28Move everything to a subdirectoryRobin Burchell
Also don't run cd for the initial git clone (DERP!), and other bash port fixes.
2019-05-28port_include: Various updatesRobin Burchell
* Prints what is run, which is useful for trace purposes. * Fix autotools configure to respect arguments * Add run_patch for applying patches
2019-05-28Add the start of a simple ports infrastructureRobin Burchell