Commit Graph

13 Commits

Author SHA1 Message Date
espie
1196a0d7f3 reorganize to avoid repeating lists of targets:
classify stuff that is used in bsd.port.subdir.mk, name them in pkgpath.mk,
and use them as .PHONY targets in both bsd.port.mk and bsd.port.subdir.mk.
2007-06-03 12:51:59 +00:00
espie
8b31dd60d8 use a simple perl script to compute initial pkgpaths... Cwd can replace
pwd -P, and we select the longest prefix from PORTSDIR_PATH.

This lets mystuff-like dirs get stripped from PKGPATH correctly, as long
as PORTSDIR_PATH is set correctly.
2006-12-26 15:00:24 +00:00
espie
26075e9de6 move TMPDIR to pkgpath.mk to allow its use from both bsd.port.mk and
bsd.port.subdir.mk

Use absolute paths to build readmes files, based on READMES_TOP, which
can be (or not) PORTSDIR.

Generate category readmes in tmp directory as well.

minor clean-ups
2006-12-02 11:27:46 +00:00
espie
926c904147 same formatting clean-up as bsd.port.mk 2006-11-27 15:38:01 +00:00
espie
19abee34c6 revert. called from bsd.port.subdir.mk as well, which doesn't define
TMPDIR.
Noticed by steven@
2006-11-03 23:19:42 +00:00
espie
ac93b5a9b2 zap a few non relevant lines, make _ALL_VARIABLES* internal.
Use TMPDIR in pkgpath.mk
2006-11-01 12:41:34 +00:00
espie
ee210c3e4e move REPORT_PROBLEM to pkgpath.mk so that we can use it from bsd.port.mk
as well.

Add the target to the default problem reporter.
Report problems while building dependencies.
2006-07-08 09:20:30 +00:00
espie
94f6ed8d7c alek@-friendly error messages. 2005-11-03 19:32:25 +00:00
espie
005b234dc8 streamline flavor_fragment after trying to explain it to sturm@.
it makes more sense to have a subdir variable as input, split it
into toset and dir as output, and to unsetenv FLAVOR SUBPACKAGE along
the lines.

End result should be equivalent, but slightly more readable.

no objection from my neighbors either...
2005-11-02 20:30:12 +00:00
naddy
56823d7f5d prevent leak of custom IFS value from shell fragment; ok sturm@ 2003-08-28 21:50:12 +00:00
espie
417fb59480 PORTSDIR_PATH ?= ${PORTSDIR}:${PORTSDIR}/mystuff support. 2003-08-15 00:05:41 +00:00
espie
b8e4c98450 move _depfile_fragment to pkgpath.mk so that it can be reused more widely.
Fix the logic so that the file is only removed where it is set.
Add some checks to *-dir-depends for more `global situations'.
2003-08-04 14:37:10 +00:00
espie
9a700ec7a5 put _flavor_fragment into a separate file, that's included from both
bsd.port.mk and bsd.port.subdir.mk. Make sure flavors are properly
separated.

Change the way bsd.port.subdir.mk works, slightly: always set full directories.
- SKIPDIR with full paths will work.
- all dirs are displayed as full package specs.

Generate complete html files.
2003-08-02 09:53:27 +00:00