aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-03-23 08:50:26 +0800
committeralepulver <alepulver@FreeBSD.org>2007-03-23 08:50:26 +0800
commit9a057757095870100c6fe46f63f71fc646cf65e5 (patch)
treeef2003c58ff369db97640c07b4040fe1517ca68c /lang
parentc790f58e81688ead17a4747726c1819dd0d92161 (diff)
downloadfreebsd-ports-gnome-9a057757095870100c6fe46f63f71fc646cf65e5.tar.gz
freebsd-ports-gnome-9a057757095870100c6fe46f63f71fc646cf65e5.tar.zst
freebsd-ports-gnome-9a057757095870100c6fe46f63f71fc646cf65e5.zip
- Respect X11BASE.
Reported by: linimon
Diffstat (limited to 'lang')
-rw-r--r--lang/mpd/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/mpd/Makefile b/lang/mpd/Makefile
index b343a3fc9eab..7995d99a30c8 100644
--- a/lang/mpd/Makefile
+++ b/lang/mpd/Makefile
@@ -46,7 +46,10 @@ post-patch:
s%^(MPDSRC =) .*%\1 ${WRKSRC}%; \
s%^((MPD(CMD|LIB)|MAN[135]) =) /usr/local%\1 ${PREFIX}%" \
${WRKSRC}/Configuration
-.if defined(WITHOUT_X11)
+.if !defined(WITHOUT_X11)
+ @${REINPLACE_CMD} -Ee 's%^(XINCL =) .*%\1 ${X11BASE}/include%' \
+ ${WRKSRC}/Configuration
+.else
@${REINPLACE_CMD} -Ee 's%^(XINCL =) .*%\1%' ${WRKSRC}/Configuration
.endif