Commit graph

88 commits

Author SHA1 Message Date
jperkin
9bd8757b52 Remove overrides for OPENAL_INCLUDE_DIR and OPENGL_INCLUDE_DIR. These
conflict with pkgsrc versions of those packages, and do not interact well
with the wrappers anyway as cmake will perform simple file-based tests for
headers but the compiler will be unable to find them.
2016-02-24 15:24:56 +00:00
joerg
ee75c51786 Add a new override mechanism for depcomp, similar to the existing
overrides for libtool. This allows us to easily get the fixed version
from our libtool in place without having to hunt down for the specific
bugs in random places. Disable the override explicitly in clisp, which
installs a copy without explicitly depending on libtool at run time.
2016-02-23 15:19:23 +00:00
joerg
81428e7010 Drop _LIBTOOL and _SHLIBTOOL and make LIBTOOL and SHLIBTOOL point to the
wrapped version by full path. This fixes some cases where the wrappers
have been bypassed. lang/lua52 triggered the investigation as it failed
to link against libreadline, which should have been translated to
libedit. Tested by jperkin and myself with full bulk builds.
2015-05-04 19:23:19 +00:00
obache
e0b1a878dc Introduce CMAKE_USE_GNU_INSTALL_DIRS,
If set to yes, set GNU standard installation directories with pkgsrc
configured settings for cmake GNUInstallDirs module.
The default is yes.
2014-09-06 01:50:38 +00:00
wiz
785572fa7f Add CMAKE_PREFIX_PATH variable that can be used by packages that install
their files in non-standard locations (e.g., qt5).
From Niclas Rosenvik.
2014-08-23 19:26:07 +00:00
obache
5dccb01f08 Prevent to update timestamp of configure script with pkgsrc specific override.
It may be triger of unwanted rebuild.
2014-08-23 03:00:18 +00:00
wiz
2466e284ca iRename SUBST_CLASS to _pkgconfig (adding a '_') to avoid conflicts
with packager-chosen prefixes (as with portaudio-devel recently).
2014-07-21 12:10:40 +00:00
obache
36a4d44c3c Introduce HAS_CONFIGURE_LIBDIR and GNU_CONFIGURE_LIBDIR for gnu configure
--libdir handling, same as for --mandir and --infodir.

Currently, HAS_CONFIGURE_LIBDIR=no by default unless libdir related variables
are set, but it will be switched to "yes" after all packages have been checked
(and SET_LIBDIR will be deprecated).
2014-01-28 11:32:30 +00:00
wiz
3099b2b8eb Remove config.rpath override file and related code.
This file is from libtool-1.x, which is not in pkgsrc any longer
(using libtool-2.x since 2009). Also, it was only used for packages
using autoconf-2.13 AND libtool; I found three packages in pkgsrc with
that combination, and all of them still build on NetBSD-6.99.24/amd64
after this change.
2013-10-13 10:10:05 +00:00
obache
4001756913 tell PKGMANDIR, PKGINFODIR and PKGLOCALEDIR to cmake. 2013-10-08 12:03:53 +00:00
rillig
7af0bf94c6 _PKG_DEBUG and _PKG_SILENT have been deprecated since 2007. 2013-08-31 20:22:49 +00:00
wiz
220e245fa7 Remove GNU_CONFIGURE_LIBDIR.
Rationale: undocumented, easily replaced with "CONFIGURE_ARGS+=--libdir="
and only used by 10 packages.
2013-06-12 12:35:35 +00:00
mspo
10de3cec11 use improved version from apb, works with parallel/paexec 2013-04-18 00:24:48 +00:00
mspo
f58fdbac37 add some tricks to handle #!/usr/bin/env, do please improve 2013-04-02 00:28:57 +00:00
markd
977ba65ea4 In pkgsrc, 64bit linux libraries should install into lib rather than lib64.
Make sure cmake does this.
2013-02-22 22:45:12 +00:00
jperkin
6f20e12e40 Fix indent, no functional change. 2012-06-01 12:52:37 +00:00
sbd
c29af2ca25 Add REPLACE_CSH as a replace interpreter template. 2012-02-06 06:18:36 +00:00
sbd
526e041c4b Add SET_LIBDIR variable which if non-empty will set GNU_CONFIGURE_LIBDIR to
the default libdir (and there for be passed to ./configure), this is the
best way to deal with the 'lib64' problem on x86_64-linux systems (with
most some packages).

Also add SET_LIBDIR, GNU_CONFIGURE_LIBDIR, and  GNU_CONFIGURE_LIBSUBDIR to
_PKG_VARS.gnu-configure
2012-01-26 06:33:43 +00:00
sbd
7cee03ab00 Add the convenience variable GNU_CONFIGURE_LIBSUBDIR. 2012-01-17 21:19:43 +00:00
sbd
7d410a233f Add the GNU_CONFIGURE_LIBDIR variable, if defined it will be passed to gnu
configure scripts as the value of --libdir.

