Commit graph

10319 commits

Author SHA1 Message Date
ryoon
dbc2d9fb52 mk/fonts.mk: Install ttc font file too 2022-09-26 16:17:10 +00:00
thor
82ed9159a7 blas.bl3: Fix BLAS_INCLUDES for openblas_pthread with 32 bit (default) indices 2022-09-26 09:33:01 +00:00
wiz
5e393ddb3c mk: describe jansson option 2022-09-13 23:31:02 +00:00
tnn
9b06fd48fc mk: OSX_SDK_MAP 12.6 -> 12.3 2022-09-13 05:37:50 +00:00
jperkin
b87aa18861 macOS: Support MACOSX_DEPLOYMENT_TARGET.
This allows the user to specify an exact SDK to use, and can be used to build
packages for an older release of macOS than the host.  The user should ideally
set this via environment variable at bootstrap time, and pkgsrc will then
encode that into mk.conf and use it for all builds.

Tested on macOS 12.x building against an 11.3 SDK for both arm64 and x86_64.
2022-09-12 12:32:30 +00:00
pho
930668b03c mk/haskell.mk: Fix typos in a comment 2022-09-08 15:18:48 +00:00
pho
1b1b2d0e99 mk/haskell.mk: print-PLIST: Prefix optionally-built files with ${PLIST.*}
HASKELL_ENABLE_SHARED_LIBRARY, HASKELL_ENABLE_LIBRARY_PROFILING, and
HASKELL_ENABLE_HADDOCK_DOCUMENTATION are user-settable variables that can
affect the set of installed files. `make print-PLIST' should automatically
handle these.
2022-09-08 07:38:50 +00:00
wiz
9b7700dc28 mk: fix typos in comments 2022-09-08 05:26:16 +00:00
pho
f3c66a03f9 mk/haskell.mk: New package-settable variable "HASKELL_UNRESTRICT_DEPENDENCIES"
It's a list of Cabal package names whose version constraints need to be
relaxed. This should free ourselves from needing to patch *.cabal files
most of the time. Suggested by wiz@
2022-09-08 04:45:44 +00:00
pho
da3b3ca71f mk/haskell.mk: Improve `show-all-haskell' outputs 2022-09-08 03:42:10 +00:00
taca
39262082c6 mk/defaults/options.description: add ruby-unicorn
Enable unicorn support.
2022-09-03 13:25:08 +00:00
martin
8af6789332 Add mipsn64{eb,el} - the full 64bit userland variants of NetBSD 64 bit
mips setups (that otherwise use 32bit userland)
2022-09-02 09:06:44 +00:00
thor
6ea020d1e8 mk/blas.bl3: Define *_PC variables for pkg-config use
This enables pointing builds to pkg-config instead of plain compiler/linker flags.
Future CMake integration profits from that.
2022-08-30 14:54:22 +00:00
thor
6507131379 add option descriptions for sge and slurm 2022-08-18 12:40:20 +00:00
joerg
4cc9e4667e Don't escape newline and tab in regex, newer gawk complains.
Follows check-shlibs-elf.awk change from 2 years ago.
2022-08-18 00:20:58 +00:00
joerg
b4353cac01 Use a deterministic locale when running the relro AWK script. 2022-08-18 00:19:34 +00:00
taca
7a3c731cb3 defaults/options.description: add lighttpd
Add lighttpd; Enable support for lighttpd web server.
2022-08-16 08:54:21 +00:00
tnn
c5051b252c mk: describe some llvm options 2022-08-13 09:09:54 +00:00
adam
39d9d7cca4 cmake.mk: strip only for targets have USE_LANGUAGES 2022-08-12 08:26:01 +00:00
jperkin
c8d7a85bde mk: Add OPSYS_EXPLICIT_LIBDEPS and enable on SunOS.
Most systems use GNU ld, which will happily pull in symbols required by a
program even if they are only available via implicit library dependencies.  The
SunOS linker is stricter, and if a program uses a symbol then the library that
defines that symbol must be an explicit dependency.

This mostly causes problems with libiconv and libintl, both of which Linux
bundles in its C library, so a lot of third-party software does not correctly
check for them.  Until now we've had to add many, many overrides, along with
variables such as BROKEN_GETTEXT_DETECTION which nowadays only has limited
effectiveness.

The situation appears to be getting worse, especially with software built with
meson, and so both libiconv and gettext-lib will now automatically add the
correct LDFLAGS if the OPSYS sets OPSYS_EXPLICIT_LIBDEPS=yes.

This isn't perfect.  For one it isn't really an OPSYS setting as you can try to
use GNU ld on SunOS, it just doesn't work very well.  It should also really be
done via the wrappers rather than exposing LDFLAGS, but we do not yet have an
approved patch for doing this.  However it does improve the current situation.
2022-08-09 11:31:14 +00:00
wiz
58396c5292 *** empty log message *** 2022-08-08 10:29:45 +00:00
nia
058a72a2c9 mk: Revert userland version detection for OS_VERSION for NetBSD, causes
unintended consequences when an older userland is bootstrapped, and
incompatibility with osabi. Separate variable for userland version
for NetBSD is likely the way forward.
2022-08-06 07:38:44 +00:00
adam
e96ad8cd12 cmake.mk: install stripped binaries 2022-08-05 18:54:43 +00:00
wiz
7b149405e7 mk: add stack-clash option to PKGSRC_USE_STACK_CHECK 2022-08-01 07:58:21 +00:00
wiz
01fb3414cf bsd.pkg.mk: fix typo in comment 2022-07-31 19:16:33 +00:00
wiz
ea83e2d341 mk: do not set TOOLS_PATH.pkgconfig, defaulting to 'false' as replacement 2022-07-24 14:47:00 +00:00
wiz
c532f0bdab mk/haskell.mk: remove pkg-config hiding workaround
pkg-config is now hidden by default if not in USE_TOOLS
2022-07-23 07:14:54 +00:00
wiz
95386f1cd6 mk: if pkg-config is not in USE_TOOLS, create a false(1) wrapper for it 2022-07-22 22:31:58 +00:00
nia
ce657bd6e3 mk: Also use /etc/release for OS_VERSION on NetBSD. 2022-07-22 09:27:01 +00:00
nia
6d3de285a8 mk: When calculating OPSYS_VERSION, use the userland version (/etc/release)
on NetBSD, rather than the kernel version. Should resolve building
packages with workarounds for -9 on a -9 userland and CURRENT kernel.

