Commit graph

48 commits

Author SHA1 Message Date
jlam
08c60ab83d Coalesce the common makefile code in the builtin.mk file that inspect
the X11 distribution using imake into mk/buildlink3/imake-check.mk.
imake-check.mk calls out to a helper shell script mk/buildlink3/imake-check
that generates the required Imakefiles and runs imake.  Remove the
now extraneous builtin-imake.mk files as the builtin.mk files can now
contain the name of the imake symbol to check.
2005-06-03 19:12:49 +00:00
jlam
c85165ac07 Only check for the existence of the first word of ${IMAKE} since it may
contain a command plus arguments.  We use the standard idiom to extract
the first word of a list stored in a make variable:

	VAR_CMD=	${VAR:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}

XXX This can be replaced with a more succinct use of variable modifiers
XXX when we update the bootstrap bmake to match the latest NetBSD make
XXX sources, i.e.:
XXX
XXX	VAR_CMD=	${VAR:[1]}
2005-06-03 17:02:36 +00:00
jlam
88aeda0672 Don't require a read-write pkgsrc tree when invoking imake. We avoid
this requirement by using TMPDIR as the read-write location demanded
by using imake.
2005-06-03 16:03:09 +00:00
jlam
7debfabe11 Use IMAKE_MAKE instead of MAKE to process the makefile generated by imake. 2005-06-01 18:33:02 +00:00
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
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
c71cac836a Add RMD160 digests to the SHA1 ones. 2005-02-24 14:48:39 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
jlam
1a116202be Don't have a comma end an enumeration list, which is apparently not
allowed by GCC with -pedantic -ansi.  Bump the PKGREVISION.
2004-09-15 17:09:37 +00:00
recht
3a0afc4940 update to expat-1.95.8
Release 1.95.8 Fri Jul 23 2004
        - Major new feature: suspend/resume.  Handlers can now request
          that a parse be suspended for later resumption or aborted
          altogether.  See "Temporarily Stopping Parsing" in the
          documentation for more details.
        - Some mostly minor bug fixes, but compilation should no
          longer generate warnings on most platforms.  SF issues
          include: 827319, 840173, 846309, 888329, 896188, 923913,
          928113, 961698, 985192.
2004-08-05 22:16:59 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
reed
701d395e11 Bump BUILDLINK_DEPENDS.expat from 1.95.4 to 1.95.7.
The expat-1.95.6nb1 package has libexpat.so.4.0
and expat-1.95.7 has libexpat.so.5.0.

I noticed this because I had a fontconfig package built against
libexpat.so.4 which installed fine on another box
with expat-1.95.7 (libexpat.so.5). The fontconfig package
should have required the expat as now available in pkgsrc.

Please note that I have not bumped PKGREVISIONs for all
the packages depending on this.
2004-04-08 16:35:21 +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
d0b4c54eb6 Split out the code that deals with checking whether the software is
built-in or not into a separate builtin.mk file.  The code to deal
checking for built-in software is much simpler to deal with in pkgsrc.

The buildlink3.mk file for a package will be of the usual format
regardless of the package, which makes it simpler for packagers to
update a package.

The builtin.mk file for a package must define a single yes/no variable
USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether
to use the built-in software or to use the pkgsrc software.
2004-03-10 17:57:14 +00:00
drochner
47ccf79537 update to 1.95.7
bugfixes and compatibility improvements
2004-03-02 18:13:58 +00:00
jlam
dc4843e2c1 Only USE_X11 if we're using the XFree86-provided expat. 2004-02-20 23:14:14 +00:00
jlam
bf6e059da4 Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
2004-02-18 16:35:27 +00:00
recht
dcd1511f75 Fix PKGSRCDIR: expat is in "textproc" and not "x11". 2004-02-17 10:55:02 +00:00
jlam
6f2f1ddf6d We default to full, not build, dependencies. 2004-02-17 08:31:19 +00:00
jlam
c153373041 Check for the version of the XFree86-provided expat software. 2004-02-17 08:24:30 +00:00
jlam
3ebe053d90 LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:49 +00:00
grant
60ad86155b replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:06:57 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
jlam
fe69a47fe5 bl3ify 2004-01-05 23:34:03 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
grant
e52e828f93 expat >= 1.95.4 provide libexpat.4 which other packages need, so bump
BUILDLINK_DEPENDS accordingly.