On Linux x86_64 set GNU_CONFIGURE_LIBDIR to ${GNU_CONFIGURE_PREFIX}/lib,
this will stop package trying to install into ${PREFIX}/lib64.
2012-01-17 21:10:24 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
wiz
261569f88c Remove reference to REPLACE_PYTHON -- this file doesn't support it
(look in lang/python/application.mk). Noticed by Rhialto in PR 44868.
2011-05-20 15:02:27 +00:00
agc
e81f515156 Add support for MirBSD to pkgsrc. Patches from Benny Siegert and
Thorsten Glaser.
2011-01-23 19:07:24 +00:00
adam
81c4b7e7cf On Mac OS X, use system OpenGL and OpenAL 2011-01-12 07:21:30 +00:00
adam
a72b9d7580 On Darwin, libraries need correct install_name 2010-10-19 09:45:16 +00:00
joerg
2b4c4d15f1 Always set both --host and --build, a number of programs want to use
a cross-compile like environment otherwise.
2009-09-12 00:52:45 +00:00
rillig
14faa7757b One more variable for show-all-gnu-configure. 2008-11-29 12:29:35 +00:00
markd
29286b7c5f Tell cmake not to muck with rpath's as it seems to interact badly with
pkgsrc.
2008-09-13 11:09:58 +00:00
rillig
3425bf4596 Oops, fixed a typo. 2008-02-13 09:13:31 +00:00
rillig
102b3c5eb6 Documented the interface to packages. Renamed the targets to emphasize
that they are private to the current file.
2008-02-13 09:12:15 +00:00
rillig
66736dde43 Replaced _PKG_SILENT and _PKG_DEBUG with RUN. 2008-02-07 21:36:13 +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
abs
dc2c1fec59 remember to close() the "ls -l " exprs, lest we run out of file descriptors 2007-12-20 18:51:18 +00:00
markd
4767fe7dc4 Doing USE_TOOLS+=cmake in the configure stage is too late so move it
to tools.  Also cmake wants cpack to exist in the same directory so
toolise it and make cmake and cpack imply each other.
2007-12-18 10:18:39 +00:00
markd
ec09af76f0 Add support for cmake as a tool (USE_TOOLS+=cmake) and for using it in
the configure stage of a build (by setting USE_CMAKE=yes).
2007-12-12 01:00:38 +00:00
rillig
9fab8079e7 Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needs
it. It had only been used to change the "nerrors" variable in bulk
builds, but this variable is not used further anyway.
2007-12-01 11:11:53 +00:00
rillig
3a2689c94c Added keywords for "bmake help". 2007-11-28 08:48:11 +00:00
rillig
e27c4fc2e0 Moved the pre-configure-checks-hook below do-configure-pre-hook, so that
REPLACE_INTERPRETER takes place before the portability check. Shell
scripts that will use bash anyway do not need to be checked for
portability problems.
2007-11-01 08:37:24 +00:00
joerg
29777c8ec5 Begin adding some of the basic, non-intrusive pieces of the
cross-compile support.

- NATIVE_MACHINE_GNU_ARCH, NATIVE_LOWER_ARCH, NATIVE_MACHINE_ARCH,
  NATIVE_MACHINE_PLATFORM and NATIVE_MACHINE_GNU_PLATFORM work
  like the counterpars without NATIVE_ prefix. Expansion of
  NATIVE_LOWER_ARCH and NATIVE_MACHINE_ARCH is enforced early,
  so that MACHINE_ARCH can be overriden in mk.conf to specify the
  target architecture.
- Provide a default of NO for USE_CROSS_COMPILE. This will be the
  main switch to activate cross-compiling and adding it now makes
  it possible to merge more of the patches for specific packages.
- Set --build and --host when cross-compiling, the former using the
  just added variable NATIVE_MACHINE_GNU_PLATFORM.

Supported-by: Google SoC 2007
Looks good: jlam@
2007-08-01 16:14:17 +00:00
joerg
f493ba1049 Add REPLACE_KSH similiar to REPLACE_BASH and REPLACE_SH as the
CHECK_INTERPRETER bulk build has shown a surprising number of
packages using it.
2007-07-28 00:42:33 +00:00
rillig
c6b4400da0 Documented PKGCONFIG_OVERRIDE and PKGCONFIG_OVERRIDE_STAGE. 2007-07-25 18:07:34 +00:00
jlam
13ed6251eb No longer pass install_sh in the environment to GNU configure scripts.
We fix GNU configure script stupidity by directly replacing the stock
install-sh script provided by the software with the BSD install-compatible
sysutils/install-sh script.

A new package-settable variable comes to life:

INSTALL_SH_OVERRIDE is a list of files relative to WRKSRC which
	should be overridden by the install-sh script from
	sysutils/install-sh.  If not defined or set to "no", then
	no files are overridden.

	Possible values: no, defined, undefined.

	Default value: defined when GNU_CONFIGURE is defined, undefined
	otherwise.

Get rid of the install_sh tool, which is no longer needed.
2007-07-12 18:59:15 +00:00
rillig
431fbeeba1 For GNU-style configure scripts, the environment variable install_sh
must point to a shell script (as the name implies), not to a binary.
2007-06-04 12:10:20 +00:00
rillig
66bf916302 For all those who are interested in the inner workings of pkgsrc, there
is a new target "show-all" that fits to the existing "debug",
"show-tools", "show-vars" targets. It prints a list of the variables
that make up the public interface to pkgsrc. Running this target is
especially useful if you want to do some things, you know that they must
have been implemented but you don't know what it is called. It also
shows the "class" of a variable (user-defined, package-defined,
system-defined).
2007-03-15 22:54:24 +00:00
rillig
1de2f00cda Moved the definition of CONFIG_SHELL from gnu-configure.mk to configure.mk.
Improved the documentation.
2007-03-15 11:20:40 +00:00
rillig
18851a0799 Better documentation. 2007-03-08 23:58:20 +00:00
rillig
df8fff7998 Renamed the configure-cookie target to _configure-cookie. 2007-03-07 01:27:27 +00:00
wiz
a26ed30484 Update SCRIPTS_ENV description. 2007-03-01 18:30:36 +00:00
rillig
ec83695b2a Added the variable CONFIG_SHELL_FLAGS that is intended to be set to -x
on the command line when nothing else helps.

Added the configure-help target that runs configure --help.
2007-01-08 02:26:03 +00:00
rillig
0cbec72809 Documented OVERRIDE_GNU_CONFIG_SCRIPTS. 2007-01-07 08:50:38 +00:00