pkgsrc/mk
rillig 212334d5a8 Don't rely on file(1) to distinguish text files from binary files. This
has proven too unreliable in the past. For example, some Makefile.in
files were classified as "Quake I or II world or extension", just
because they happen to start with the letters "PACK". This method was
also subject to subtle differences in the locale.

The new method counts the number of NUL bytes in the file. It does not
depend on the locale settings. The -c option of wc(1) counts bytes, not
characters, and tr(1), which may interpret multibyte sequences, is
protected by LC_ALL. It should also work with the historical
implementations of tr(1) that could not handle NUL bytes and discarded
them, since this is exactly the intention.

See also:
* http://mail-index.netbsd.org/tech-pkg/2006/07/05/0000.html
* PR 37793
2008-01-18 11:16:08 +00:00
..
build Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
buildlink3 Escape colons in preprocessor, compiler or linker flags while checking 2007-12-05 21:36:43 +00:00
bulk Replaced all references to pkglint with lintpkgsrc, which has its own 2008-01-04 15:49:07 +00:00
check Make the default rpath for USE_CHECK_SHLIBS_ELF a platform variable. 2008-01-16 14:03:31 +00:00
checksum Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
cmake-Modules/Platform Add support for cmake as a tool (USE_TOOLS+=cmake) and for using it in 2007-12-12 01:00:38 +00:00
compiler Always tell the C++ compiler that we want support for ANSI C++ features 2008-01-15 10:08:18 +00:00
configure Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
defaults Provide a mechanism for enabling use of pkgtools/posix_headers. 2008-01-16 03:16:39 +00:00
depends Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
emulator Add support for NetBSD 4.0 compatibility through installing compat40 2007-12-31 20:06:37 +00:00
extract EXTRACT_USING is always set, even when the necessary tools are not 2007-12-30 13:37:18 +00:00
features Make setenv(3) a libnbcompat-provided feature. 2008-01-14 23:06:26 +00:00
fetch Update list of PostgreSQL mirrors, from: 2008-01-09 12:57:05 +00:00
flavor Explicitly record the PKGNAME via the @name command. That way, it is 2008-01-05 22:06:20 +00:00
gnu-config Remove trailing spaces. 2007-05-28 11:07:00 +00:00
help Explained the difference between an lvalue and an rvalue. 2008-01-10 02:34:09 +00:00
install Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
internal Typo. 2007-03-16 20:41:44 +00:00
misc Add comment noting that support for OLDNAME in Removed case is needed. 2007-11-29 23:35:37 +00:00
package Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
patch Made the .include directives simpler, since the directory of the 2008-01-04 01:46:24 +00:00
pbulk Print _USE_DESTDIR as USE_DESTDIR from pbulk-index. 2008-01-15 22:04:57 +00:00
pkginstall In the CHECK-PERMS case, moved test of exit code one line up, so the 2008-01-04 21:50:27 +00:00
platform Make the default rpath for USE_CHECK_SHLIBS_ELF a platform variable. 2008-01-16 14:03:31 +00:00
plist The @imake-man macro should not yet be used, since it is subject to 2008-01-05 17:03:04 +00:00
scripts * Rename AP var to AUDIT_PACKAGES as the former was a bit obscure 2008-01-03 20:51:21 +00:00
tools remove makedepend hack 2008-01-14 08:03:47 +00:00
wrapper Do not load the $cache file for every argument. Instead, load it once 2007-11-28 14:45:22 +00:00
alternatives.mk Documented the file format. 2007-09-29 15:56:04 +00:00
apache.mk Make Apache 2.2.x the default as discussed on "tech-pkg" mailing list. 2007-12-17 22:09:58 +00:00
apachever.mk Fix the .include lines so that make looks in the right place first. 2007-10-13 11:04:15 +00:00
bdb.buildlink3.mk Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
bsd.fast.prefs.mk Add an alternative version of bsd.prefs.mk. make(1) processing of 2006-11-05 14:28:38 +00:00
bsd.hacks.mk Split the variable BUILD_DEFS into those that are defined by packages 2006-07-15 23:58:52 +00:00
bsd.makevars.mk Completely nuke the concept of PKG_PHASE from pkgsrc except for the 2006-07-10 22:59:26 +00:00
bsd.options.mk Protect against multiple inclusion. This fixes the "sane-frontends" 2007-10-28 11:29:06 +00:00
bsd.pkg.barrier.mk Since the "build" target is run inside the pkgsrc barrier, "build-env" 2007-11-30 18:54:40 +00:00
bsd.pkg.clean.mk Fixed pkglint warnings. 2007-11-15 12:09:52 +00:00
bsd.pkg.debug.mk One ident string per file is enough. 2007-09-27 12:49:14 +00:00
bsd.pkg.error.mk Instead of removing error and warning messages, they are collected in 2006-10-06 19:05:43 +00:00
bsd.pkg.mk pkg_install 20070802 is good enough, don't be overly aggressive. 2008-01-16 01:01:26 +00:00
bsd.pkg.readme.mk * Rename AP var to AUDIT_PACKAGES as the former was a bit obscure 2008-01-03 20:51:21 +00:00
bsd.pkg.subdir.mk Fix the .include lines so that make looks in the right place first. 2007-10-13 11:04:15 +00:00
bsd.pkg.update.mk Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN}, since it is shorter. 2007-09-07 16:47:05 +00:00
bsd.pkg.use.mk Documented USE_IMAKE. 2007-11-30 08:27:51 +00:00
bsd.prefs.mk Provide a mechanism for enabling use of pkgtools/posix_headers. 2008-01-16 03:16:39 +00:00
bsd.utils.mk Remove all uses of the following targets from pkgsrc: 2006-07-27 22:01:28 +00:00
compiler.mk Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
curses.buildlink3.mk Clarified the comment. 2007-11-03 15:17:42 +00:00
db1.builtin.mk Reverted all the recent changes to the BUILTIN_FIND_GREP variable. It 2007-11-16 08:14:20 +00:00
dirs.mk Add support for kde4 (currently in wip) so that packages in wip can use 2007-12-12 05:14:15 +00:00
djbware.mk Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
dlopen.buildlink3.mk Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
dlopen.builtin.mk Additional pattern matching NetBSD-3.1_STABLE-i386, forgotten in the 2007-10-03 08:56:07 +00:00
emacs.mk Correct dependency patterns for xemacs*nox (xemacs-nox -> xemacs-nox11). 2007-11-12 01:58:24 +00:00
endian.mk On IRIX, <standards.h> needs to be included before <sys/endian.h>. 2007-03-08 23:11:20 +00:00
fam.buildlink3.mk Added BUILD_DEFS_EFFECTS. 2006-11-04 22:18:41 +00:00
find-prefix.mk Improved the documentation. 2007-09-29 10:56:34 +00:00
fuse.buildlink3.mk Made the .include lines simpler. 2007-10-17 10:43:36 +00:00
java-env.mk Prepare for DESTDIR support in Java VMs. 2007-11-09 00:49:54 +00:00
java-vm.mk Darwin 9.* can use Java too 2007-11-18 22:17:50 +00:00
krb5.buildlink3.mk Better documentation. 2007-03-07 10:42:30 +00:00
license.mk Document notion that Free/Open licenses do not end in -license. 2008-01-09 14:38:05 +00:00
motif.buildlink3.mk Move include of mk/x11.b3.mk into the non-openmotif, non-lesstif case. 2006-11-06 11:29:38 +00:00
mysql.buildlink3.mk Added documentation. 2007-09-10 07:18:32 +00:00
omf-scrollkeeper.mk install a copy of scrollkeeper/omf.mk in a central place so that 2007-11-12 20:45:52 +00:00
oss.buildlink3.mk Define DEVOSSAUDIO and DEVOSSSOUND for DragonFly. 2007-02-25 00:29:27 +00:00
oss.builtin.mk
pam.buildlink3.mk Fix the .include lines so that make looks in the right place first. 2007-10-13 11:04:15 +00:00
pgsql.buildlink3.mk Added _VARGROUPS. 2007-06-06 12:40:05 +00:00
pkg-build-options.mk Fix the .include lines so that make looks in the right place first. 2007-10-13 11:04:15 +00:00
pthread.buildlink3.mk Made "show-all-pthread" work. 2007-11-07 07:49:02 +00:00
pthread.builtin.mk OSF1 always needs _REENTRANT to be defined when including pthread.h, or it 2007-04-12 18:42:02 +00:00
resolv.buildlink3.mk Add common handling for libresolv similiar to dlopen(3) wrapping. 2007-07-03 13:54:45 +00:00
solaris-pam.builtin.mk
subst.mk Don't rely on file(1) to distinguish text files from binary files. This 2008-01-18 11:16:08 +00:00
tex.buildlink3.mk Reformatted the header comment to be searchable by bsd.pkg.help.mk. 2006-10-01 14:53:30 +00:00
unprivileged.mk Allow a package to use its custom group so long as the group is in the 2007-10-20 06:57:17 +00:00
x11.buildlink3.mk Fix typo in error message. From Sergey Svishchev. 2007-12-02 12:57:32 +00:00
x11.builtin.mk Replaced a .sinclude with .include to catch errors when X11_TYPE is not 2006-10-26 17:08:08 +00:00
x11.version.mk Fixed the comments a little bit. 2007-10-01 07:21:44 +00:00
xaw.buildlink3.mk Added documentation and error checking. 2007-03-09 02:04:04 +00:00