Commit graph

93 commits

Author SHA1 Message Date
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
wiz
2392e577cd Refer doc/pkgsrc.html instead of Packages.txt (HOMEPAGE variable). 2005-05-07 22:24:04 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
jschauma
94c59e608d On IRIX, only link in ABI specific files to avoid conflicts lateron 2005-03-07 04:03:09 +00:00
wiz
8a95eb4505 Instead of disabling the randrext and Xrandr packages on systems
which have no extutil.h header file, just make them depend on the
xextensions package which provides it.
Bump PKGREVISION for Xrandr and randrext.
Add builtin.mk file for xextensions.

jlam says ok.
2005-03-05 18:16:21 +00:00
grant
e52a4d26ee turn off shlib dependency checking for openwin, which can have X shared
libraries dependencies missing from a "normal" installation.
2005-02-20 07:48:48 +00:00
grant
8c5915c9d8 add support for OSF1, from by Tobias Nygren. 2004-11-20 06:34:26 +00:00
sketch
98543b64e0 Update comment to reflect reality regarding bumping buildlink3 depends. 2004-11-11 18:17:52 +00:00
sketch
bb84fbf730 Require x11-links-0.24 for the fixed OpenWindows headers. 2004-11-11 18:17:07 +00:00
sketch
062cdc890a Bump package version rather than PKGREVISION as this is software we maintain
ourselves.
2004-11-11 18:04:42 +00:00
sketch
d6df3b1fa5 Fix checks for __STDC__ in older versions of OpenWindows headers so that the
SunPro compiler gets the correct syntax for macro concatenation.

