summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2007-08-23Allow a nicer syntax for expressing needing at least a certain versionjlam3-3/+14
of an emulated operating system. Instead of proliferating things like SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a package can say: EMUL_REQD= suse>=9.1 netbsd>=2.0 solaris>=10 all in one, succinct line.
2007-08-23Use .PARSEDIR where it can be used to avoid hardcoding the path to thejlam9-18/+18
emulator module.
2007-08-23Back out previous and solve this in another way that doesn't involvejlam2-48/+35
a hokey new emulator-opsys.mk file.
2007-08-23Break out the inclusion of the operating-system-specific Makefile intojlam2-35/+48
a separate emulator-opsys.mk file. The emulator-opsys.mk file defines EMUL_DISTRO and the various *EMUL*DIR* variables, as well as any opsys-specific variables. Include this file within compat_netbsd/Makefile.common so that the *EXEC_FMT variables (defined by the compat*/emulator.mk files) are defined. This fixes the build of compat* packages. XXX emulator-opsys.mk will go away in the near future as we do more XXX appropriate information hiding.
2007-08-23Define a variable EMUL_IS_NATIVE if the emulated operating systemjlam1-1/+9
matches the native operating system. Use it in place of checking whether EMUL_DISTRO matches "native-*" as EMUL_DISTRO is no longer defined after bsd.prefs.mk is included. This should fix PR pkg/36823 by Robert Elz.
2007-08-23Do not check that RCD_SCRIPTS_SRC.foo exists, assume so.joerg1-3/+1
This unbreaks DESTDIR installation for mail/spamassassin, when extract and install phase are part of the same make run.
2007-08-23Remove remaining parts of misc/xorg-dirs usage.joerg1-8/+1
2007-08-23pkg_add can figure out the suffix itself, thanks.joerg1-2/+2
2007-08-22Describe DEFAULT_ACCEPTABLE_LICENSES better.gdt1-13/+14
Add GPL v3 to DEFAULT_ACCEPTABLE_LICENSES. Add plan for dealing with Free licenses that have not been approved as Free.
2007-08-22Reorganize some code so that including bsd.prefs.mk doesn't exposejlam2-36/+45
so much of the emulator framework.
2007-08-21* Support netbsd-* as a valid platform in EMUL_PLATFORMS. Use thejlam4-5/+129
pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages to provide the necessary shared libraries to run dynamically linked NetBSD binaries from the days of yore. * Add some additional compat* packages for completeness: compat15, compat20, compat30 * Modify the compat* packages so that "compatNM" only provides files that aren't in "NetBSD-N.(M+1)". For example, compat12 only provides files that don't exist in NetBSD-1.3.x, compat13 only provides files that don't exist in NetBSD-1.4.x, etc. As a result, if you are running NetBSD-3.0/alpha and want to run a 1.3 dynamically linked binary, there is an automatic dependency chain that causes the following packages to be installed: compat13, compat14, compat15, compat16, compat20 There are some deviations from this dependency chain on platforms that have changed executable formats, e.g. i386, m68, sparc, etc. However, in general pkgsrc will require that you have the necessary COMPAT_* options in your kernel to match the installed compat* packages. This restriction is an artificial one imposed by pkgsrc, but allows for a single set of distfiles to be used on all versions of NetBSD. * Provide compat* package support for every supported architecture of NetBSD. Verily, it is now possible to run 1.2 binaries on NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc. Rejoice, one and all! * The netbsd32_compat* packages mirror the corresponding compat* packages for use by sparc64 and x86_64 to allow running 32-bit binaries with COMPAT_NETBSD32 kernel support. The "extras" packages supply the additional shared libraries from the corresponding release of NetBSD so that the set of files in /emul/netbsd32 will be complete. * pkgsrc/emulators/compat_netbsd contains infrastructure files shared by all of the compat* packages.
2007-08-21Allow the existence of symlinks that point nowhere.jlam1-3/+3
2007-08-21Add actual license and a small description of what this is doing.joerg1-0/+40
2007-08-20Add a cross-compile and DESTDIR safe alternative to ldd forjoerg3-2/+142
check-shlibs. This allows more stricter detection (e.g. it checks whether the package links against a build dependency). It also checks whether the rpath contains wrkdir references (like qt3-libs). It depends on readelf and is only available for ELF systems for now. To test it, add USE_CHECK_SHLIBS_ELF to mk.conf. Supported-by: Google SoC 2007
2007-08-20Add readelf as tool, for only only the BSDs get it.joerg4-5/+13
2007-08-20For DESTDIR operation, no need to filter out old files.joerg1-1/+8
2007-08-20Add cross-compiling support for bin-install and deinstall targets.joerg2-3/+35
2007-08-19Removed mirror qgpop.dl.sourceforge.jp. It is not listed anymore on theheinz1-3/+2
sourceforge.jp download pages and was not restored since this topic came up in mid-July.
2007-08-18Explicitly bail out if X11_TYPE=xorg is found.joerg1-1/+7
2007-08-17Remove infrastructure side of Xorg 6.9 support. Begin to simplifyjoerg6-87/+27
some of the cases of X11_TYPE usage -- it will stay with modular|native, so don't bother with keeping the separation in the tool list.
2007-08-16Allow for emulation-specific patches for binary-only packages. Thejlam4-8/+12
patches are named emul-${EMUL_PLATFORM}-patch-* and are located in ${PATCHDIR}.
2007-08-16Added a variable DEFAULT_DISTFILES that can be used when addingrillig1-2/+9
distfiles to DISTFILES.
2007-08-16A number of packages implicitly assume that ar runs the right ranlib,joerg1-1/+3
so override it as well for DESTDIR.
2007-08-15Provide _COMPILER_RPATH_FLAG and _LINKER_RPATH_FLAG. This should workjoerg1-2/+14
at the very least with AIX 5.3 directly and for older, wrapper should take care. Provide some more sane defaults for XLC and bail out explicitly if XLCBASE can't be determined.
2007-08-15Use a flag to the checksum script to tell it whether we're checkingjlam3-25/+20
a distfile or a pkgsrc patch. It's simple, cleaner, less magic, etc. (duh!). While here, I notice that _CHECKSUM_CMD was already being defined in mk/checksum/checksum.mk (as it should be), so update the definition from mk/patch/patch.mk and remove it from patch.mk.
2007-08-15Move APPENDELF definition after the reassigning of MACHINE_ARCH.joerg1-15/+16
This allows cross-compiling of x86_64 from i386.
2007-08-15Create ranlib override for cross-compilation as libtool doesn'tjoerg1-1/+4
use the target version. If we ever want to create archives for the native platform, NATIVE_RANLIB similiar to NATIVE_CC should be introduced.
2007-08-15Use the new pkg_add -m for cross-compiling instead of -f.joerg1-2/+2
2007-08-14Remove bootstrap-register, bootstrap was changed a while ago to usejoerg1-10/+1
normal building and installation.
2007-08-14Fix a number of bugs in the DESTDIR support:joerg3-5/+13
- check-perms.mk was not DESTDIR aware, prefix files before passing it to the directory extraction - PKG_FILELIST_CMD was calling pkg_info, which is fine for normal installation, but fails of course for DESTDIR. Just drop the @ lines from ${_DEPENDS_PLIST} and use that. - To make he former work, ensure that _flavor-generate-metadata is part of _INSTALL_ALL_TARGETS. It was normally a dependency of _flavor-register, but that is skipped for DESTDIR. - Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-14Don't remove the whole metadata directory in _flavor-clean-metadata...jlam1-3/+4
instead only remove the files generated by _flavor-generate-metadata. This should preserve the +INSTALL and +DEINSTALL scripts (which are created during the "build" phase") across a "make update" or a "make deinstall".
2007-08-14Teach the pkgsrc/mk/checksum/checksum script how to verify patches byjlam2-50/+70
first stripping them of NetBSD RCS ID tags. Use the checksum script in the patch module to verify patch checksums instead of hand-coding a miniature version of the checksum script in the do-pkgsrc-patches target.
2007-08-14Strip out *all* of the lines containing NetBSD RCS ID tags that mayjlam1-12/+5
be lurking in patches before computing their checksum.
2007-08-14Protect the template NetBSD RCS ID tag from being expanded.jlam1-4/+4
2007-08-14Move the code that generates distinfo to a standalone AWK script.jlam3-58/+410
2007-08-14Drop EMACS_USE_POP, EMACS_USE_X and EMACS_USE_X_TOOLKIT from thejlam1-21/+1
default variable settings. These are now handled directly by the editors/emacs20 package via the options framework.
2007-08-14Avoid checking whether PKG_OPTIONS_DEPRECATED_WARNINGS is defined injlam1-9/+9
the makefile and simply handle it in the shell code. This allows for appending to PKG_OPTIONS_DEPRECATED_WARNINGS in a makefile even after bsd.options.mk is included.
2007-08-14Return the documentation for FOO.<param> or FOO.${param} when help forrillig1-3/+8
FOO is requested.
2007-08-14Rewrote the header comment.rillig1-11/+23
2007-08-14s/accept all licenses/bypass license checks/gdt1-2/+2
2007-08-14Checksum checks only make sense when distinfo is also present, sojoerg1-3/+2
move this into the conditional.
2007-08-14Don't print the message for the distribution patches if there aren't any.rillig1-2/+2
2007-08-14_ACCEPTABLE is used by some bulk builders.rillig1-1/+4
2007-08-13Suppress the "depends on installed package(s)" message so it doesn't getjlam1-2/+2
printed for each EMUL_PLATFORM that is supported by the package.
2007-08-13Factor out _REPLACE_NEWNAME_CMD.gdt1-17/+21
Use $$newname consistently rather than $PKGBASE and $PKGNAME. Rationalize @ with STEP_MSG. Ensure ${RUN} is used once, and all commands are included.
2007-08-13Fixed the definition and the documentation of MAKE_PROGRAM.rillig1-7/+8
2007-08-13PKGNAME and PKGPATH will never contain characters that need to berillig1-5/+3
escaped for HTML output.
2007-08-13APACHE_PKG_PREFIX can be ap22.rillig1-2/+2
2007-08-13Reworked the way the needed tools for the "patch" phase are determined.rillig1-18/+11
2007-08-13Replaced the comment at the beginning of the file with a useful one. Itrillig1-23/+35
explains which variables can be used in the mk.conf file. Removed the definition of CUT, since it is no longer used.