Commit graph

16 commits

Author SHA1 Message Date
Mikael Urankar
c7dd5ca11a *: Linux emulation: add support for aarch64
PR:		256008
Submitted by:	Vincent Milum Jr (prior version)
Approved by:	emulation (maintainer timeout)
2022-01-17 15:47:28 +01:00
Stefan Eßer
819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Jung-uk Kim
1e99c5988a Ignore "-march=foo" from CFLAGS when compiling a Linux binary.
I have "CPUTYPE?=znver1" in my /etc/make.conf and it broke build because
this port uses GCC 4.8.5 and it does not support recent processors.

Reviewed by:	tijl
2019-09-11 19:13:05 +00:00
Tijl Coosemans
1d5c61dd9f Add USE_LINUX=base:build so the port depends on linux_base-c7>=7.6.1810_7.
A direct dependency on linux_base-c7 also helps tools like portmaster to
update linux_base-c7 first.
2019-09-10 08:42:18 +00:00
Tijl Coosemans
43a2d74d7b - Make the port safe to build as root. [1]
Given an absolute /path Linux programs first try to access
/compat/linux/path before trying /path.  That means mkdir -p ${STAGEDIR}
will always create /compat/linux${STAGEDIR} when run as root and echo >
/dev/null will create /compat/linux/dev/null as a regular file.  Fix this
by running configure with FreeBSD /bin/sh and build/install using FreeBSD
gmake.  PATH is set to /compat/linux/usr/bin and MKDIR_P to /bin/mkdir -p
so all commands except mkdir are still Linux programs.

- Add USES=libtool:build because libtoolize is needed. [2]
- Add USES=pkgconfig.
- Remove -DFREEBSD_OSS_BUFSZ_P2 because it breaks some games. [3]
- Replace -nostdinc -isystem ... with --sysroot=${LINUXBASE}. [3]
- Include bsd.port.options.mk to get ARCH. [3]

PR:		240043
Reported by:	VVD <vvd@unislabs.com> [1]
Reported by:	Giacomo Olgeni <olgeni@olgeni.com> [2]
Reported by:	Alex S <iwtcex@gmail.com> [3]
2019-09-09 20:36:10 +00:00
Tijl Coosemans
77a7978c6a Rewrite the port so we build our own Linux package from the upstream
.src.rpm with patches derived from the audio/alsa-plugins port.  This
should improve sound output from Linux programs.

CFLAGS contains -nostdinc -isystem ... because gcc searches
/usr/local/include before /usr/include otherwise and picks up headers from
/usr/local/include/alsa instead of /compat/linux/usr/include/alsa.

PR:		240043
2019-09-08 20:47:57 +00:00
Tijl Coosemans
94b28aceb9 Fix Linux ALSA OSS plugin by removing a configuration file. The
configuration from FreeBSD /usr/local/etc/asound.conf should be used.

PR:		240043
Reported by:	Hannes Hauswedell <h2+fbsdports@fsfe.org>
2019-08-25 20:02:09 +00:00
Tijl Coosemans
bb5cf6c4f3 Address some portlint warnings in the Linux infrastructure ports.
Eliminate LINUXNAME from port Makefiles.  This was just a helper variable
without special meaning outside port Makefiles but several developers have
copied it to new ports where it was then unused, apparently thinking that
it did have some special meaning.
2019-06-08 15:59:46 +00:00
Tijl Coosemans
5b721b6172 Eliminate RPMVERSION from Linux ports and set DISTVERSIONSUFFIX instead.
This puts all version information together in the port Makefiles.
2019-06-08 13:13:29 +00:00
Tijl Coosemans
f099d068fc Update CentOS 7 ports to 7.6.1810.
This adds some new ports:
converters/linux-c7-fribidi required by x11-toolkits/linux-c7-pango.
graphics/linux-c7-libglvnd required by graphics/linux-c7-dri.
graphics/linux-c7-wayland required by graphics/linux-c7-dri.
print/linux-c7-freetype unbundled from emulators/linux_base-c7 because it
depends on graphics/linux-c7-png now.

Mesa OpenGL libraries in graphics/linux-c7-dri now support libglvnd (GL
Vendor-Neutral Dispatch library) which allows some applications to use
Mesa while others use Nvidia OpenGL.  The x11/nvidia-driver* ports have
been changed so versions above 390.42 now use CentOS libglvnd and no longer
install a bundled copy.

PR:		229431
Submitted by:	pkubaj (partly)
2019-06-08 12:13:46 +00:00
Mathieu Arnold
e1bfdfbe56 Add DOCS options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:14:50 +00:00
Tijl Coosemans
d0d15cc5cd Enable i386 support to Linux CentOS 7 ports.
PR:		216646
2017-01-31 20:32:46 +00:00
Tijl Coosemans
6140d3c6aa - Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
  Select one list for regular make and all lists for make makesum so linux
  ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
  lib64 and sbin into symbolic links to the same directory under usr.
  This fixes the problem where some programs/libraries exist under / on
  FreeBSD and /usr on Linux or vice versa and then depending on the order
  of search paths Linux programs may run/load FreeBSD programs/libraries
  and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
  Linux programs can find desktop theme icons.  This eliminates the need
  for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
  lib, lib64, sbin and icons to the new destination before the directories
  are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
  remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 16:54:21 +00:00
Tijl Coosemans
c2712d2471 Update Linux CentOS 7 ports to 7.3.1611. While 7.2 had semi-official i386
packages there are no such packages for 7.3 yet so i386 support has been
marked IGNORE for now.

Change DIST_SUBDIR to just "centos" so distfiles that remain the same
between major versions don't have to be redownloaded.

Remove fmake hacks from linux.mk.

Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2017-01-19 15:44:53 +00:00
Tijl Coosemans
1675ff649c Add Linux CentOS 7 infrastructure ports.
Mk/Uses/linux.mk changes:
- Add support for architecture neutral (noarch) distfiles.
- Add support for 64-bit only ports: set IGNORE on i386 and don't install
  32-bit compat libraries on amd64.

Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
Differential Revision:	https://reviews.freebsd.org/D7886
2016-10-19 14:50:26 +00:00