Commit graph

693 commits

Author SHA1 Message Date
brook
3f7b4beddb Always take the flex version from the second word of the version string.
When necessary, the flex version is obtained from the version string reported
by running flex.  Generally, the first word of the version string is flex and
and the second is a version number.  At least for MacOS, there is a third
vendor-specific word.  The sed command previously used to capture the flex
version captured the last word, not the second one, because the first capture
group was too greedy and could capture more than a single word.  Instead,
force the capture groups to capture only words, i.e., no blanks, and use the
second word for the version.
2017-01-21 17:10:26 +00:00
joerg
fea8495735 Handle optional ctfmerge/ctfconvert presence on NetBSD by explicitly
passing down NOCTF when they don't exist.
2016-11-10 20:58:46 +00:00
khorben
169865dfeb Import mini-framework for paxctl(8) on NetBSD/{amd64,i386}
This allows setting flags for PaX on select binaries. Two new variables
are introduced for packages: NOT_PAX_ASLR_SAFE and NOT_PAX_MPROTECT_SAFE.
They both expect a list of binaries are known to not support PaX ASLR
and/or PaX MPROTECT, respectively.

"Please commit" wiz@
2016-05-26 16:03:04 +00:00
jperkin
11d02981ed Stop using the native texi2html on SunOS. It's not fully compatible
with what packages such as multimedia/ffmpeg2 expect, and as so few
packages have texi2html in USE_TOOLS it may be causing more problems
that it is worth to save a few dependencies.  PR#51113.
2016-05-10 08:54:49 +00:00
dbj
ed7710a502 the native soelim is gsoelim so default it as TOOLS_PLATFORM.gsoelim 2016-04-11 04:49:41 +00:00
wiz
cf765f4607 Switch from pkg-config to pkgconf. 2016-04-08 13:12:33 +00:00
tnn
926fcc3996 Add special handling for Debian derived systems as they do not have GNU awk
in /usr/bin/awk but mawk. Use /usr/bin/gawk if it exists, otherwise
depend on gawk from pkgsrc when required.
2016-03-09 22:27:29 +00:00
jperkin
7002b040bb Remove mk/find-prefix.mk and its usage from the mk infrastructure.
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 13:05:47 +00:00
richard
a182cf16d2 accidental ommission of a suppressed line 2015-10-08 18:16:31 +00:00
richard
b8ac1f30b0 Quick workaround for groff tools issue per joerg@
Still needs, as many tools, TLC to simplify tools.*.mk as well as adding
a builtin check.
2015-10-08 17:17:23 +00:00
richard
4ae0f0183f define TOOLS_PLATFORM.ld in tools.SunOS.mk 2015-09-25 01:57:56 +00:00
jperkin
e5e50a0024 Remove NetBSD 0.x and 1.x settings, these have long since been unsupported. 2015-09-08 11:36:34 +00:00
ryoon
eef963f5da Fix QNX bootstrap.
From Jan Danielsson.
2015-07-04 07:15:22 +00:00
jperkin
0b50d6bf86 Don't use the platform /usr/bin/pkg-config. As per PR#49982 it causes
problems that are fixed by using the pkgsrc version, and no platform
other than Cygwin tries to use a native version.

Consensus is that due to the limited impact and clear benefit this is
ok to go in during the freeze despite being an infrastructure change.
2015-06-19 15:22:44 +00:00
sevan
8514571a7a Introduce preliminary support for Bitrig to pkgsrc
Initial patchset to add support by rodent@
Further adjustments made based on feedback by joerg@
Tested by myself with numerous bulkbuilds thanks to Patrick Wildt @ Bitrig

