Commit graph

319 commits

Author SHA1 Message Date
jmcneill
57f467b42b for X11_TYPE=native, default X11BASE to /usr/X11R7 on NetBSD if
X11FLAVOUR is "Xorg", so it is set right even when x* sets aren't installed

ok joerg
2011-11-28 00:00:49 +00:00
hans
48aa22794a Add the minor number of the OS version to LOWER_OPSYS_VERSUFFIX.
Configure scripts tend to use it to distinguish different SunOS
versions.
2011-10-26 16:01:14 +00:00
reed
6bdad51ddf Rename "flavor" to "pkgformat".
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG
support to pkgsrc. (I am not adding that further support in this
commit.)

This is just a rename of the existing functionality. Now it will
be easy to test the GSoC work by simply putting in a single
directory (such as "rpm" or "deb"). See
http://addpackageforma.sourceforge.net/ for some details.

This is from Anton's CVS, but I made some minor changes:

- changed plural pkgformats to singular pkgformat (to be consistent)

- fixed a few places (in comments) that were missed

- catch up on some additions to flavor not in the pkgforma cvs:
PKGSRC_SETENV and _flavor-destdir-undo-replace and
undo-destdir-replace-install.
2011-10-15 00:23:07 +00:00
abs
eff4ff328d From "What platforms work with X11_TYPE=native" thread on pkgsrc-users.
Based on the responses I'm going to switch the default X11_TYPE to
be modular, and override in platform/*.mk files as required. The
new values will be:

Changed - from native to modular
- FreeBSD
- FreeMiNT
- Linux

Changed - older versions switched from native to modular
- NetBSD - native for NetBSD-4 and later

Native (unchanged)  - should probably be switched to modular
- AIX
- BSDOS
- IRIX
- Interix
- MirBSD
- UnixWare

Native (unchanged)
- Darwin - for Leopard (10.5) and later
- OpenBSD.mk
- SunOS.mk

Modular (unchanged)
- DragonFly
- HPUX
- Haiku
- OSF1

I'd like to encourage anyone using X11 apps on any platforms other
than NetBSD, Darwin, DragonFly, FreeBSD, Linux, FreeMiNT, HPUX,
Haiku or OSF1 to speak up, whether they are happy with native or
having to set modular.
2011-09-10 16:30:02 +00:00
abs
1ad19bede6 Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
wiz
11d5907f04 Make USE_DESTDIR=yes default, and warn if a package is not converted
to destdir yet. Based on a patch by Greg Troxel.
2011-04-07 08:08:45 +00:00
sbd
58febb1f96 Remove the unneeded backslashes from the AIX OS_VERSION setting.
Closes PR/44421.
2011-01-31 08:18:44 +00:00
agc
231a384ac3 Add support for MirBSD to pkgsrc. Patches from Benny Siegert and
Thorsten Glaser.
2011-01-23 19:07:24 +00:00
bad
ff39331baa I'm fed up with having to waste time because PKG_DEVELOPER is "special" and
can't be disabled by setting it to "no" like the other variables.
Besides, flavor/pkg/metadata.mk has been expecting for a long time that "no"
is a valid value.

Make PKG_DEVELOPER DWIM.
2010-08-24 19:08:28 +00:00
sbd
22bbfb7a5b Add BUILTIN_PKGS with the "builtin" package names to the build information.
E.g if readline 6.0 and ncurses 5.7 are part of the system we get:
BUILTIN_PKGS=readline-6.0 ncurses-5.7
2010-05-19 09:12:15 +00:00
sbd
8930a996f5 Make all packages that set OSVERSION_SPECIFIC depends on pkgtools/osabi.
Also include a note about changes to OS_VERSION in bsd.prefs.mk
2010-04-30 03:29:55 +00:00
sbd
8b9a30da7a Set NATIVE_MACHINE_GNU_PLATFORM & MACHINE_GNU_PLATFORM using
NATIVE_MACHINE_GNU_ARCH & MACHINE_GNU_ARCH respectively.

Fixes PR pkg/43147.
2010-04-18 21:51:49 +00:00
obache
6ff567d03c Set LOWER_VENDOR=pc for Haiku/i386. 2010-02-06 11:40:22 +00:00
joerg
b01a53917d Enable USE_DESTDIR by default for PKG_DEVELOPER. 2010-01-29 17:20:51 +00:00
joerg
461b3cb5ab Retire USE_DESTDIR=full workaround. 2010-01-29 17:20:27 +00:00
dholland
e42534f09f minor English usage nit 2010-01-17 08:04:32 +00:00
obache
8ab5ae37c6 Add support of SSD/Linux.
* ROOT_GROUP=wheel, fixes PR#42073.
 * LOWER_VENDOR=ssd
 * adjust paths for some tools
2010-01-16 02:16:35 +00:00
joerg
8afaa63116 Add LP64PLATFORMS, a list of patterns for 64bit systems.
This allows easily disabling software that is not 64bit clean.
2010-01-06 18:21:44 +00:00
obache
440a7ccae8 Interix>=5.2 have libc.so.5.2, but no higer revision exists.
So gave up to detect OS_VERSION with shlib version if libc.so.5.2 exists.
2009-12-13 08:19:45 +00:00
tron
3df9e23baa Unconditionally set the default ABI to 32-Bit for Mac OS X Snow Leopard.
There are too many third party applications which don't build using
the 64-Bit ABI at the moment.

Approved by Alistair Crooks.
2009-09-24 17:24:13 +00:00
hasso
c28db14b6a Workaround for amd64 vs x86_64 mess on DragonFly as well. 2009-09-22 19:19:29 +00:00
tron
382da928ee Try again to fix Mac OS X Snow Leopard ABI issue (32-bit vs. 64-bit):
1.) Always set the "ABI" variable.
2.) Default to 64-bit mode if the machine is able to run 64-bit binaries.
    This seems to match the default behavior of Xcode (Apple's toolchain).
3.) Set "LOWER_ARCH" so it automatically evalutes to the correct value
    based on the ABI we are compiling for, not on based on the kernel
    the machine is running. This even works properly if the ABI is
    set in "/etc/mk.conf" or on the command line.

Thanks a lot to OBATA Akio for providing the crucial hint to get
this working properly.
2009-09-22 09:17:50 +00:00
tron
850c257200 Revert last change. It doesn't work properly because the "ABI" setting
is not defined that early as we have included neither "bsd.own.mk"
nor "mk.conf" yet.

We unfortunately cannot make these adjustments later because "bsd.own.mk"
and "mk.conf" would be processed with an incorrect value for
"MACHINE_ARCH".
2009-09-21 15:28:03 +00:00
tron
3a90ebc3b9 Try to fix Mac OS X Snow Leopard ABI issue (32-bit vs. 64-bit):
1.) Always set the "ABI" variable.
2.) Default to 64-bit mode if the machine is able to run 64-bit binaries.
    This seems to match the default behavior of Xcode (Apple's toolchain).
3.) Set "LOWER_ARCH" based on the ABI we are compiling for, not on
    based on the kernel the machine is running.

The "gnupg" package now builds for the 64-Bit API without extra tricks.
2009-09-21 10:56:08 +00:00
tron
2eafe6b808 Add support for X.org bundled with Mac OS X Snow Leopard. 2009-09-13 13:28:46 +00:00
joerg
7a696b5fe4 For developer mode, warn about packages without destdir support. 2009-05-23 23:48:44 +00:00
wiz
5721e5be04 Fix previous:
Actually check what you want to check -- both for "yes" and "no", not
only for "no".
2009-05-19 09:33:53 +00:00
joerg
bac1d48f72 Sanity check that USE_DESTDIR is either yes or no after downgrading
USE_DESTDIR=full. This makes setting USE_DESTDIR=full on the command
line an explicit error as side effect.
2009-05-17 23:44:53 +00:00
joerg
39688c1a79 Make USE_DESTDIR=full the default value and retire the option. 2009-05-09 14:59:08 +00:00
joerg
419c5ad860 Clear USE_LANGUAGES for meta packages. 2009-04-08 23:03:14 +00:00
joerg
28475e7501 Disable CHECK_PERMS by default for meta-packages. 2009-04-08 23:02:03 +00:00
cube
403e256ff6 Merge cube-native-xorg, so that pkgsrc-current can be used with the native
X.Org found in NetBSD-current.

Thanks a lot to all who helped, especially Matthias Scheler who did
repeated tests on Mac OS X and older versions of NetBSD to make sure the
support for those platforms wouldn't be broken (or at least, not fatally,
as I would still expect a few hiccups here and there, because there is
only so much one can test in such limited time).

On the infrastructure side, this branch brings pkgconfig-builtin.mk, in
order to write very easily new builtin.mk files.  It can actually handle
more than just pkgconfig files, but it will provide a version if it finds
such a file.  x11.builtin.mk has also been made more useful and now all
existing (and future!) native-X11-related builtin.mk files should include
it.
2008-10-05 21:36:32 +00:00
tron
ed5b1cca8d X11 is located in "/usr/X11" under Mac OS X Leopard, "/usr/X11R6" is just
a symlink. Use the correct directory because the buildlink framework will
otherwise remove compiler options like "-I/usr/X11/include/pixman-1".
2008-09-16 11:40:10 +00:00
tnn
b41681c446 Simplify the logic that avoids using compat_headers during bootstrap. 2008-06-22 16:25:32 +00:00
joerg
d092c3def3 Make it more explicit that PKG_DESTDIR_SUPPORT and as side effect
META_PACKAGE must be set before including bsd.prefs.mk.
2008-06-16 15:10:48 +00:00
joerg
3ba79d294e Move META_PACKAGE logic from bsd.pkg.mk to bds.prefs.mk, otherwise it
can't define destdir support.
2008-06-12 01:09:01 +00:00
tnn
27e964b1b8 Adjust path for compat_headers. 2008-05-24 03:40:35 +00:00
tnn
83290ab733 Daniel Horecki pointed out on irc that all USE_INET6 references have been
purged from pkgsrc-wip, so remove the support code for that.
2008-05-22 15:48:13 +00:00
tnn
1fdd0b4cdd Avoid pulling in pkgtools/posix_headers when bootstrapping on HP-UX. 2008-04-16 12:28:48 +00:00
tnn
3d06b8fdd5 Kill _OPSYS_NEEDS_XPKGWEDGE. It was only used by two platforms and they
will default to USE_XPKGWEDGE anyway.
2008-02-21 04:23:58 +00:00
tnn
1984db0948 Fix a miss that made the hpux bootstrap erronously pull in posix_headers. 2008-02-07 16:43:18 +00:00
tnn
24ede5a9fa Recognise Solaris/xen as i386 2008-02-06 18:23:47 +00:00
tnn
b748976509 Simplify LOWER_OS_VERSION handling by using the :tl modifier. 2008-01-29 13:04:05 +00:00
tnn
a970f2bc58 Provide a mechanism for enabling use of pkgtools/posix_headers. 2008-01-16 03:16:39 +00:00
joerg
f30bc9ac38 If LOWER_ARCH is x86_64 on Linux, force it for MACHINE_ARCH as well.
On a Core 2 Xeon, it breaks a lot of things otherwise as it ends up as
something like "Intel(R) Core(R)".
2008-01-12 14:40:21 +00:00
rillig
d3624fdf10 Made the .include directives simpler, since the directory of the
including file is always the first in the search path.
2008-01-04 01:46:24 +00:00
rillig
21cf860699 Accept all licenses in DEFAULT_ACCEPTABLE_LICENSES if the user is only
using the += operator, not the simple = operator, in mk.conf. That way
we can mark packages as having open source licenses without disturbing
the users.
2007-10-17 10:37:43 +00:00
tnn
85c3c33db0 The previous commit needs all platforms to be correct about
separating LOWER_OPSYS and LOWER_OPSYS_VERSUFFIX, since numbers are now
removed from LOWER_OPSYS when forming MACHINE_GNU_PLATFORM.
Fix the remaining to platforms: Interix and IRIX.
2007-10-16 11:51:21 +00:00
tnn
ae9f32a8e5 OSF1 and HPUX: Separate the version component from ${LOWER_OPSYS}
into ${LOWER_OPSYS_VERSUFFIX}.
When assigning GNU_MACHINE_PLATFORM, strip numerical characters from
LOWER_OPSYS. (final component is eg. osf5.1 not osf15.1)
2007-10-16 11:34:16 +00:00
joerg
0b4fba23f9 Ignore post-hyphen parts of the Linux kernel version similiar to
DragonFly and FreeBSD. It seems like Linux people love those...
This addresses the first part of PR 37100.
2007-10-13 19:38:53 +00:00