Commit graph

71 commits

Author SHA1 Message Date
rillig
17e39f419d Fix indentation in buildlink3.mk files.
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was
reviewed manually.

There are some .include lines that still are indented with zero spaces
although the surrounding .if is indented. This is existing practice.
2018-01-07 13:03:53 +00:00
jperkin
1467aa06e7 Remove mk/find-prefix.mk usage from the textproc category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:53:42 +00:00
agc
2eddae48e5 Add SHA512 digests for distfiles for textproc category
Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-04 01:59:17 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
ryoon
2acbdad7bd Fix SCO OpenServer 5.0.7/3.2 build. 2014-07-18 10:21:36 +00:00
riastradh
cdf8a2031f Make xmlcatmgr and catalogs.mk cross-compilable. 2013-05-10 22:33:55 +00:00
asau
1f96787c11 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-25 06:55:37 +00:00
heinz
2ed94cb8b5 Added LICENSE. 2010-01-16 23:37:48 +00:00
joerg
76039544d1 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
joerg
73ae0afd90 Remove @dirrm entries from PLISTs 2009-06-14 18:17:11 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
340f0e1928 DESTDIR support. 2006-11-03 06:56:23 +00:00
dsainty
b75990990f Hmmm, revert previous for the moment. 'make show-var VARNAME=XML_ENTRIES'
with this change in-place suggests that sometimes the prefix IS added
in catalogs.mk (and presumably not in the client package, for some reason).
2006-10-12 08:56:56 +00:00
dsainty
0e6339d514 Don't pretend to automatically add ${PREFIX} to each XML_ENTRIES and
SGML_ENTRIES entry - it doesn't work.  Probably because expansion
in this context requires the variable to already be defined, which it
isn't.

This is lucky, because every package using catalogs.mk adds ${PREFIX}
itself to each entry.  So usually it gets added just the once.

The luck stops if you do something like: make PREFIX=/usr/pkgroot2

This makes the automatic ${PREFIX} insertion suddenly work AS WELL as
the client packages adding ${PREFIX} themselves.  We end up with
/usr/pkgroot2/share/xml/catalog containing lines like:

<nextCatalog catalog="/usr/pkgroot2/usr/pkgroot2/share/xml/docbook/4.3/catalog" />

... after installing textproc/docbook-xml.  This in turn causes
textproc/scrollkeeper to obscurely fail to build at configure time.
2006-10-12 08:34:56 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
jlam
e811379bc2 Pluralize INSTALL_TEMPLATE and DEINSTALL_TEMPLATE variable names as per
the pkglint warning:

    As {INSTALL,DEINSTALL}_TEMPLATE is modified using "+=", its name
    should indicate plural.

This does make the variables a bit more suggestive of the fact that they
hold lists of values.
2006-06-15 22:13:58 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
jlam
cf4dfe44a5 Use REQD_DIRS instead of MAKE_DIRS for directories under ${PREFIX} so
that these directories will be conditionally removed (based on reference
counts), regardless of the value of PKG_CONFIG.  Bump the PKGREVISION
for packages that were modified as a result.
2005-08-20 19:16:21 +00:00
jlam
bd2788d930 Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS
as the INSTALL and DEINSTALL scripts no longer distinguish between
the two types of files.  Drop SUPPORT_FILES{,_PERMS} and modify the
packages in pkgsrc accordingly.
2005-08-19 18:12:36 +00:00
rillig
09db5e7a58 Replaced $c with ${c} to make pkglint happy. 2005-05-22 21:54:59 +00:00
jlam
962622ba7d Rename mk/bsd.pkg.install.mk to mk/install/bsd.pkginstall.mk to
consolidate the files for that framework in one directory.
2005-05-11 02:07:37 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
jmmv
b4228a464e Use XMLCATMGR_PREFIX (defined in buildlink3.mk) rather than
BUILDLINK_PREFIX.xmlcatmgr because the latter is not defined if NO_BUILD
is set.

Fixes problems seen by abs@ (docbook-xml's catalog not appearing in the
system-wide catalog).
2005-03-29 14:39:15 +00:00
jmmv
988044b55f Use EVAL_PREFIX to determine where xmlcatmgr is installed (instead of
BUILDLINK_PREFIX.xmlcatmgr), and set the XMLCATMGR variable accordingly.
This is to let packages setting NO_BUILD to still be able to use this
variable (such as docbook-xml).

