Merge from vendor branch TNF:
[pkgsrcv2.git] / pkgtools / xpkgwedge / files / xpkgwedge.def
1 /*      $NetBSD: xpkgwedge.def,v 1.1 1998/06/26 16:39:25 tv Exp $       */
2
3 #ifdef AfterVendorCF
4
5 /*
6  * The following defines inject a "PREFIX=" make-time option that lets the
7  * user twiddle the ProjectRoot setting with a single switch.  This makes
8  * the command "make PREFIX=/path/to/install all install" work as expected.
9  *
10  * Note that ?= is a special Pmake construct and probably will not work on
11  * other makes.
12  */
13
14 #ifndef ProjectRoot
15 /*
16  * Assume the worst:  this should not happen in practice, as this setup
17  * does not work with the classical /usr/{include,lib}/X11 layout.
18  */
19 #define ProjectRoot /usr/X11
20 #endif
21
22 PREFIX ?= ProjectRoot
23 X11_ROOT = ProjectRoot
24
25 #undef ProjectRoot
26 #define ProjectRoot $(PREFIX)
27 #undef ConfigDir
28 #define ConfigDir $(X11_ROOT)/lib/X11/config
29
30 /*
31  * This emits dual -I and -L options to cc automatically, one for the actual
32  * X11 root, and one for the user-set prefix.
33  */
34 #define X11ProjectRoot $(X11_ROOT)
35
36 #endif