summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2017-06-25Fix typo.joerg1-2/+2
2017-06-23Add defaults for djbdns users and group.schmonz1-1/+15
2017-06-21Add webdav, remove qmail-run-ofmipd.schmonz1-1/+1
2017-06-21Set LIBABISUFFIX correctly on SunOS/sparc64. Tested by Jörn Clausen asjperkin1-4/+4
part of PR#52250.
2017-06-20Default to oracle-jdk8 on newer Darwin/x86_64.jperkin1-2/+3
2017-06-19Use the fgrep binary explicitly on OSF1maya1-2/+2
Fixes PR pkg/52312: "Checking for fgrep" causes Fork bomb From Naruaki Etomi
2017-06-18Add GVFS option.youri1-0/+1
2017-06-17Correct ccache(1) typo: CPPATH -> CPPPATHkamil1-2/+2
2017-06-17Correct shadowing system compiler with a pkgsrc one in ccachekamil1-2/+11
ccache needs to call real compiler and it detects it with looking in $PATH. In case of usage of /usr/local/bin/clang as the desired pkgsrc $CC option, it will be shadowed by /usr/pkg/bin/clang if someone will build it in as a package. Workaround the problem with setting CCACHE_PATH through PKGSRC_MAKE_ENV. Little bit overzelaously set it to ${CCPATH:H}:${CXXPATH:H}:${CPPATH:H}, just in case that they might be in different paths. To ensure that they are not shadowed in narrow cases, there is an option to rename clang to xclang or similar and use it this way in $PKG_CC. While there, introduce new user settable option: CCACHE_LOGFILE. If set, ccache logs to file specified in ${CCACHE_LOGFILE:Q}. +# CCACHE_LOGFILE +# If set to a file path, ccache will write information on what it is +# doing to the specified file. This is useful for tracking down +# problems. This fixes another set of problems building large projects like Clang, LLVM with ccache. Sponsored by <The NetBSD Foundation>
2017-06-14Essentially from OBATA Akio in private mail, June 2015:prlw17-6/+195
Introduce Icon Theme cache handling framework Icon Theme cache files are used by GTK+ and maintained with the gtk-update-icon-cache tool. Each Icon Theme package duplicates its own maintainance scripts: only the specified icon theme directory differs. With this framework, if packages have ICON_THEMES=yes, associated icon themes will be detected and their cache files will be maintained automatically. Change cache handling behaviour as follows: * Icon theme caches will be updated if either gtk2+ or gtk3+ gtk-update-icon-cache tool is available. * With installation of gtk2+ package, not only hicolor icon theme but also any other icon theme cache files will be updated. * Prevent removal of icon caches at deinstall, gtk3+ may be installed and using them. * Ditto with gtk3+, gtk2+ may not be installed now, so caches must be maintained by gtk3+.
2017-06-12Whilst the version of find in Darwin 8 & prior is insufficient for ↵sevan1-3/+1
installing Python modules, there are further issues with circular dependencies which need to be resolved before the change to using find from coreutils can be made. Revert previous change for now.
2017-06-12Reorder so cpan http mirrors are firstmaya1-3/+3
at least with nbftp, ftp downloads involve several slow back and forth 'cd' commands and end up being noticeably slower for lots of little files
2017-06-10Restore c++ support in ccache.mkkamil1-2/+7
The ccache.mk file was checking for languages "c" and "c++". New framework for C++ dialects (or revisions) was setting implicitly c++, translating e.g. c++11 to c++. compiler.mk set this c++ after including ccache.mk, so c++ was undefined and ccache was ignored. This helps to build large projects like LLVM+Clang+LLDB with ccache. Sponsored by <The NetBSD Foundation>
2017-06-09Register support for RELRO on Linux (limited to x86 first)khorben1-1/+7
Tested on Debian GNU/Linux 8.8 (amd64). Actual support will depend on the underlying distribution though.
2017-06-09Register support for SSP on Linux (limited to x86 first)khorben1-1/+7
Tested on Debian GNU/Linux 8.8 (amd64). Actual support will depend on the underlying distribution though.
2017-06-09Register support for FORTIFY on Linuxkhorben1-1/+4
Tested on Debian GNU/Linux 8.8 (amd64). Actual support will depend on the underlying distribution though.
2017-06-07Fix the value being substituted for TTMKFDIR in install scripts.jlam1-2/+2
@TYPE1INST@ should be replaced with ${TOOLS_PATH.type1inst}. Before this change, the sed(1) script being generated was not replaced @TYPE1INST@ at all, and instead generating a no-op substitution pattern for TTMKFDIR.
2017-06-07Substitute for LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD in scripts.jlam2-2/+19
LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD are set by emulator/*.mk in order to update the library search paths in the emulated system directories. Substitute for those values, but default them to the empty string so that the default action taken by the "shlibs" task can be used.
2017-06-07Fix subsitutions for @PKG_ADMIN@ and @PKG_INFO@.jlam1-3/+3
The substituted values need to refer to the _CMD variables that hold the path to the actual commands.
2017-06-07Subsitute for @CROSSBASE@ and @VARBASE@ in install scripts.jlam2-2/+10
${CROSSBASE} and ${VARBASE} both point to important directories for installed packages, so always substitute those values into deinstall/install scripts.
2017-06-04Bump pkgtasks dependency to latest version in pkgtools/pkgtasks.jlam1-2/+2
2017-06-02Using script templates implies a dependency on pkgtasks.jlam2-4/+39
The header template loads pkgtasks' load.subr unconditionally, so if any script templates are used, then they imply a dependency on pkgtasks. Trigger the dependency in the "pkgtasks" framework by setting USE_PKGTASKS to "yes".
2017-06-02Be more flexible about adding dependency on pkgtasks.jlam2-6/+32
Check the value of ${USE_PKGTASKS} at the time of reference for the DEPENDS variable to see whether "pkgtasks" needs to be added or not.
2017-06-02Fix typo in makefile comment.jlam1-2/+2
2017-06-02Create ${PKG_SYSCONFDIR} automatically in "pkgtasks" framework.jlam4-8/+122
Add missing feature from "pkginstall" framework where the config directory ${PKG_SYSCONFDIR} was automatically created if one of the following conditions were true: * PKG_SYSCONFSUBDIR was defined and non-empty. * Any configuration files were copied into ${PKG_SYSCONFDIR}.
2017-06-02Fix check for the proper number of words in config files variables.jlam1-17/+15
Remove unnecessary check for ${_VALID.files} in pkgtasks/files.mk that was a leftover from old, unused code.
2017-06-02Remove unused variable definition _PKGTASKS_NEEDARGS from test.mk.jlam1-9/+1
2017-06-01Remove unused scripts/shlib-type script.jlam1-46/+0
The platform/${OPSYS}.mk files now use platform-specific code to set ${_OPSYS_SHLIB_TYPE} which is the default value for ${SHLIB_TYPE}. All previous uses of this script to detect the native shared library type or native executable format have been removed from pkgsrc.
2017-06-01Use public SHLIB_TYPE instead of private _OPSYS_SHLIB_TYPE.jlam2-6/+4
2017-06-01SHLIB_TYPE definition has moved to bsd.prefs.mk.jlam1-11/+1
2017-06-01Toggle using pkgsrc/mk/smf.mk based on ${_USE_NEW_PKGINSTALL}.jlam1-1/+3
Missing change from initial commit to provide the toggle for using the new frameworks to replace pkgsrc/mk/pkginstall.
2017-06-01Add pkgsrc/mk/Kyuafile to drive all tests under pkgsrc/mk.jlam1-0/+39
2017-06-01Provide switch to activate new frameworks to replace "pkginstall".jlam7-8/+65
If ${_USE_NEW_PKGINSTALL} is "yes", then use the new "pkgtasks", "init", and "pkgformat/pkg"-scripts frameworks instead of the existing "pkginstall" framework.
2017-06-01Make creation of +DEINSTALL/+INSTALL scripts pkgformat-specific.jlam7-0/+757
Move the files needed to generate +DEINSTALL and +INSTALL scripts for the "pkg" format into pkgsrc/mk/pkgformat/pkg. Create new script templates that make use of "pkgtasks" to perform the actual tasks.
2017-06-01Add "init" framework for management of init scripts for packages.jlam19-0/+1345
${INIT_SYSTEM} is used to select the type of init system in use on the system, and currently can be either "rc.d" for the NetBSD rc.d system, or "smf" for the Solaris Service Management Facility system. pkgsrc/mk/init/smf.mk is pkgsrc/mk/smf.mk with some very minor modifications to fit into the "init" framework.
2017-06-01Add "pkgtasks" framework to generate data files used by pkgtasks.jlam25-0/+3048
A full dependency on the "pkgtasks" package will be added if a non-empty data file is generated by the framework. This framework is not yet hooked into bsd.pkg.mk, pending some other changes.
2017-05-31Document PRE_CMD.su-<target> and simplify its use in "su-target".jlam1-6/+8
This avoids needing to use a shell command to test whether ${PRE_CMD.su-<target>} is empty before executing it.
2017-05-31Check that some variables have the correct number of words.jlam1-2/+6
Assert MAKE_DIRS_PERMS and OWN_DIRS_PERMS have the right number of words before using a multivariable .for loop over those variables. This prevents errors in parsing the makefiles.
2017-05-31Move detection of shared library type into the platform file.jlam6-15/+45
Only four platforms, all BSDs, need to resolve "ELF/a.out" into either ELF or a.out. Calculate it directly in the platform file and return the value in ${_OPSYS_SHLIB_TYPE} and export that value in bsd.prefs.mk as ${SHLIB_TYPE}. Instead of requiring the file(1) tool, we can expect the base system of those BSDs to have /usr/bin/file, so make use of it directly.
2017-05-29Remove "mess822-qmailqueue" option.schmonz1-1/+0
2017-05-28Remove old logic about choosing audio device on freebsd which ismaya1-6/+1
incorrectly applying to recent versions of freebsd. always play audio to /dev/dsp.
2017-05-27Document new "mess822-qmailqueue" option.schmonz1-0/+1
2017-05-24Removed databases/postgresql91adam1-23/+2
2017-05-22Document new "qmail-remote" option.schmonz1-0/+1
2017-05-19Drop redundant dependency patterns. The normal reduction logic doesn'tjoerg1-1/+4
work for glob expressions, so multiple generic patterns would not be reduced.
2017-05-18Consolidate setting of SSP flags now that multiple compilers support it.jperkin3-19/+13
2017-05-18Register support for SSP on FreeBSD and clang (on x86 architectures)khorben2-2/+23
Support for SSP (Stack-Smashing Protection) is optional so this should not affect default builds. Tested on FreeBSD/amd64 (10.3-RELEASE-p11)
2017-05-15typoprlw11-1/+1
2017-05-11Add the zsh license and add it to the default acceptable list (MIT-like).jperkin1-2/+3
2017-05-10lang/openjdk8 works under FreeBSD/amd64 10.3ryoon1-2/+5