Commit graph

1275 commits

Author SHA1 Message Date
jlam
0cb3a96be8 Fix problem with Solaris' /bin/sh not accepting an empty list in a for
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>.
The suggested fix was applied.
2001-09-14 18:54:43 +00:00
jlam
fec4edb91a Document the new Motif-related variables. Deprecate USE_MOTIF in favor of
including motif.buildlink.mk, which contains more sophisticated and
complete logic for detecting the various Motif options that may be
installed.  Though deprecated, USE_MOTIF is still recognized, though it
does no more than include motif.buildlink.mk.
2001-09-14 01:52:40 +00:00
jlam
54914a30b8 Define USE_X11BASE instead of just USE_X11. This makes motif.buildlink.mk
match the behaviour of USE_MOTIF in setting PREFIX=${X11BASE}.
2001-09-14 01:35:02 +00:00
jlam
021aebeb7f Document MOTIFBASE, MOTIF12BASE, MOTIF_TYPE, MOTIF12_TYPE. 2001-09-13 22:53:20 +00:00
jlam
c433b6a0a1 Set MOTIF12_TYPE and MOTIF_TYPE so that they may be used by other package
Makefiles.
2001-09-13 22:42:59 +00:00
jlam
d4b1853531 Unify the special code to detect pre-installed Motif installations
(whether 2.0 or 1.2-compatible) into one file, motif.buildlink.mk.
lesstif12/buildlink.mk now assumes that if you include it, then you
actually want lesstif12.

To select that you want a Motif-1.2-compatible installation, define
USE_MOTIF12 in the package Makefile.  If MOTIF12BASE is also defined, then
assume it points to a valid Motif-1.2 installation.  Otherwise, auto-detect
whether /usr/dt is valid, or if we need lesstif12.
2001-09-13 22:06:33 +00:00
jlam
752176a4e6 To verify a Motif-2.0 installation, test for the presence of <Xm/Xm.h> and
<Xm/Gadget.h> instead of only <Xm/Xm.h>.  This differentiates between
Motif-2.0 and Motif-1.2 installations.
2001-09-13 19:32:11 +00:00
jlam
a8587a15c0 Clarify in the comments that this buildlink.mk file handles
Motif-*2.0*-compatible installations.
2001-09-13 19:22:17 +00:00
jlam
e598e5dd1a Switch default Motif type to OpenMotif, as it's a "real" Motif with full
functionality.  Default remains DT-Motif on Solaris.  This doesn't affect
users who already have LessTif installed, as motif.buildlink.mk will use
an installed Motif package in preference to the default.

I have compiled and run every package in pkgsrc (as of today) that uses
either USE_MOTIF or motif.buildlink.mk.  They all function as well or
better with OpenMotif as the installed Motif package as compared with
LessTif.  There was only one small API difference I detected between
LessTif and OpenMotif in <Xm/Text.h>, where OpenMotif's Text.h includes
<stdio.h> while LessTif's does not, but the only package that this
affected (graphics/tcm) was fixed.
2001-09-13 19:14:52 +00:00
jlam
4e15ec09d8 Set MOTIFBASE within the scope of the Motif-compatible package's
buildlink.mk as it uses values from the buildlink.mk for it's own value.
Also don't pass MOTIFBASE to the MAKE_ENV as it causes the correct package
buildlink.mk file to not be included.
2001-09-13 08:37:28 +00:00
jlam
fd9c024e89 Alter logic for choosing which Motif installation to use. It's now as
follows:

If MOTIFBASE is set, then assume it points to a valid Motif installation.
If MOTIF_TYPE is set, then use the named Motif installation.
If neither MOTIFBASE nor MOTIF_TYPE is set, then any pre-existing Motif
installation is used, whether it is in /usr/dt or ${X11BASE} or a pkgsrc-
installed Motif.
Lastly, default to ${MOTIF_TYPE_DEFAULT}.

