Skip to content

Commit

Permalink
devel/xmake: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
The previous commit brought back MANPREFIX.

Reported by:	antoine
  • Loading branch information
5u623l20 committed Jan 31, 2024
1 parent ef11261 commit d449cc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions devel/xmake/files/patch-Makefile
Expand Up @@ -5,16 +5,16 @@
PREFIX ?= /usr/local
IBDIR= $(PREFIX)/bin
-IMDIR= $(PREFIX)/man/man1
+IMDIR= $(MANPREFIX)/share/man/man1
+IMDIR= $(PREFIX)/share/man/man1
BSD_INSTALL_PROGRAM ?= install -c -s -m 755
BSD_INSTALL_MAN ?= install -c -m 644

@@ -19,6 +19,6 @@ install: all
rm -f $(OBJS) $(EXE)

install: all
- $(BSD_INSTALL_PROGRAM) $(EXE) $(IBDIR)/$(EXE)
- $(BSD_INSTALL_MAN) ${.CURDIR}/xmake.1 $(IMDIR)/xmake.1
+ $(BSD_INSTALL_PROGRAM) $(EXE) $(DESTDIR)$(IBDIR)/$(EXE)
+ $(BSD_INSTALL_MAN) ${.CURDIR}/xmake.1 $(DESTDIR)$(IMDIR)/xmake.1

0 comments on commit d449cc2

Please sign in to comment.