Bump PKGREVISION.
2004-11-11 17:44:39 +00:00
jlam
96580e486b CREATE_X11LINK is used to generate the symlinks in the work directory
corresponding to the X11 files.  This can be defined to be more complex
script than the default of "${LN} -fs $$src $$dest" if some of the files
need to have transformations performed on them.
2004-11-11 15:51:14 +00:00
reed
ccd22e151d Improved DESCRiption (as discussed with maintainer). 2004-10-01 03:00:47 +00:00
grant
9d4a06c7ba handle X.org 6.7 and treat it the same way as XFree86 4.4 for the
moment.
2004-07-24 07:00:39 +00:00
heinz
23c1021c80 Use option "-r" instead of "-e" for ${TEST} since this is not portable to some
operating systems (eg UnixWare).
2004-05-15 13:57:12 +00:00
jlam
88588c9c0b Use "XF86_VERSION" instead of "_XF86_VERSION" as the variable name since
we use it in several places within pkgsrc as a public variable.
2004-03-30 17:04:06 +00:00
jlam
6d92080aa2 Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links)
use the new format correctly.
2004-03-29 05:43:28 +00:00
jlam
e6bfd3c6c2 Force all of the headers and libraries to be symlinked into
${BUILDLINK_X11_DIR}, even in the "pkgviews" case.  This makes building
X11 packages work with pkgviews again after the X11_TYPE-related changes.
2004-03-17 06:01:17 +00:00
recht
b4268706cf Xrandr won't build without the X Extension library which is only present
in XFree86>=4.3; ignore it when checking dependencies or buildlinking.
Skip also randrext (Xrandr's header files) in this case.

The patch agains x11-links' builtin.mk is a slightly modified version of
the patch jlam@ posted in:
http://mail-index.netbsd.org/tech-pkg/2004/03/15/0001.html

ok'd by jlam@
2004-03-15 17:30:18 +00:00
tron
de6e90ca8f Fix recursive variable assignment. 2004-03-15 10:35:13 +00:00
jlam
cbf4f170bc builtin.mk file to hold information about the built-in X11R6
implementation.
2004-03-15 01:07:59 +00:00
jlam
0190c06a95 Garbage collect USE_X11_LINKS, which was used solely to avoid
dependency loops, and which are now handled in a more general way
by bsd.buildlink3.mk.
2004-03-11 05:16:49 +00:00
jlam
d62c2888d0 Add a buildlink3.mk file for pkgtools/x11-links. This isn't meant to be
included manually by a package, but is intended for inclusion by
bsd.buildlink3.mk.  It will be used to avoid special-casing x11-links
when creating symlinks into the buildlink directory.
2004-03-11 00:50:14 +00:00
jlam
05cce146f3 Don't cat nonexistent files during the build. 2004-03-11 00:47:01 +00:00
jlam
964efcc465 Catch up with removal of BUILDLINK_{IS,USE}_BUILTIN. 2004-03-10 18:35:32 +00:00
jlam
b199b7e4d3 Update to x11-links-0.23: catch up with Xft2/buildlink3.mk changes. 2004-02-17 16:50:26 +00:00
jlam
c7ee88eb6d Update pkgtools/x11-links to 0.22. Changes from version 0.21 include
handling the built-in expat libraries and headers.
2004-02-17 08:26:25 +00:00
jlam
b4a03adcb9 Update pkgtools/x11-links to 0.21. Changes from version 0.20 include
catching up to changes to xcursor, Xrender, render, Xrandr, and randrext
by including their buildlink3.mk files.
2004-02-16 23:39:36 +00:00
jlam
23e22dc805 This package uses no compilers. 2004-02-10 23:00:05 +00:00
abs
f7ed72c42e Remove 'USE_LANGUAGES=' as at least on my system 'make install' compiles up
something to check the shared library type.
(An entertaining way to pick up on issues seems to be to set CFLAGS to include
an argument not understood by the base compiler, such as '-march=pentium3')
2004-02-03 12:44:20 +00:00
jlam
8fb6f3f443 These packages don't use any compilers, so set USE_LANGUAGES to an empty
value.
2004-02-02 10:08:43 +00:00
recht
d04d6737d8 Add missing extensions/extutil.h and bump version to 0.20.
This fixes the build of Xrandr.
ok'ed by wiz@
2004-01-31 21:58:52 +00:00
xtraeme
1d202088d2 Revert previous commit, it didn't work for binary packages. Noted by
Julio Merino.
2004-01-26 10:10:56 +00:00
xtraeme
8c9cfcd48d Add dependency on XFree86-libs if ${X11BASE}/include/X11/X.h doesn't
exists and we are using XFree86 packages from pkgsrc.
2004-01-25 07:43:54 +00:00
agc
3ad1bdbf06 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:18:15 +00:00
veego
51461ce694 Update for XFree 4.4.0 RC2:
Added shared libraries for libGLw and a different location for ft2build.h.

Version bumped to 0.19.
2003-12-19 19:19:15 +00:00
tron
d2716ca53f XFree86 4.3.0 and above have "libXrender.so.1.2". Problem pointed on by
Bernd Ernesti.
2003-10-20 16:11:16 +00:00
grant
9ff28ef7ff s/${X11BASE}/$${X11BASE}/ in COMMENT 2003-10-19 06:28:08 +00:00
tron
9df403713b Adapt to latest shared library changes in NetBSD's X11 sources and
XFree86-current.
2003-10-18 18:23:03 +00:00
veego
4d271b3397 Update pkgtools/x11-links to 0.16.
Changes include supporting XFree86-4.3.99.14 aka XFree86-current.
Added some new library versions and some freetype2 include files.
And bump the required version number in the bsd.buildlink mk's.
2003-10-13 15:55:11 +00:00
mycroft
09d5e8ff49 Catch up. 2003-10-06 03:00:32 +00:00
jlam
87ce557d03 Document why we include the various buildlink3.mk files. 2003-09-28 12:45:04 +00:00
grant
a3fabf7b04 test's -e operator doesn't work with the sh built-in test on Solaris,
use ${TEST} -e instead.

noted by mlh@goatnospamhill.org on tech-pkg@.
2003-09-19 01:29:00 +00:00
jlam
76fbfed4cf Use pax(1) instead of "cp -R" to install so that we ensure symlinks are
copied instead of followed.
2003-09-09 09:02:30 +00:00
jlam
addc4bd8a7 Update pkgtools/x11-links to 0.14. Changes include supporting
XFree86-4.3.x (or NetBSD-current xsrc) and listing more files for
XFree86 on Darwin.
2003-09-07 21:53:02 +00:00
jlam
86d4fea164 Check that Mesa/GLU is builtin. 2003-09-07 19:40:42 +00:00
jlam
515d606ffb Add back the GLU files and some additional files in XFree86-4.3.x. 2003-09-07 19:30:23 +00:00
seb
94aba904f2 Fix EXTRACT_ONLY. (Johnny please get some sleep :) 2003-09-02 10:41:38 +00:00
jlam
b191d33c41 Update pkgtools/x11-links to 0.13. This package now uses buildlink3
to build.  I'm bumping the version number just in case the installed
package is different from version 0.12 (I can't test on different
systems).
2003-09-02 07:14:39 +00:00
jschauma
aa0aa518ac Finally remove support of Mesa 3.4.1 completely as discussed at length
on tech-pkg@ at various times.  This means that regardless of what kind of
GL support comes with X11, if a package depends on GL, Mesa 5.0.1 (or higher)
will be installed into ${LOCALBASE}.

Some troubleshooting after the latest patches by Krister Walfridsson.
2003-08-26 01:43:48 +00:00