Reviewed by bsiegert@ joerg@ wiz@
2015-06-04 15:48:45 +00:00
rodent
4e96f8ebfa Some updates:
* Test for /usr/sbin/chgrp (it's a link, but hey);
* Test for /usr/sbin/openssl as an alternative location. There is no entry
  in /usr/bin (at least in OpenBSD 5.6);
* /usr/bin/tbl doesn't exist in OpenBSD 5.6, so test for it before setting;
2015-04-05 00:22:44 +00:00
rillig
63823525fb Added "bmake help" documentation for using libtool and pkg-config. 2015-03-11 19:24:44 +00:00
jperkin
f880d33e4f Put back additions of some native gettext tools. 2015-02-16 11:01:40 +00:00
jperkin
40af7cd08f Put back preference towards the gettext-m4 package when resolving dependency. 2015-02-16 10:59:39 +00:00
jperkin
0262e3fcf8 Put back the fix which checks the variables associated to each gettext tool
instead of checking those of msgfmt.
2015-02-16 10:40:40 +00:00
rillig
58d70247cc Added keywords for "bmake help". 2015-02-11 23:39:35 +00:00
obache
a1271cfbb0 Revert
Requirement of gettext tools from pkgsrc depend on existence of the tool itself,
 not msgfmt tool.
proposed/discussed is required for such changes.
2015-02-01 11:46:10 +00:00
obache
7957202b5a Revert "pick up gettext-m4 package first.",
proposed/discussed is required for such changes.
2015-02-01 09:18:59 +00:00
obache
6659e2b32a Revert "Add some missing builtin gettext-tools path.",
proposed/discussed is required for such changes.
2015-02-01 09:15:49 +00:00
obache
c403435b4e revert "Add unlink as a tool.", I cannot describe why is it on the Earth.
proposed/discussed is required for such changes, from PMC gdt@.
2015-02-01 08:48:56 +00:00
obache
0d7d34e0e8 Add unlink as a tool. 2015-01-30 11:06:36 +00:00
obache
ab675937d7 Add some missing builtin gettext-tools path. 2015-01-12 04:54:19 +00:00
wiz
d589028e1c Add links for automake-1.15. 2015-01-08 16:41:44 +00:00
obache
1bdc9cfa8e pick up gettext-m4 package first. 2015-01-06 09:26:55 +00:00
obache
90f35fd6fe Requirement of gettext tools from pkgsrc depend on existence of the tool itself,
not msgfmt tool.
2014-11-09 02:26:27 +00:00
joerg
c6e1b83d1b Simplify PKG_DEVELOPER checks. 2014-10-12 23:39:17 +00:00
joerg
135ad75b51 Remove mk glue for devel/nbitools. 2014-10-01 19:14:21 +00:00
joerg
d4e7731007 x11/xorg-imake has been dead for a long time. 2014-10-01 19:04:56 +00:00
obache
f9748cd8ec Latest version should be also marked `missing'.
Fixes unwanted execution of {aclocal,automake}-${latest_version} for the
case configure.ac (or something) is patched, but configure is also alredy
regenerated and aclocal and automake are not required (not in USE_TOOLS).
XXX: if {aclocal,automake}-${latest_version} is really required by somewhere,
XXX: it should be created below, same as plain aclocal and automake.
2014-08-02 04:27:51 +00:00
obache
3b3083536b revert, acceptable condition must be clealify. 2014-07-21 00:33:11 +00:00
obache
e38d96efd1 builtin ftp is compatible with tnftp on Snow Leopard and later. 2014-07-21 00:25:48 +00:00
obache
29b54fc762 Add curl and wget. 2014-05-22 05:14:14 +00:00
obache
5635e333cd GNU patch should not be used. 2014-05-20 09:55:12 +00:00
obache
1ada3eb7b7 catch up after removal of /boot/common on Haiku.
noticed by diger in pkgsrc-users@.
2014-05-18 09:37:50 +00:00
richard
e1f92cc066 homogenise fgrep to be grep -F 2014-05-06 15:42:46 +00:00
obache
7cfd42ee41 Check builtin perl usability
* if p5-* in {,BUILD_,TOOL_}DEPENDS, use perl5 from pkgsrc.
* check whether builtin perl satisfies PERL5_REQD, or use perl5 from pkgsrc.
* if buitin perl satisfies all {perl>=n.m,p5-foo>=x.y} style dependencies,
  get rid of such dependencies and use builtin perl.
2014-04-28 13:15:29 +00:00
obache
46c92eb614 Now intltool pkgsrc is always used, so force to use pkgsrc perl if intltool is required. 2014-04-05 03:02:00 +00:00
obache
5fb18410e4 tar(1) in FreeBSD 5.4 and later are based on libarchive(3) library. 2014-04-03 07:12:01 +00:00
ryoon
d2e4b66d48 Add SCO OpenServer 5 and 6 support, 6 support is not tested yet. 2014-03-14 22:05:18 +00:00
taca
a3d2659e70 Refelect change of RUBY_SRCDIR. 2014-03-13 17:06:42 +00:00
jperkin
31b2cb9944 If LIBABISUFFIX is set add lib${LIBABISUFFIX}/pkgconfig to the default
pkg-config search path, required on Red Hat Linux.
2014-03-07 15:15:17 +00:00
jperkin
2ea2447ce2 Check ${X11BASE}/bin/bdftopcf exists before blindly using it, not all
distributions include it.
2014-03-07 15:07:44 +00:00
uebayasi
2e61c603ea Provide uniq(1) as a TOOLS. 2014-03-06 07:34:20 +00:00
obache
0b31906c42 fixes copy & paste fault for xz. 2014-02-27 08:47:32 +00:00
obache
62d4cd4284 tell wget as a tool. 2014-02-14 07:43:46 +00:00
richard
d49d968741 update coreutils files to 8.22 2014-02-02 07:09:23 +00:00
ryoon
575da143a7 If system's gmake is older than pkgsrc requirement (3.81),
Use gmake from pkgsrc.
Fix libvpx build under Solaris 10, Solaris 10 has gmake 3.80,
and libvpx requires gmake 3.81 or later.
2014-01-15 06:53:06 +00:00
tron
9477e39aed Improve support for HTTPS master site URLs:
As the default fetch program "tnftp" (in "pkgsrc" and all released
versions of NetBSD) doesn't support HTTPS prefer "fetch" (DragonFlyBSD,
FreeBSD and Minix) or Curl (CygWin, Linux, Mac OS X, Solaris) if available.

Change during pkgsrc-freeze approved by Greg Troxel and Thomas Klausner.
2013-12-19 23:50:29 +00:00
obache
b5a3421659 sort 2013-12-13 07:11:20 +00:00
obache
d8793bfae8 The unzip utility apprared in FreeBSD 8.0. 2013-12-13 07:04:09 +00:00
obache
edf32fc38f fixes last commit (copy&paste error). 2013-12-01 02:57:36 +00:00
richard
9b101279b8 include versions 1.12&1.13 to aclocal/automake 2013-11-30 06:24:38 +00:00
shattered
9af65d20fe Fix a pasto (lzip is not lzcat). 2013-11-16 07:58:00 +00:00
shattered
aead224866 Decompress .lz files with lzip. 2013-11-16 07:45:26 +00:00
obache
97c833001d Add `xz' command as a TOOL. 2013-11-06 13:12:50 +00:00
joerg
003c6f07cc Newer versions of OSX don't ship with gnutar. From Jan Danielsson. 2013-10-26 15:31:26 +00:00
ryoon
2160138920 Fix xargs option.
* For pkgsrc, FreeMiNT's GNU xargs should have -r option.
2013-09-12 13:19:06 +00:00
jperkin
6e172f0c6b Switch to textproc/mdocml as the tool replacement provider for 'nroff'.
The nroff tool is primarily used to generate catman pages, however there
were circular dependency issues with using groff as the provider, as it
has a large number of dependencies, some of which depend on nroff.

mdocml is much smaller, has fewer dependencies, is BSD licensed, and is
just as capable in nroff mode.
2013-09-12 10:48:51 +00:00
obache
46fcbb4ee2 Tell "readlink" location for Cygwin, DragonFly, FreeBSD and Haiku. 2013-08-24 11:30:44 +00:00
tron
08dba64c9b Define "readlink" location for Linux and OpenBSD. 2013-08-24 10:12:52 +00:00
obache
982699e9c6 HP-UX has tbl as /usr/bin/tbl.
noticed by Paul Ackersviller.
2013-08-22 00:41:12 +00:00
tron
9aee4c96c4 NetBSD and Mac OS X both provide "readlink" under "/usr/bin/readlink". 2013-08-18 11:45:33 +00:00
richard
dbc7af4e8b add readlink to replaceable coreutils (for solaris, namely) 2013-08-17 12:00:37 +00:00
ryoon
4a0907cc4d Add (Debian) GNU/kFreeBSD port.
Similar to GNU/Linux.

Bump bootstrap-mk-files to 20130727.
2013-07-26 09:38:15 +00:00
jperkin
a2117b1be6 Revert back to avoiding the system bison. Whilst it is new enough to
satisfy the BISON_REQD check, it does not function correctly in the tools
environment when not called as /usr/bin/bison, as it is unable to find its
m4sugar.m4 without BISON_PKGDATADIR being set.

Whilst we could work around that in bison.mk I feel that's something of a
hack, and it is simpler and cleaner to just use the pkgsrc tool instead.
2013-07-15 08:51:21 +00:00
jperkin
8730bbcdd8 Allow the system bison to be used. The comment that it was too old is
from 2006 and the OSX bison has been upgraded long since then.  In any
case, if the bison is too old, the BISON_REQD check will ensure that a
working version is pulled in if necessary.
2013-07-09 15:22:31 +00:00
jperkin
5fb787362d Revert back to avoiding the native SunOS pax by default.
Whilst it works for the most part, the mk/extract/extract script expects
an -O flag which it does not support, and adding conditionals to that
script would be messy.

Fixes 5 direct packages.
2013-07-03 12:31:33 +00:00
riastradh
6413b402de Don't let the pkgsrc TARGET_ARCH bleed into gmake's environment.
This is a provisional kludge to work around PR pkg/47838.  Sorry for
taking far too long to find a workaround that doesn't break various
other stuff too -- this duration of time was ridiculous, and it was
entirely my fault.

We can get rid of this kludge when we start using `env -i' in the
build phase or when we replace TARGET_ARCH by TARGET_MACHINE_PLATFORM
(and replace the make-internal variable MACHINE_ARCH by
MACHINE_PLATFORM -- that is part of what makes the logic in
pkgformat/pkg/depends.mk and bsd.prefs.mk so fragile).  However,
although I intend to do both of these things, they were deemed too
likely to cause too much fallout just before the freeze, so they'll
wait until after the freeze.
2013-06-12 20:37:43 +00:00
obache
95528bcbb7 create X related tools also for X11_TYPE=native.
might fix PR pkg/47883.
2013-06-06 02:17:17 +00:00
obache
aa9b5d508c fixes usage of TOOLS_CREATE for X related tools, and those tools will be created
in ${TOOLS_DIR}/bin, same as other tools.
2013-06-05 13:26:35 +00:00
obache
b18f903179 more update for R1Alpha4, and let /boot/common/bin as optionlfy. 2013-06-02 06:51:08 +00:00
obache
e9e7ad2c60 hacked `file' command is not required anymore. 2013-06-02 03:06:44 +00:00
obache
433c214063 gmake is not in /bin on Haiku R1Alpha4. 2013-06-02 03:04:22 +00:00
sbd
8ca714309a Use GMAKE_REQD in TOOLS_DEPENDS.gmake, bump GMAKE_REQD to 3.81. 2013-05-21 07:13:50 +00:00
obache
1ec07a356f add `-b' (binary) option for SED to prevent special processing about CR+LF. 2013-05-16 08:28:11 +00:00
obache
d07d88f983 file command usage is limited in pkgsrc now, so no need to use hacked one. 2013-05-12 06:19:21 +00:00
obache
5e701c91cc hacked `file' command was introduced for text file check in SUBST,
but it is never used now, so back to true `file' command.
2013-05-12 06:07:45 +00:00
riastradh
9e0c502480 Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.
Build depends are target packages that are needed at build-time for,
e.g., static libraries to link against, header files to include, &c.
Tool depends are native packages that are needed at build-time for,
e.g., compilers/linkers/&c. to run.

ok agc
2013-05-09 23:37:25 +00:00
riastradh
2affbc5d5c Set NATIVE_CC/CC, NATIVE_CXX/CXX, and NATIVE_LD/LD for cross-builds.
The NATIVE_xyz versions are for packages that build tools that they
run natively but don't end up in the final product.

This is a provisional scheme -- it should be replaced eventually by
something more principled.

ok agc
2013-05-09 23:33:53 +00:00
obache
028eb8d55a Insert a dummy SPACE before the first "msgstr" start with "\n", if "msgid"
is also start with "\n", but msgctxt is inserted before it, to avoid msgfmt(1)'s
format mismatch check (`msgid' and `msgstr' entries do not both begin with '\n')
2013-05-06 13:20:07 +00:00
obache
551502f0ad fixes obsolete pattern check, move to before push msgctxt. 2013-05-05 00:34:22 +00:00
obache
18d734fe9e Instead of drop msgctxt, treat same as gettext-tools>=0.15.
tested with editors/medit and graphics/gimp and context specified translate
messages are appeared.
2013-05-03 12:31:43 +00:00
obache
009dc8201c * bump required gettext-tools from pkgsrc to 0.15 to match required gettext-lib capability.
* prevent to restrict gettext-tools capability from builtin gettext-tools' one
  even if using it from pkgsrc.