fixes build problems observed by a couple of users on tech-pkg,
well as fixing PR pkg/21325.
2003-10-11 07:10:52 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jlam
e73435b077 Bump PKGREVISION of textproc/expat to 1: fix an obvious C bug where types
should be declared/defined before they are used.  This should fix errors
of the form:

.../expat.h:657: use of enum `XML_Status' without previous declaration
.../expat.h:736: multiple definition of `enum XML_Status'
2003-02-05 03:57:13 +00:00
drochner
28ea419445 distfile has changed, pointed out by Martti Kuparinen 2003-01-30 11:20:49 +00:00
drochner
2551ff7539 update to 1.95.6
changes:
-Added XML_FreeContentModel().
-Added XML_MemMalloc(), XML_MemRealloc(), XML_MemFree().
-Enhanced the regression test suite.
-bugfixes
2003-01-30 10:49:13 +00:00
wiz
44809c3ab4 Unused. 2002-10-09 19:32:10 +00:00
martti
305a8aeca6 Use correct version number for libs (hi drochner!) 2002-09-18 05:46:35 +00:00
drochner
b75858a853 update to 1.95.5
changes:
Added XML_UseForeignDTD() for improved SAX2 support.
Added XML_GetFeatureList().
Defined XML_Bool type and the values XML_TRUE and XML_FALSE.
Use an incomplete struct instead of a void* for the parser.
Fixed UTF-8 decoding bug that caused legal UTF-8 to be rejected.
Finally fixed bug where default handler would report DTD events that were
  already handled by another handler. Initial patch
  contributed by Darryl Miller.
Reduced line-length for all source code and headers to be no longer than 80
  characters, to help with AS/400 support.
Reduced memory copying during parsing (SF patch #600964).
Fixed a variety of bugs.
2002-09-17 21:06:15 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
drochner
794047667e update to 1.95.4
changes since 1.95.2:
-Added the XML_ParserReset() API function
-Allow xmlwf to read from standard input
-Install a man page for xmlwf on Unix systems
-bugfixes
-unrelated portability enhancements
2002-08-20 11:46:49 +00:00
abs
dbfb14322d Handle gcc pre-2.8 - do not use -fexceptions in that case.
So I found a 1.3 box running pkgsrc and wanted to update apache...
2001-11-22 00:55:48 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
jlam
a6e91a2b32 Mark as USE_BUILDLINK_ONLY as this package is strongly-buildlinked. 2001-10-01 03:07:21 +00:00
jlam
3910aab2a0 Add a buildlink.mk for for use by other package Makefiles. Closes
pkg/13784 by Martti Kuparinen <martti.kuparinen@iki.fi>.
2001-09-14 07:40:36 +00:00
drochner
3daf6f7011 update to 1.95.2
changes:
        - Added compile-time constants that can be used to determine the
          Expat version
        - Removed a lot of GNU-specific dependencies to aide portability
          among the various Unix flavors.
        - Fix the UTF-8 BOM bug.
        - Cleaned up warning messages for several compilers.
        - Added the -Wall, -Wstrict-prototypes options for GCC.
2001-08-07 11:16:55 +00:00
dillo
63aee661c5 install the html documentation, bump version to 1.95.1nb1 2001-05-15 10:07:17 +00:00
skrll
88af130dfa Move to sha1 digests, and add distfile sizes. 2001-04-20 15:04:54 +00:00
agc
bbc67fac91 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:53:33 +00:00
drochner
6be8675f53 This is James Clark's expat XML parser library in C. It is a stream oriented
parser that requires setting handlers to deal with the structure that the
parser discovers in the document.
2001-03-07 12:13:04 +00:00