summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2007-08-01Support automatically using pkgsrc/emulators/osf1_lib to satisfyjlam2-2/+9
EMUL_PLATFORM osf1-alpha.
2007-08-01Support automatically using pkgsrc/emulators/darwin_lib to satisfyjlam3-3/+67
EMUL_PLATFORMs darwin-i386 and darwin-powerpc.
2007-08-01Begin adding some of the basic, non-intrusive pieces of thejoerg3-9/+24
cross-compile support. - NATIVE_MACHINE_GNU_ARCH, NATIVE_LOWER_ARCH, NATIVE_MACHINE_ARCH, NATIVE_MACHINE_PLATFORM and NATIVE_MACHINE_GNU_PLATFORM work like the counterpars without NATIVE_ prefix. Expansion of NATIVE_LOWER_ARCH and NATIVE_MACHINE_ARCH is enforced early, so that MACHINE_ARCH can be overriden in mk.conf to specify the target architecture. - Provide a default of NO for USE_CROSS_COMPILE. This will be the main switch to activate cross-compiling and adding it now makes it possible to merge more of the patches for specific packages. - Set --build and --host when cross-compiling, the former using the just added variable NATIVE_MACHINE_GNU_PLATFORM. Supported-by: Google SoC 2007 Looks good: jlam@
2007-08-01Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined sojlam1-1/+3
that mirror sites will grab all of the distfiles, not just the ones that are for the native platform.
2007-08-01Remove unused _EMUL_OPSYSES.jlam1-15/+1
2007-08-01Note the proper /emul/* dir for Darwin libraries.jlam1-1/+2
2007-08-01Define PKGPATH earlier so that mk.conf can use it.joerg1-2/+4
Requested by David Brownlee on tech-pkg.
2007-07-31Automatically add EMUL_{PLATFORM,OPSYS,ARCH} to FILES_SUBST andjlam1-1/+9
PLIST_SUBST to make life easier for package maintainers.
2007-07-31Don't substitute for OPSYS- or ARCH-related variables in print-plistjlam1-8/+13
if EMUL_PLATFORMS is defined. This facilitates making EMUL_PLATFORM-specific PLISTs.
2007-07-31Teach the extract module to extract RPMs with rpm2pkg.jlam4-4/+28
2007-07-30Compute OS_VERSION on AIX directly using make substitution instead ofjoerg1-2/+2
forking a shell and sed.
2007-07-30Use variable substitution instead of calling external cut tojoerg1-3/+3
compute LOWER_OPSYS_VERSUFFIX.
2007-07-29Add net/nfdump's options descriptionsseb1-0/+2
2007-07-29Allow the code to resolve the make path to deal with a strictlyjoerg1-1/+4
local path. E.g. running make as ./make now works.
2007-07-29Remove explicit include of sys.mk, which has been made redundant byjoerg1-7/+1
jlam's include of bsd.own.mk in June 2002.
2007-07-29Better formatting for the package- and user-settable variables, andjlam1-21/+31
document the emul-* helper targets.
2007-07-29Improve the example by adding a typical use of EMUL_MODULES.linux.jlam1-0/+47
2007-07-29* Add new emulator framework in pkgsrc/mk/emulator that handles alljlam25-14/+858
binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
2007-07-28Rationalize changes-entry and commit-changes-entry.gdt1-13/+11
changes-entry now does cvs update (and cvs edit if needed), and adds the line. This target will behave the same way (with extra CVS traffic) if the file is up to date, and will be omre useful if CHANGES-YYYY is not up to date. commit-changes-entry depends on changes-entry and also commits. This target has no behavior changes. Rename _CCE_FOO variables to PKGSRC_CHANGES_FOO, and merge with existing varables. We may need a changes-entry-no-update, or a new name for what changes-entry does now. Given how infrequently CHANGES-YYYY is up to date when I want to add, I believe the new behavior will be welcome to almost everyone.
2007-07-28Also use the shell builtin for [. Add comment for test and [ about that.joerg1-3/+3
2007-07-28Always use the test builtin...joerg1-2/+2
2007-07-28Add REPLACE_KSH similiar to REPLACE_BASH and REPLACE_SH as thejoerg1-1/+10
CHECK_INTERPRETER bulk build has shown a surprising number of packages using it.
2007-07-27Move the +SHLIBS generation code back into the pkginstall module. In thejlam3-40/+43
plist module, it was being "defined" too late, and the pkginstall module never created any +SHLIBS scripts. Sidestep the tools problems with SHLIB_TYPE by pretending they don't exist (for now). XXX SHLIB_TYPE needs to be re-thought or removed altogether.
2007-07-27If using X11_TYPE=modular this means we have imake(1) from pkgsrc.tnn1-3/+7
We can't use our own imake to check for builtin packages so disable the check and always report that no builtin implementation exists. No objections on tech-pkg@
2007-07-27Don't depend on digest if FAILOVER_FETCH and NO_CHECKSUM are setjoerg1-2/+5
together.
2007-07-27Remove remaining traces of BUILDLINK_TRANSFORM.${pkg}.joerg1-5/+1
2007-07-25Documented PKGCONFIG_OVERRIDE and PKGCONFIG_OVERRIDE_STAGE.rillig1-1/+12
2007-07-25Add --config <file> from build scriptadrianp1-7/+35
2007-07-25Make sure PKG_INFO is setadrianp1-1/+2
2007-07-24Add epoll and a bunch of inspircd descriptions.adrianp1-0/+7
2007-07-23*blush* One variable was missing for the !modular case.joerg1-1/+2
2007-07-23Putting bsd.pkginstall.mk under bsd.tools.mk was a bad idea -- thejlam4-46/+44
former set several USE_TOOLS lines that were being missed by bsd.tools.mk. Rearrange the +SHLIBS code so that bsd.tools.mk can now be included after bsd.pkginstall.mk again. The +SHLIBS code has now been moved over to the plist module, which is so far the repository for all of the shlib-type handling. This should fix the problem with fonts handling being broken.
2007-07-23More aggressively conditionalize X11BASE handling. Only one casejoerg1-6/+28
is left now and that is hidden by LOCALBASE=X11BASE for modular Xorg.
2007-07-23When using check-perms, also depend on sysutils/checkperms.joerg1-1/+3
2007-07-21In cce, run cvs edit if the file is not writable. This occurs withgdt1-4/+7
CVSREAD=t, and should result in unchanged behavior with writable files. Split _CCE_CHANGES definition into _CCE_CHANGES_{DIR/BASE} to facilitate above.
2007-07-21Define ${PKG_INFO} before using it - from wiz@adrianp1-1/+2
2007-07-20Kill code to catch Zoularis installations. It is three years old andjoerg1-9/+1
anyone still having such an old installation has other issues like nbawk anyway.
2007-07-20Enabled the warnings.rillig1-1/+2
2007-07-20Added the license-handling code from bsd.pkg.mk to here. When this filerillig1-6/+23
will become active, the corresponding code will be cleaned up in bsd.pkg.mk.
2007-07-20Added code to display warnings at package build time. Among others, thisrillig1-0/+19
will be used for the licenses.
2007-07-20Rework list of default acceptable licenses.gdt1-18/+31
Use lower case to be consistent with existing license names. Declare that free/open licenses do not have -license at the end. Better articulate rationale for default choice. Add x11 license (also called mit). Note 'wait and see' stance towards gnu-gpl-v3.
2007-07-18Reversed file descriptors 1 and 2... time for a coffee break...jlam1-3/+3
2007-07-18Ignore the result of the ldconfig command.jlam1-3/+4
2007-07-18PKG_METADATADIR is the *second* argument.jlam1-2/+2
2007-07-18Add missing definition for "$ACTION", which is the first argument to thejlam1-1/+2
+SHLIBS script.
2007-07-18Add back a facility to rebuild the run-time library search paths databasejlam7-16/+107
on platforms that need it. XXX Right now, if the platform needs it, then it runs for every package. XXX This needs to be fixed to only run for packages that install shared XXX libraries. * Move mk/plist/shlib-type to mk/scripts. * Move definition of SHLIB_TYPE from mk/plist/plist.mk to bsd.pkg.mk. * Move inclusion of bsd.pkginstall.mk below bsd.tools.mk so that it can use SHLIB_TYPE. This is necessary because SHLIB_TYPE's value is the result of evaluating a command, and the command needs "TOOL" definitions provided by bsd.tools.mk.
2007-07-18Preserve the default value of PLIST_SRC as PLIST_SRC_DFLT while stilljlam1-21/+20
allowing PLIST_SRC to be overridden in a package Makefile. It's now possible to do: PLIST_SRC= ${PLIST_SRC_DFLT} ${WRKDIR}/PLIST_DYNAMIC and still use the default PLIST.* fragment handling.
2007-07-18Add makedepend as a platform tool in case of native X11, due to it'stnn1-1/+4
residing outside of X11BASE.
2007-07-17Drop trailing components like -RELEASE for FreeBSD like we do forjoerg1-1/+2
DragonFly. This fixes the version number of lsof as side effect.
2007-07-16Change default value of CREATE_WRKDIR_SYMLINK to no. In combination withjoerg1-2/+2
WRKOBJDIR, the pkgsrc tree is now read-only. Brought up multiple times on tech-pkg and no major objection.