2013-05-02 13:12:03 +00:00
sbd
acc4ece8b9 Use the ghostscript meta-package instead of ghostscript-gpl or
ghostscript-agpl.

Reverts revisions 1.255 and 1.254

   ----------------------------
   revision 1.255
   date: 2013/03/16 23:03:33;  author: dholland;  state: Exp;  lines: +3 -3
   print/ghostscript -> print/ghostscript-agpl
   ----------------------------
   revision 1.254
   date: 2013/03/16 21:47:14;  author: dholland;  state: Exp;  lines: +13 -3
   Choose ghostscript package for ghostscript tools based on whether
   gnu-agpl-* is in ACCEPTABLE_LICENSES.

   This is mostly the same as the old ghostscript type logic that was
   removed in version 1.223.
2013-04-24 09:55:03 +00:00
tcort
bd48140716 tools.Minix.mk: Add new tools, update paths, and put in alpha order.
OK by wiz.
2013-04-07 20:04:17 +00:00
dholland
bb4b0ae820 print/ghostscript -> print/ghostscript-agpl 2013-03-16 23:03:33 +00:00
dholland
1cb23e953d Choose ghostscript package for ghostscript tools based on whether
gnu-agpl-* is in ACCEPTABLE_LICENSES.

This is mostly the same as the old ghostscript type logic that was
removed in version 1.223.
2013-03-16 21:47:14 +00:00
fhajny
82019069c7 Ensure that pkgsrc openssl tool is used if not using builtin openssl. 2013-03-15 12:35:03 +00:00
obache
785bc5be4a create tools' aliases additionally with _OPSYS_EXE_SUFFIX.
In some situations, tools will be invoked with platform specific executable
suffix (ex. Perl5's Configure).
2013-02-27 12:09:39 +00:00
obache
9cf1d430b2 Clean up tools for Cygwin:
* expect all packages in Base category are installed
* try to detect tools in optional packages
2013-02-17 12:57:51 +00:00
jperkin
ccd81d8850 Don't use GNU tar as bsdtar, it isn't fully compatible and fails with
the OpenJDK distfiles.
2013-02-12 15:08:48 +00:00
obache
59f7f450d0 Add preference for Cygwin. 2013-02-10 12:25:17 +00:00
tcort
17dddf4b47 sed and install have moved to /usr/bin
OK by obache
2013-02-09 03:41:27 +00:00
drochner
9b2d3f2473 allow PKG_CONFIG_PATH to be set by the pkg, needed
for gobject-introspection users
2012-10-30 18:48:33 +00:00
ryoon
b707c18585 Add 7z archive distfile support.
Fix PR pkg/42967
2012-10-01 10:45:16 +00:00