summaryrefslogtreecommitdiff
path: root/devel/ncurses/files/patch-misc_ncurses-config.in
blob: 4412f80c36c8688e5c6ca064e1cde179f2bb7af9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- misc/ncurses-config.in.orig	2021-01-20 15:29:14 UTC
+++ misc/ncurses-config.in
@@ -151,7 +151,7 @@ while [ $# -gt 0 ]; do
 		if [ "x@WITH_OVERWRITE@" = xno ]; then
 			INCS="$INCS -I${includesubdir}"
 		fi
-		if [ "${includedir}" != /usr/include ]; then
+		if [ "${includedir}" != %%PREFIX%%/include ]; then
 			INCS="$INCS -I${includedir}"
 		fi
 		sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
@@ -229,7 +229,7 @@ ENDECHO
 		INCS=
 		if [ "x@WITH_OVERWRITE@" = xno ]; then
 			INCS="${includesubdir}"
-		elif [ "${includedir}" != /usr/include ]; then
+		elif [ "${includedir}" != %%PREFIX%%/include ]; then
 			INCS="${includedir}"
 		fi
 		echo $INCS