Thanks to Hauke Fath for the hint.
2022-07-22 09:14:43 +00:00
schmonz
f6c81d9b2f mk/platform: add SDK mapping for macOS 12.5. 2022-07-22 00:53:58 +00:00
taca
3cde420e17 mk/scripts/mkreadme: fix typo?
s/indexx.html/index.html/.
2022-07-17 13:37:30 +00:00
leot
445b3d8179 Document openipmi option
From Yuuki Enomoto via PR pkg/56929, thanks!
2022-07-16 15:42:09 +00:00
leot
d5837133de Document libssh option
From Yuuki Enomoto via PR pkg/56928, thanks!
2022-07-16 15:41:09 +00:00
gutteridge
ba1cd7b48b license.mk: add Beer-Ware to DEFAULT_ACCEPTABLE_LICENSES
As recently discussed on tech-pkg, this should be considered "Free or
Open Source", so add it accordingly. Probably this was never done
before just because it is so uncommon.

Debian allows inclusion of it as such (e.g., it's one of the
attributions they note applies to OpenSSH code in their packaging of
it), as do other mainstream Linux distros like Fedora.

Debian package review where this is stated:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685575

Fedora policy:
https://fedoraproject.org/wiki/Licensing/Beerware
2022-07-15 00:51:13 +00:00
dholland
50f8852608 Fix jpeg.bl3.mk to include bl3 files outside multiple-include protection.
This makes the library chosen appear in all places it's supposed to in
the buildlink tree instead of just the first time it's mentioned.

Closes PR 47017 (mk/jpeg.bl3.mk is order-dependent)
2022-07-14 23:45:48 +00:00
rillig
86009680de mk/buildlink3: fix breakage from previous commit
The expressions for USE_BUILTIN.* and for IGNORE_PKG.* can be undefined.
The function 'empty' takes care of these, the direct expressions
generate a (misleading) error message 'Malformed conditional'.
2022-07-09 08:19:18 +00:00
rillig
4a3543ae2c mk/buildlink3: remove makefile hacks for NetBSD 5
pkgsrc does not support NetBSD 5 anymore.

Back then, when expanding the body of a .for loop, the variable values
were inserted verbatim in the body, allowing for lots of unintended
special effects, making it essentially impossible to use these values
directly in conditions.

In this case, the values do not contain double quotes, that's why
enclosing the ${_pkg_} in double quotes worked.

See src/usr.bin/make/unit-tests/directive-for.mk for more details,
search for '2008-12-21'.

Combining .for loops with 'empty(...)' conditions still does not work,
so replace these with direct comparisons.  Before 2008-12-21, using
'empty(...)' was the safer variant because it avoided the uncontrolled
code injection.

No functional change.
2022-07-09 07:46:02 +00:00
jperkin
85445a6166 mk: Remove -std overrides for clang.
Reported to cause problems on FreeBSD, and clang is generally pretty
aggressive about defaulting to newer versions anyway.
2022-07-07 17:19:55 +00:00
jperkin
9b652873fc mk: Move GCC <= 4.4 override out of for loop.
Possible performance improvement, no funtional change.
2022-07-07 16:23:39 +00:00
rillig
9936282d9a mk/subst.mk: fix indentation of directives 2022-07-06 20:59:51 +00:00
rillig
f0fdfc082c mk/bsd.pkg.mk: fix alignment and indentation, no functional change 2022-07-06 19:06:31 +00:00
rillig
817ca3a5b7 mk/install: fix indentation and alignment, no functional change 2022-07-06 18:53:58 +00:00
markd
0ec066acdf tools: re-add (accidentally?) dropped realpath 2022-07-05 20:35:45 +00:00
jperkin
b5a2d55ae0 mk: Add support for newer C standards.
For now the GCC "c99 == gnu99" override is kept, but gnu99 is now supported as
a specific value for USE_LANGUAGES, so we may want to be specific where
required.

c11 and c17 (and the corresponding gnu11/gnu17 versions) are newly supported.
2022-07-05 17:32:24 +00:00
gutteridge
ed6f85a2e8 license.mk: fix grammar in another comment 2022-06-29 00:02:32 +00:00
gutteridge
864d0c26df license.mk: fix some grammar in a comment 2022-06-28 23:57:17 +00:00
nia
672c9b56b6 mk: Bump default postgres version to 14 2022-06-28 09:38:38 +00:00
pin
5c784c7f5b Document spotify-player image option 2022-06-19 07:02:18 +00:00
adam
cb24fa01e0 gcc.mk: support gcc12 2022-06-16 15:46:22 +00:00