Fixes PR pkg/29789 by chris@.
2005-03-26 16:54:51 +00:00
jlam
da2fc85390 Don't check for USE_BUILDLINK3 anymore in these files. These are included
by other package Makefiles, and with the deprecation of USE_BUILDLINK3
support in the infrastructure files, these had the potential to break
existing packages.
2005-03-24 22:42:58 +00:00
agc
c71cac836a Add RMD160 digests to the SHA1 ones. 2005-02-24 14:48:39 +00:00
reed
476a159da8 Increase BUILDLINK_DEPENDS.xmlcatmgr to xmlcatmgr>=2.0beta1
which was the BUILDLINK_RECOMMENDED.xmlcatmgr. (Okay'ed by jmmv.)

I had noticed that old xmlcatmgr on my system (using IGNORE_RECOMMENDED)
was not good enough

The xmlcatmgr changes for 2.0alpha2 said that command line usage changed
in some scenarios.

Also remove BUILDLINK_RECOMMENDED.xmlcatmgr because now it was the
same (and is redundant for now).

I am not bumping in PKGREVISIONs because of this.  This happened
last January and is too late now and maybe I am the only person to
notice.
2004-10-09 23:16:14 +00:00
jmmv
ef3c79882c Some PRINT_PLIST_AWK magic for share/sgml and share/xml. 2004-09-02 11:38:07 +00:00
jmmv
6e41f0dee6 Update to 2.2:
Third stable version of the 2.x branch, released on 2004/09/01.

* Converted to use the GNU Build System (GNU Automake and GNU Autoconf).

* Because of the previous change, the build has been hopefully fixed in
  several platforms, specially under Irix 6.5 using the MIPSpro C compiler.
2004-09-01 09:43:16 +00:00
wiz
0ddc5bd083 Really test CC_VERSION, as previous commit message suggests. 2004-07-04 08:43:03 +00:00
grant
9687065817 test CC_VERSION instead of USE_MIPSPRO. 2004-07-03 14:00:28 +00:00
minskim
4ae0015acd Quote arguments properly for xmlcatmgr. OK'ed by jmmv@. 2004-05-06 14:39:05 +00:00
jmmv
45c560ba70 Update to 2.1:
Second stable version of the 2.x branch, released on 2004/05/02.

* Fixed an attribute name when parsing the `uri' tag in XML catalogs; it
  expects `name', not `uriId'.

* Fixed a warning message when removing entries from an XML catalog.

* Fixed several warnings when building mem.c code in a system with glibc
  2.[23].x and -O2 enabled.

* Added the `-p' flag which changes the behavior of the `add' action so
  that new entries are prepended instead of appended.

* Improved consistency of the lookup action so that it behaves equally
  for SGML and XML catalogs (this includes making XML lookup show all
  matching entries).

* Documentation is now installed in an unversioned directory by default.
2004-05-02 10:29:21 +00:00
wiz
61503b91f8 Remove support for bl2 since remaining packages
using this have been converted to bl3.
2004-04-28 07:11:44 +00:00
wiz
f6a39b9dce Re-instate for now (catalogs.mk _sets_ USE_BUILDLINK2). 2004-04-27 17:28:50 +00:00
wiz
f7906f6e94 Unused. 2004-04-26 09:21:57 +00:00
jschauma
ff5a7875da The MIPSPro compiler chain needs a "-c99" flag if the code claims to
be C99 code (for example: use of stdbool.h).  This allows this package
to build under Irix 6.5 using MIPSPro.
2004-04-22 13:11:58 +00:00
jmmv
1b65d92b2c During print-PLIST, print comments and do not remove the catalog files under
share/(xml|sgml) nor these directories themselves.
2004-04-12 21:12:44 +00:00
jmmv
48c209b63d Update to 2.0:
First stable version of the 2.x branch, released on 2004/03/26.

* Fixed build under HP-UX and Tru64 Unix.

* Fixed a crash that occurred during parsing of some malformed XML
  catalogs.
2004-03-28 19:51:06 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
jlam
beb6679f7f Missing an :M operator on the match for "yes". 2004-02-01 10:17:21 +00:00
jlam
7c294cef3b Preserve previous behaviour by unconditionally setting USE_BUILDLINK2 if
we're not already using buildlink3.
2004-02-01 10:12:58 +00:00
jlam
cc930177c2 Add a buildlink3.mk file for xmlcatmgr and teach catalogs.mk to use the
buildlink3.mk file if USE_BUILDLINK3 is "yes".
2004-02-01 10:11:39 +00:00
rh
2e520ef7b9 Don't force binary package consistency through BUILDLINK_DEPENDS, we now
have BUILDLINK_RECOMMENDED for this.
2004-01-24 01:31:45 +00:00