This makes MOTIF_TYPE behave more like XAW_TYPE in that it explicitly
chooses the Motif installation to use.
2001-09-13 08:05:10 +00:00
agc
5d918d6e52 Add a just-in-time su mode for "make package" by factoring out the code
whcih does the su(1), and using that. Also make the deinstall target use
the same common code.
2001-09-12 10:38:12 +00:00
wiz
bd02cc8c26 Make print-PLIST work again if no linux=procfs mounted.
Patch by hubertf.
2001-09-11 16:41:36 +00:00
martin
478cff1cb0 Add support for two environment variables to help update all your
installed packages and only rebuild everything once:

 STOP_DOWNLEVEL_AFTER_FIRST
    if set makes "make show-downlevel" stop a bit earlier (since with the
    other one below you will be only interested in the first downlevel
    pkg found).

 REBUILD_DOWNLEVEL_DEPENDS
    if set forces the pattern match for dependencies to fail whenever the
    installed pkg is not the version in the makefile (i.e. "make show-downlevel"    would print a version mismatch for the dependecy). This causes all
    downlevel dependencies (and everything depending on them) to be rebuild.

Enhancements, like making this all work with make command line flags and
settings in /etc/mk.conf are welcome. A way to stop "make show-downlevel"
through all upper levels of recursion imediately would be very usefull too.
2001-09-10 20:03:17 +00:00
agc
603eae4669 Set the default value of WRKSRC in a slightly different way (from Hubert
Feyrer).
2001-09-10 09:56:05 +00:00
kei
dd9ba6a7a5 Define default value of WRKSRC again. It is required by the packages without
NO_WRKSUBDIR.
2001-09-10 02:46:15 +00:00
agc
a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00
jlam
ee5fa48af4 Document MOTIF_TYPE, used as a hint to select the Motif installation to
use.
2001-09-08 20:33:24 +00:00
jlam
78934af22c Separate out the Motif-checking logic from lesstif/buildlink.mk into a
separate file mk/motif.buildlink.mk.
2001-09-08 19:52:30 +00:00
jlam
70004632b2 Buildlink glue to provide strong-buildlinking for packages that use X11
(not counting packages using imake) whether or not xpkgwedge is installed.
2001-08-29 22:33:38 +00:00
zuntum
8a4bf4a469 Fix typo:
avi{...,avitype} -> avi{...,type}
2001-08-28 23:36:24 +00:00
tv
ea4db8a84e Since libtool has now been split, it's no longer necessary to have a
BUILD_DEPENDS on libtool for the USE_LIBTOOL/non-USE_LTDL case; instead,
just depend on libtool-base (thus skipping the libtool-info and libtool
package compilation where appropriate).
2001-08-27 15:05:54 +00:00
hubertf
72a293c7e6 print-PLIST: remove emul/linux/proc entries before sorting. No need to
waste processing time on data we're going to discard.
	     Pointed out by Tomasz Luchowski <zuntum@netbsd.org>.
2001-08-24 10:50:03 +00:00
abs
7cb5dda995 shuffle some whitespace to make it more obvious what is going on 2001-08-24 09:00:44 +00:00
hubertf
aeed7c63ec * When applying patches, also look in $LOCALPATCHES/$PKGPATH for
any local patches that the user wants to maintain outside of
   pkgsrc.
 * print-PLIST: ignore Linux procfs entries
2001-08-24 00:54:46 +00:00
abs
59ca687318 dirname is in /usr/bin. Now buildlink has a fighting chance on Linux 2001-08-23 16:54:09 +00:00
abs
8eee1675b7 gnu patch is used under Linux as well as Solaris 2001-08-23 16:37:27 +00:00
abs
482c9eeada '.endif' not '.fi' 2001-08-23 15:27:50 +00:00
jlam
33f148d48b Add a LIBOSSAUDIO definition that is passed through MAKE_ENV. 2001-08-23 13:31:00 +00:00
jlam
46a8516c88 Wrap this file in an .if ${OPSYS} == "NetBSD" so that it may be included
regardless of the operating system.
2001-08-23 13:12:59 +00:00
jlam
79fe9eff8c Create buildlink.mk files for the various Xaw libraries. Instead of
USE_XAW, a package Makefile may just include mk/xaw.buildlink.mk, which
pulls in the correct buildlink.mk file depending on the value of XAW_TYPE.
A package Makefile may also rely on LIBXAW being set to the correct
libraries.
2001-08-23 04:24:21 +00:00
jlam
64194bcde5 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
of x11.buildlink.mk, it still points to a working X11R6 hierarchy.
2001-08-23 04:21:02 +00:00
jlam
c2c4606f78 By default, don't use pkgtools/buildlink-x11 to cause packages that use
imake to be buildlinked as it's not necessary for those packages.  Many
thanks to Frederick Bruckman <fredb@immanent.net> for pointing this out.

