summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2001-10-05Substitute for rpath references to buildlink directories in Makefilesjlam2-8/+46
after the configure step. There's a growing number of GNU configure scripts that find a library in -L/path and automatically add -R/path to the linker flags. We need to make sure this doesn't happen to buildlink directories.
2001-10-05Move the setting of replace_files within the cookie check so that if it'sjlam1-25/+27
expanded from some expensive operation, it isn't evaluated if it's not needed. Also fix the replace-buildlink target where we were potentially evaluating ${REPLACE_BUILDLINK} twice when only once was enough.
2001-10-05Rename some replace_* variables to replace_files. I'm trying to factorjlam1-10/+10
out some common code, and this is a start to make different code pieces look more alike.
2001-10-05Factor out the pattern representing Makefiles into its own variablejlam1-6/+9
MAKEFILE_PATTERNS. Also replace -R${BUILDLINK_DIR}/lib with -R${LOCALBASE}/lib on all the REPLACE_BUILDLINK files to prevent rpath references to ${BUILDLINK_DIR} from getting into things like config scripts.
2001-10-05Replace -R${BUILDLINK_DIR}/lib with -R${LOCALBASE}/lib on all thejlam1-2/+3
REPLACE_BUILDLINK files to prevent rpath references to ${BUILDLINK_DIR} from getting into things like config scripts.
2001-10-04Use the usual _PKG_SILENT and _PKG_DEBUG definitions in theagc1-2/+3
show-installed-depends target.
2001-10-04use ${PKG_INFO} rather than pkg_info in show-installed-depends target,agc1-4/+6
so that the correct setting of PKG_DBDIR is used, and the correct pkg_info binary too, presumably. Make show-installed-depends work on Solaris (untested) by only defining the target if DEPENDS is defined.
2001-10-04Try not to have BUILDLINK_X11_*FLAGS be added multiple times to CFLAGS,jlam1-1/+3
CPPFLAGS, CXXFLAGS, or LDFLAGS.
2001-10-04If USE_IMAKE is set, then ensure that the buildlink-x11 package isn'tjlam1-1/+12
installed, as it currently breaks builds that use imake. I made an announcement on current-users and tech-pkg on this, but having the make logic place to verify that buildlink-x11 is actually gone is better.
2001-10-04Document the following variables:jlam1-5/+38
REPLACE_BUILDLINK REPLACE_BUILDLINK_PATTERNS REPLACE_BUILDLINK_SED REPLACE_LIBNAMES REPLACE_LIBNAMES_PATTERNS REPLACE_LIBNAMES_SED BUILDLINK_CONFIG_WRAPPER_SED Also prepend an underscore to REPLACE_LIBNAME_SCRIPT as it's not a variable we're exporting.
2001-10-04Fix typo in previous commit.jlam1-2/+2
2001-10-03Make explicit what the mammoth sed expression in the _BUILDLINK_USE targetjlam1-5/+12
is supposed to do: filter out libtool archives from the list of files to link into ${BUILDLINK_DIR}.
2001-10-03Invent new variables:jlam1-26/+39
REPLACE_LIBNAMES_PATTERNS REPLACE_BUILDLINK_PATTERNS They are space-separated lists of shell glob patterns representing files in which we substitute with REPLACE_LIBNAMES_SED (for replacing buildlink library names with the true library names) and REPLACE_BUILDLINK_SED (for replacing references to buildlink directories with the true install locations). This generalizes the variables (which may still be used): REPLACE_LIBNAMES, REPLACE_BUILDLINK, that contained the actual filenames. REPLACE_BUILDLINK_PATTERNS contains *.lai, *-config, *Conf.sh, and *.pc.
2001-10-03Add zh_TW dir (e.g. for lftp).wiz3-3/+15
2001-10-03Add "prdownloads.sourceforge.net" as primary site to the of listtron1-2/+3
sourceforge download servers. It is the fastest one from "ftp.netsd.org" and my home system.
2001-10-02Factor out the common code for the replace-libnames targets into a variablejlam1-54/+51
and use it instead. Also subsititute for library names in the installed libtool archives. This last bit is to fix instances where "-lncurses" has been hard-coded into *.lai files, but we are actually using -lcurses in reality (devel/tvision is one example). Problem noted by Thomas Klausner (hi wiz!).
2001-10-01Allow customizing the message for _SU_TARGET by substituting for "$action",jlam1-2/+5
where action can be "install", "package", "create user for", etc., instead of blindly always saying "install". Define "action" before calling ${_SU_TARGET} whereever it is used.
2001-10-01Have x11.buildlink.mk add -Wl,-R${X11BASE}/lib to LDFLAGS directly, insteadjlam2-5/+6
of relying on bsd.pkg.mk to do it. This change just makes x11.buildlink.mk more self-sufficient. Also add a warning that x11.buildlink.mk shouldn't be included in any buildlink.mk files since what it appends to *_POST_SED variables must come last.
2001-10-01Don't set SU_CMD twice (the setting here was wrong anyway). The defaulttv1-3/+3
may need to be platform-dependent, so let bsd.pkg.mk (not .defaults.mk set the default.
2001-09-30Add 'show-installed-depends' - neat implementation thanks to Hubert.abs1-1/+9
2001-09-26Add optional IPv6 and OpenSSL support to the "xchat" package. Both aretron1-1/+6
turned on by default but can be turned of with "USE_INET6=NO" and "XCHAT_USE_SSL=NO".
2001-09-25Require at least x11-links-0.3 to get latest round of fixes.jlam1-2/+2
2001-09-25I have no idea where it got broken, but put back the creation of .package_donemycroft1-1/+2
files.
2001-09-24Fix cut and paste error in last commit.tron1-3/+3
2001-09-24Add "PKGVERSION" to "PLIST_SUBST" by default. Trailing package sourcetron1-1/+2
version numbers (e.g. "nb1") are automatically removed.
2001-09-21Add back descriptions of MOTIF12_TYPE and MOTIF12BASE and fixjlam1-7/+38
the descriptions of MOTIF_TYPE and MOTIFBASE lost during the mk.conf.example --> bsd.pkg.defaults.mk conversion. Also, document MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT which are used as the final default values for MOTIF_TYPE and MOTIF12_TYPE. Note: none of these values need to be explicitly set, as motif.buildlink.mk will choose sensible values for all of these variables.
2001-09-21Do an immediate setting of MOTIF_TYPE and MOTIF12_TYPE so that thejlam1-3/+3
definition isn't recursive if values have already been assigned.
2001-09-21Include "bsd.own.mk" before "bsd.pkg.defaults.mk" because otherwise "?="tron1-7/+7
assignments in "/etc/mk.conf" won't work anymore.
2001-09-19Now that bsd.pkg.defaults.mk is in the tree, mk.conf.example can go away.agc1-1162/+0
2001-09-19setting MOTIFBASE explicitely breaks motif type auto detection,drochner1-3/+3
so comment it out
2001-09-18Add a new bsd.pkg.defaults.mk file, derived from the old mk.conf.example.agc2-1/+1150
This file is "included" automatically before <bsd.own.mk> includes /etc/mk.conf, so that pkgsrc-wide default values are set. It is now possible just to set values in mk.conf only where they differ from the default, thereby easing the problems of updating mk.conf when new values get added.
2001-09-14Fix problem with Solaris' /bin/sh not accepting an empty list in a forjlam1-2/+3
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>. The suggested fix was applied.
2001-09-14Document the new Motif-related variables. Deprecate USE_MOTIF in favor ofjlam1-60/+10
including motif.buildlink.mk, which contains more sophisticated and complete logic for detecting the various Motif options that may be installed. Though deprecated, USE_MOTIF is still recognized, though it does no more than include motif.buildlink.mk.
2001-09-14Define USE_X11BASE instead of just USE_X11. This makes motif.buildlink.mkjlam1-2/+2
match the behaviour of USE_MOTIF in setting PREFIX=${X11BASE}.
2001-09-13Document MOTIFBASE, MOTIF12BASE, MOTIF_TYPE, MOTIF12_TYPE.jlam1-7/+22
2001-09-13Set MOTIF12_TYPE and MOTIF_TYPE so that they may be used by other packagejlam1-1/+3
Makefiles.
2001-09-13Unify the special code to detect pre-installed Motif installationsjlam1-29/+103
(whether 2.0 or 1.2-compatible) into one file, motif.buildlink.mk. lesstif12/buildlink.mk now assumes that if you include it, then you actually want lesstif12. To select that you want a Motif-1.2-compatible installation, define USE_MOTIF12 in the package Makefile. If MOTIF12BASE is also defined, then assume it points to a valid Motif-1.2 installation. Otherwise, auto-detect whether /usr/dt is valid, or if we need lesstif12.
2001-09-13To verify a Motif-2.0 installation, test for the presence of <Xm/Xm.h> andjlam1-3/+3
<Xm/Gadget.h> instead of only <Xm/Xm.h>. This differentiates between Motif-2.0 and Motif-1.2 installations.
2001-09-13Clarify in the comments that this buildlink.mk file handlesjlam1-10/+10
Motif-*2.0*-compatible installations.
2001-09-13Switch default Motif type to OpenMotif, as it's a "real" Motif with fulljlam1-6/+5
functionality. Default remains DT-Motif on Solaris. This doesn't affect users who already have LessTif installed, as motif.buildlink.mk will use an installed Motif package in preference to the default. I have compiled and run every package in pkgsrc (as of today) that uses either USE_MOTIF or motif.buildlink.mk. They all function as well or better with OpenMotif as the installed Motif package as compared with LessTif. There was only one small API difference I detected between LessTif and OpenMotif in <Xm/Text.h>, where OpenMotif's Text.h includes <stdio.h> while LessTif's does not, but the only package that this affected (graphics/tcm) was fixed.
2001-09-13Set MOTIFBASE within the scope of the Motif-compatible package'sjlam1-6/+3
buildlink.mk as it uses values from the buildlink.mk for it's own value. Also don't pass MOTIFBASE to the MAKE_ENV as it causes the correct package buildlink.mk file to not be included.
2001-09-13Alter logic for choosing which Motif installation to use. It's now asjlam1-44/+47
follows: If MOTIFBASE is set, then assume it points to a valid Motif installation. If MOTIF_TYPE is set, then use the named Motif installation. If neither MOTIFBASE nor MOTIF_TYPE is set, then any pre-existing Motif installation is used, whether it is in /usr/dt or ${X11BASE} or a pkgsrc- installed Motif. Lastly, default to ${MOTIF_TYPE_DEFAULT}. This makes MOTIF_TYPE behave more like XAW_TYPE in that it explicitly chooses the Motif installation to use.
2001-09-12Add a just-in-time su mode for "make package" by factoring out the codeagc1-29/+34
whcih does the su(1), and using that. Also make the deinstall target use the same common code.
2001-09-11Make print-PLIST work again if no linux=procfs mounted.wiz1-6/+9
Patch by hubertf.
2001-09-10Add support for two environment variables to help update all yourmartin1-1/+12
installed packages and only rebuild everything once: STOP_DOWNLEVEL_AFTER_FIRST if set makes "make show-downlevel" stop a bit earlier (since with the other one below you will be only interested in the first downlevel pkg found). REBUILD_DOWNLEVEL_DEPENDS if set forces the pattern match for dependencies to fail whenever the installed pkg is not the version in the makefile (i.e. "make show-downlevel" would print a version mismatch for the dependecy). This causes all downlevel dependencies (and everything depending on them) to be rebuild. Enhancements, like making this all work with make command line flags and settings in /etc/mk.conf are welcome. A way to stop "make show-downlevel" through all upper levels of recursion imediately would be very usefull too.
2001-09-10Set the default value of WRKSRC in a slightly different way (from Hubertagc1-3/+2
Feyrer).
2001-09-10Define default value of WRKSRC again. It is required by the packages withoutkei1-1/+3
NO_WRKSUBDIR.
2001-09-09Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:agc1-4/+5
WRKSRC= ${WRKDIR} This is much cleaner, much more indicative of what happens, and removes another of the negative definitions (NO_.* = value).
2001-09-08Document MOTIF_TYPE, used as a hint to select the Motif installation tojlam1-1/+7
use.
2001-09-08Separate out the Motif-checking logic from lesstif/buildlink.mk into ajlam1-0/+103
separate file mk/motif.buildlink.mk.