| @@ -1,20 +1,20 @@ | | | @@ -1,20 +1,20 @@ |
1 | $NetBSD: patch-ab,v 1.5 2015/12/29 04:22:33 dholland Exp $ | | 1 | $NetBSD: patch-ab,v 1.5.10.1 2017/05/01 08:48:09 bsiegert Exp $ |
2 | | | 2 | |
3 | - Support passing sysconfdir as a configure option. | | 3 | - Support passing sysconfdir as a configure option. |
4 | - Honor COMPILER_RPATH_FLAG. | | 4 | - Honor COMPILER_RPATH_FLAG. |
5 | - Use pkgconfig to find freetype. | | 5 | - Use pkgconfig to find freetype. |
6 | | | 6 | |
7 | --- configure.orig 2003-10-20 22:32:25.000000000 -0400 | | 7 | --- configure.orig 2003-10-21 02:32:25.000000000 +0000 |
8 | +++ configure | | 8 | +++ configure |
9 | @@ -27,6 +27,7 @@ GUI_GNOME=bug | | 9 | @@ -27,6 +27,7 @@ GUI_GNOME=bug |
10 | # --bindir=DIR where to install the executables | | 10 | # --bindir=DIR where to install the executables |
11 | # --datadir=DIR where to install the supporting data files | | 11 | # --datadir=DIR where to install the supporting data files |
12 | # --docdir=DIR where to install the :help files & other docs | | 12 | # --docdir=DIR where to install the :help files & other docs |
13 | +# --sysconfdir=DIR where to install the configuration files | | 13 | +# --sysconfdir=DIR where to install the configuration files |
14 | # --prefix=DIR like --bindir=DIR/bin --datadir=DIR/lib/elvis | | 14 | # --prefix=DIR like --bindir=DIR/bin --datadir=DIR/lib/elvis |
15 | # --ioctl=VARIETY type of tty ioctl to use: termios, termio, sgtty | | 15 | # --ioctl=VARIETY type of tty ioctl to use: termios, termio, sgtty |
16 | # --verbose explain each decision | | 16 | # --verbose explain each decision |
17 | @@ -66,6 +67,7 @@ PREFIX=/usr | | 17 | @@ -66,6 +67,7 @@ PREFIX=/usr |
18 | BINDIR='$(PREFIX)/bin' | | 18 | BINDIR='$(PREFIX)/bin' |
19 | DATADIR='$(PREFIX)/share/elvis/' | | 19 | DATADIR='$(PREFIX)/share/elvis/' |
20 | DOCDIR='$(PREFIX)/share/elvis/doc/' | | 20 | DOCDIR='$(PREFIX)/share/elvis/doc/' |
| @@ -110,21 +110,27 @@ $NetBSD: patch-ab,v 1.5 2015/12/29 04:22 | | | @@ -110,21 +110,27 @@ $NetBSD: patch-ab,v 1.5 2015/12/29 04:22 |
110 | + CC="$CC `pkg-config --cflags freetype2 xft`" | | 110 | + CC="$CC `pkg-config --cflags freetype2 xft`" |
111 | ;; | | 111 | ;; |
112 | *) | | 112 | *) |
113 | xft="" | | 113 | xft="" |
114 | @@ -950,7 +955,7 @@ esac | | 114 | @@ -950,7 +955,7 @@ esac |
115 | | | 115 | |
116 | | | 116 | |
117 | # Generate the "config.h" file | | 117 | # Generate the "config.h" file |
118 | -ELVISPATH=`echo "~/.elvis:/etc/elvis:$DATADIR:$DOCDIR" | sed s,'$(DATADIR)',"$DATADIR",g\;s,'$(PREFIX)',"$PREFIX",g` | | 118 | -ELVISPATH=`echo "~/.elvis:/etc/elvis:$DATADIR:$DOCDIR" | sed s,'$(DATADIR)',"$DATADIR",g\;s,'$(PREFIX)',"$PREFIX",g` |
119 | +ELVISPATH=`echo "~/.elvis:$SYSCONFDIR:$DATADIR:$DOCDIR" | sed s,'$(DATADIR)',"$DATADIR",g\;s,'$(PREFIX)',"$PREFIX",g` | | 119 | +ELVISPATH=`echo "~/.elvis:$SYSCONFDIR:$DATADIR:$DOCDIR" | sed s,'$(DATADIR)',"$DATADIR",g\;s,'$(PREFIX)',"$PREFIX",g` |
120 | cat >config.h <<eof-config | | 120 | cat >config.h <<eof-config |
121 | /* config.h */ | | 121 | /* config.h */ |
122 | | | 122 | |
123 | @@ -1200,6 +1205,7 @@ s!^PREFIX=.*!PREFIX=$PREFIX! | | 123 | @@ -1195,11 +1200,12 @@ eof-generic |
| | | 124 | |
| | | 125 | esac |
| | | 126 | cat >>$tmp <<eof-all |
| | | 127 | -s!^LIBS=.*!LIBS=$GNOMELIBS $XLIBS $LIBS! |
| | | 128 | +s!^LIBS=.*!LIBS=$LDFLAGS $GNOMELIBS $XLIBS $LIBS! |
| | | 129 | s!^PREFIX=.*!PREFIX=$PREFIX! |
124 | s!^BINDIR=.*!BINDIR=$BINDIR! | | 130 | s!^BINDIR=.*!BINDIR=$BINDIR! |
125 | s!^DATADIR=.*!DATADIR=$DATADIR! | | 131 | s!^DATADIR=.*!DATADIR=$DATADIR! |
126 | s!^DOCDIR=.*!DOCDIR=$DOCDIR! | | 132 | s!^DOCDIR=.*!DOCDIR=$DOCDIR! |
127 | +s!^SYSCONFDIR=.*!SYSCONFDIR=$SYSCONFDIR! | | 133 | +s!^SYSCONFDIR=.*!SYSCONFDIR=$SYSCONFDIR! |
128 | eof-all | | 134 | eof-all |
129 | if [ -d /usr/local/X11/include ] | | 135 | if [ -d /usr/local/X11/include ] |
130 | then | | 136 | then |