This is accomplished by ripping out all of the Makefile logic related to
buildlink-x11.  It will be added back in a separate file (as noted by the
additional check for X11_BUILDLINK_MK, but will still not be the default.
2001-08-22 17:34:19 +00:00
jlam
14bff9af55 Change a = to a += to allow adding to the value of
BUILDLINK_CONFIG_WRAPPER_POST_SED.  Also some minor formatting changes.
2001-08-22 04:29:55 +00:00
tv
d4f0e2715c Remove "-" from default su command. It's more reliable to let some of the
environment be inherited from pkgsrc during an implicit su for install;
root's .-files may set variables that fiddle with how pkgsrc works.
2001-08-20 14:41:48 +00:00
zuntum
747a7f4680 Add AVIFILE_USE_QT for use by avifile package (as the moment only avifile-devel
uses it)
2001-08-19 08:47:57 +00:00
dogcow
10023af344 change BUILD_DEPENDS+= bzip2-0.9.0b:../../archivers/bzip2 to >=0.9.0b;
otherwise, extracts fail when bzip2-1.0.1 is installed.
2001-08-16 01:49:09 +00:00
agc
0671c7dbb5 The TCSH_STATIC mk.conf definition has been removed in favour of a
static-tcsh package.
2001-08-14 12:48:21 +00:00
skrll
6b1239edda Add GNU_ARCH.sparc64 entry.
This should fix pkg/13714 by Martti Kuparinen <martti.kuparinen@iki.fi>
2001-08-14 11:00:44 +00:00
jlam
cd4bfb05da Update build dependency on buildlink-x11 to >=0.7. 2001-08-08 07:24:57 +00:00
abs
b17128a573 ftp.digital.com seem to have dropped their cpan archive - switch to loaded 2001-08-01 16:18:18 +00:00
hubertf
e352dcca1e Sync locales from *.pkg.dist to *.x11.dist:
* NetBSD:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * Linux:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * SunOS:	$LOCALBASE/lib/locale	-> $X11BASE/lib/locale

Side effect of this is that print-PLIST doesn't print locale dirs
for X apps any more.
2001-07-30 15:09:23 +00:00
jlam
cb3a5c9daf Move -a from XMKMF_FLAGS to XMKMF. Thus, if a package wants to run
xmkmf without building all the Makefiles too, then it can set
XMKKF=${XMKMF_CMD} ${XMKMF_FLAGS} (same as default but without the -a).
2001-07-30 05:04:32 +00:00
tron
2c3778caca Remove obsolete variables "SQUID_HTTP_PORT" or "SQUID_ICTP_PORT". 2001-07-29 19:25:27 +00:00
jlam
ffdab7295f Add back commented code. 2001-07-27 16:51:30 +00:00
jlam
68e55782bb Separate library name replacement into two parts, pre-configure and
post-configure.  Also make sure ${BUILDLINK_DIR} is created prior to
trying to create the cookie files.
2001-07-27 16:41:16 +00:00
jlam
a9fa4a1635 On ELF, the linker extracts the soname from the specified libraries to
place in the linked object, so even if the library is a symlink with a
different name from the true library, the correct soname is recorded in
the object.  On a.out, there is no soname, so the linker just records the
specified library name + major number into the object, which can cause the
incorrect library name to be recorded.  Fix this problem on a.out by
replacing the specified library names with the true library names in all of
the Makefiles in a post-configure step.  Additional files may be added to
the list of files on which replacement is done by setting REPLACE_LIBNAMES
in each package that needs it.

This should fix pkg/13402 by John Klos <john@sixgirls.org>.
2001-07-27 14:30:16 +00:00
hubertf
822fcf2541 work around HAVE_BUILTIN_MESA not set when USE_GLX is set. 2001-07-27 12:19:15 +00:00
hubertf
04f42d0486 ZOULARISBASE: If there's no $LOCALBASE/bsd, try $LOCALBASE 2001-07-26 16:13:52 +00:00
wiz
e786e881f0 Force move new file over old one in REPLACE_PERL (at least one package
needs that).
2001-07-26 08:39:35 +00:00