Commit graph

53 commits

Author SHA1 Message Date
jlam
d0915c61c3 Fix inappropriate uses of ${LOCALBASE} or ${X11PREFIX} instead of
${PREFIX}.
2005-06-17 04:49:45 +00:00
jlam
81edaaa606 Create directories before installing files into them. 2005-06-16 06:57:37 +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
jlam
7425b543e8 Note that gtar is required by the package. 2005-05-16 01:15:30 +00:00
jlam
419428ec4a Note where gzip or gunzip is required by the package since it isn't
required by default any longer in bsd.pkg.mk under the new tools
framework.
2005-05-15 22:02:26 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
minskim
51f6c66aad Define "LINUX" on Linux. This fixes PR pkg/29489. 2005-02-24 23:10:44 +00:00
minskim
cb4bea4014 Use endian.mk instead of patching source code. 2005-02-24 23:07:34 +00:00
minskim
e06ff261cc Use variables and header files defined in ossaudio.buildlink3.mk to make
this package build on more platforms.
2005-02-24 23:04:31 +00:00
minskim
8a969b68b9 Use the buildlink3 framework. 2005-02-24 22:43:33 +00:00
minskim
9e9ffe52c8 Honor CFLAGS set by pkgsrc. 2005-02-24 22:39:03 +00:00
agc
8cef6c454b Add RMD160 digests. 2005-02-23 23:11:54 +00:00
grant
4390a2f42b replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 13:30:55 +00:00
agc
dc52048e01 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:07:06 +00:00
mycroft
eef23d6867 Trivial fix for GCC3. 2003-09-29 23:46:31 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
mycroft
cb99b77e5e Fix ridiculously stupid unaligned accesses. 2002-08-22 05:29:50 +00:00
mycroft
4164402d80 Fix more obvious word size cruft. 2002-08-22 05:08:30 +00:00
mycroft
1c5bda26b8 Deal with some obvious pointer size issues that prevent xdoom even loading the
WAD file on LP64.  Whether it works beyond that point now, I don't know.
2002-08-22 04:18:43 +00:00
mycroft
033f54d108 Crank PKGREVISION. 2002-08-19 15:02:50 +00:00
mycroft
1164a93eb1 Fix the special-case do-build target to respect MAKE_ENV. 2002-08-19 15:00:48 +00:00
mycroft
cb7b5f2c89 Fix the WAD version number printf(), which is very obviously broken. 2002-08-19 14:49:47 +00:00
blymn
b8094222a3 Fix for PR 17741, m_swap.h needs to have sys/endian.h included to
correctly determine the endian of the host machine.
2002-07-29 11:09:50 +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
zuntum
37637e483f Move pkg/ files into package's toplevel directory 2001-11-01 00:47:39 +00:00
jlam
f79573370a Mechanical changes to 375 files to change dependency patterns of the form
foo-* to foo-[0-9]*.  This is to cause the dependencies to match only the
packages whose base package name is "foo", and not those named "foo-bar".
A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net.  Also
change dependency examples in Packages.txt to reflect this.
2001-09-27 23:17:41 +00:00
abs
5f205db74b Work with xpkgwedge 2001-07-27 11:05:58 +00:00
wiz
daff086c30 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 02:08:16 +00:00
agc
fb467f5ac2 + 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:22:34 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
hubertf
d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00
wiz
9f28a7693e Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 15:10:41 +00:00
mycroft
a31af85baa Regen. 2000-10-21 21:58:29 +00:00
mycroft
52436f757f int32_t -> int
This broke on -current, because int32_t isn't defined by default.  In addition,
it's kinda dumb to do this in one particular place, leaving the rest of the
structures defined to use non-fixed types.
2000-10-21 21:57:39 +00:00
abs
fa022bb0af Update to 1.10nb1
Actually work with the supplied WAD file
        One file-to-patch per patchfile
        Remove strange 'post-patch' substitute X11_BASE phase
        Fix numerous coredumps
        Add a '-h' usage
        Handle the sndserver dying
        Make it work on little endian systems
        Add a '-volume X' flag, and skip all sound code if 0
        Other cleanup in some of the more repellant code areas.
2000-02-03 16:01:14 +00:00
abs
df05aef71f Strip trailing '.', and/or leading '(a|an) ' 2000-01-05 15:37:50 +00:00
tron
0de3d8f719 Use "/dev/sound" instead of "/dev/dsp" as sound device. Fixes PR pkg/9066
by Richard Rauch.
1999-12-29 21:47:03 +00:00
hubertf
73dfc7d6d0 use "${GTAR}" instead of "tar" 1999-08-20 00:15:57 +00:00
agc
a910a6fd62 Add package patch-sum files 1999-07-09 13:50:05 +00:00
mycroft
ea96aadb66 We need a ${DISTDIR} here to make the extract work. 1999-04-05 16:35:27 +00:00
agc
171e025b4a Rewrite the extraction commands to be more intuitive.
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz,
and .tar.bz2).

EXTRACT_USING_PAX can be set as before.

For custom extractions, instead of using EXTRACT_BEFORE_ARGS,
EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the
command needed to decompress and extract the lements from the archive.
${DOWNLOADED_DISTFILE} can be used to reference the distfile(s).
e.g. for compressed shars, where previously there was:

EXTRACT_CMD=           ${GZCAT}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=    |sh

now use:

EXTRACT_CMD=           ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
1999-04-01 14:07:52 +00:00
sommerfe
f2f4690647 Fix PR7160: critical bug fix to xdoom 1999-03-15 01:54:32 +00:00
agc
f6473207ca Replace all occurrences of USE_X11 with USE_X11BASE. This means "install this
package into ${X11BASE}".
Replace all occurrences of BUILD_USES_X11 with USE_X11. This means "use X11
headers and libraries to build this package".
1999-01-30 23:18:44 +00:00
mycroft
f027bbff92 Fix alignment problems on arm32. 1998-12-14 14:43:10 +00:00
mycroft
fd29275a41 Use -O2, not -O6. 1998-11-24 05:23:23 +00:00
hubertf
d321453dc8 optimize, for mycroft 1998-11-24 00:38:20 +00:00
frueauf
7138d002c5 Some more for pkglint. 1998-11-12 23:34:30 +00:00
garbled
60f4ea5b85 Some read-only pkgsrc fixups.. 1998-09-24 16:53:19 +00:00
hubertf
bbba212419 Remove useless symlink 1998-09-06 16:44:53 +00:00