Commit graph

81 commits

Author SHA1 Message Date
joerg
8f60a38025 Use SUBST framework, patch files directly. 2006-01-05 21:21:54 +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
joerg
a2c4d96e62 Use the FreeBSD rules for DragonFly as well, just like Qt 3.3 does.
Streamline FreeBSD/DragonFly config handling with NetBSD, this should
allow Xorg from pkgsrc to work properly.

Discussed with jlam@, but not tested on FreeBSD.
Silence from freebsd-pkg-people@.
2005-10-04 19:34:36 +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
wiz
393af94024 Add RMD160 checksums to the SHA1 ones. 2005-02-23 17:36:09 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +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
snj
a261ff5198 No longer used. 2004-05-03 05:00:18 +00:00
snj
419ff11844 Whitespace fixes. 2004-04-11 22:46:49 +00:00
snj
c249bbad56 Convert to buildlink3 and remove some unnecessary CONFIGURE_ARGS. 2004-04-11 22:45:44 +00:00
snj
5552c6dad8 FIX_RPATH has been gone for 4 months. 2004-04-11 20:55:43 +00:00
jlam
75f431d969 PKGLIBTOOL and PKGSHLIBTOOL are no more. 2004-02-08 03:00:29 +00:00
grant
9b4feec99c replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:30:32 +00:00
agc
24a46ed346 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:28:26 +00:00
jschauma
6048206d2c As pointed out by jlam:
bump PKGREVISION on packages depending on graphics/glu due to latest shlib
changes there.
2003-11-30 22:58:40 +00:00
dmcmahill
66ec3b8e56 include stdlib.h to get a prototype for getenv(). Fixes recently noted
bulk build problems on alpha.
2003-11-25 23:05:24 +00:00
markd
57bf057050 Add Xft2/buildlink2.mk to match the same change made to the Makefile
back in June.  Should fix the kdelibs2 build problem seen in Hubert's
bulk build.
2003-10-18 12:10:06 +00:00
tron
f480c07e99 Add "Xft2" support. This provides antialiased fonts and fixes build
problems under XFree86 4.3.0 (and with it hopefully PR pkg/21828).
Bump package revision to reflect changes.
2003-06-09 12:32:45 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jlam
3ef633718c (1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
    worse.

(2) Create a new variable FIX_RPATH that lists variables that should
    be cleansed of -R or -rpath values if ${_USE_RPATH} is "no".  By
    default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
    additional variables may be appended from package Makefiles.
2003-03-14 19:37:30 +00:00
jschauma
556dfd66a9 More updates from Mesa:
As with the Makefiles, only include Mesa's buildlink when necessary,
otherwise include MesaLib's and/or glu's buildlink.
2003-03-12 22:07:27 +00:00
jschauma
e7c1762bd0 Bump PKGREVISION due to upgrade of Mesa and friends.
Only include Mesa/buildlink2.mk if the package requires all three of
MesaLib, glu and glut - else only include the necessary buildlink2s.
2003-03-09 19:23:09 +00:00
dmcmahill
975c92cd1c fix a bug created by last fix. We need to use gmake for the configure
step as well as the build instead of only the build.  Should fix problems
noted in Hubert's recent bulk builds.
2003-02-07 02:10:40 +00:00
dmcmahill
85c7de59d7 regen 2003-02-05 23:17:26 +00:00
dmcmahill
7707cffb33 on alpha, turn off optimization on the 33 files which tickle compiler bug(s).
This now builds on alpha with gcc-2.95.3.
2003-02-05 23:13:10 +00:00
bouyer
d0f0cc53c3 Don't depend on egcs for solaris, the gcc-2.95.3 provided with solaris9
works fine too.
libtoolize the library builds for solaris, and build shared libraries.
2002-10-25 10:56:05 +00:00
wiz
cfbe429ab9 Unused. 2002-10-09 13:05:35 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +00:00
jlam
c37e7920b5 Create new variables BUILDLINK_CPPFLAGS.<pkg> and BUILDLINK_LDFLAGS.<pkg>
that hold the compiler and linker flags used to find the headers and
libraries because these packages install them into non-standard places.
These variables may be used in package Makefiles by doing:

	CPPFLAGS+=	${BUILDLINK_CPPFLAGS.<pkg>}
	LDFLAGS+=	${BUILDLINK_LDFLAGS.<pkg>}
2002-09-22 10:06:00 +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
fredb
b48eba1112 Give all packages which depend on "png" a version bump, and update
all dependencies on packages depending on "png" which contain shared
libraries, all for the (imminent) update to the "png" package.
[List courtesy of John Darrow, courtesy of "bulk-build".]
2002-03-13 17:36:35 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
jlam
778144e57e Update qt2-libs to 2.3.1nb1. Changes from version 2.3.1 are making
QDir::mkdir and QDir::rmdir work when passed a directory name with trailing
slashes by removing the trailing slashes prior to making the mkdir(2) and
rmdir(2) system calls.  KDE2 seems to rely heavily on this behaviour.
2001-11-16 09:08:05 +00:00
zuntum
d3db18607d Move pkg/ files into package's toplevel directory 2001-10-31 22:03:21 +00:00
jlam
a4bc16d30c I am a triple idiot. The only relevant variable that x11.buildlink.mk
redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR,
which points to the location of the X11R6 hierarchy used during building.
If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to
${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use.  Remove
the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and
revert changes to move x11.buildlink.mk before the other buildlink.mk files.
2001-10-24 22:10:43 +00:00
jlam
dff59f9ec3 x11.buildlink.mk needs to be included before any buildlink.mk files that
use X11_BUILDLINK_MK as a test value.  Generally just reordering the
inclusions so that x11.buildlink.mk comes before the other buildlink.mk
files will make everthing work.
2001-10-23 13:14:43 +00:00
tron
bbf4d5e823 Make sure that the licence question is not repeated in the "build" target. 2001-10-09 19:51:41 +00:00
jlam
63fc151cb9 Use x11.buildlink.mk instead of USE_X11. Also convert hard-coded references
to ${X11BASE} in the header and library search paths into references to
${LOCALBASE}/share/x11-links.  These packages should now be strongly-
buildlinked regardless of whether xpkgwedge is installed.

Changes well-tested on NetBSD-1.5X/i386 with and without xpkgwedge and
lightly-tested on NetBSD-1.5.1/alpha without xpkgwedge.
2001-08-29 22:41:00 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
dd30dabc8c Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:51 +00:00
jlam
44683f15f9 REPLACE_BUILDLINK_SED and BUILDLINK_CONFIG_WRAPPER_SED should do opposite
substitutions, so make it so.
2001-07-02 04:40:37 +00:00
jlam
34a1df0bcb Change BUILDLINK_FIX_LIBTOOL_SED to REPLACE_BUILDLINK_SED. 2001-07-02 04:27:39 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
4514d29d05 Also add ${QTDIR}/lib to the rpath setting in LDFLAGS. 2001-06-26 17:53:35 +00:00
jlam
dcec27db28 Define BUILDLINK_QTDIR and QTDIR, and pass settings for QTDIR and MOC to
CONFIGURE_ENV and MAKE_ENV.
2001-06-26 17:45:27 +00:00
jlam
a2484a18ef Correct typo and reorder lines to our BUILDLINK_FIX_LIBTOOL_SED setting
comes first.
2001-06-23 21:02:22 +00:00
jlam
ada00ab7d3 Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Handle
-L and rpath specifications in the config files by directly substituting
their final values; this is needed since the configure script directly
manipulates these values via sed and needs the substituted values, not
just ${VAR}.  Also honor CXXFLAGS passed in from the environment (possibly
containing optimization flags) during the build.
2001-06-23 19:35:27 +00:00