openbsd-ports/x11/dmenu/patches/patch-Makefile
gsoares f881b7a1fa update x11/dmenu to 4.4
tweaks/OK sthen@ jim@(MAINTAINER)
2011-08-18 14:13:28 +00:00

50 lines
1.5 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1 2011/08/18 14:13:28 gsoares Exp $
dmenu: lsx conflicts with comms/lrzsz
--- Makefile.orig Tue Jul 19 17:31:28 2011
+++ Makefile Tue Jul 26 14:51:15 2011
@@ -16,17 +16,17 @@ options:
.c.o:
@echo CC -c $<
- @${CC} -c $< ${CFLAGS}
+ ${CC} -c $< ${CFLAGS}
${OBJ}: config.mk
dmenu: dmenu.o draw.o
@echo CC -o $@
- @${CC} -o $@ dmenu.o draw.o ${LDFLAGS}
+ ${CC} -o $@ dmenu.o draw.o ${LDFLAGS}
lsx: lsx.o
@echo CC -o $@
- @${CC} -o $@ lsx.o ${LDFLAGS}
+ ${CC} -o $@ lsx.o ${LDFLAGS}
clean:
@echo cleaning
@@ -43,16 +43,17 @@ dist: clean
install: all
@echo installing executables to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f dmenu dmenu_run lsx ${DESTDIR}${PREFIX}/bin
+ @cp -f dmenu dmenu_run ${DESTDIR}${PREFIX}/bin
+ @cp -f lsx ${DESTDIR}${PREFIX}/bin/dmenu_lsx
@chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
@chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
- @chmod 755 ${DESTDIR}${PREFIX}/bin/lsx
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_lsx
@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1
- @sed "s/VERSION/${VERSION}/g" < lsx.1 > ${DESTDIR}${MANPREFIX}/man1/lsx.1
+ @sed "s/VERSION/${VERSION}/g" < lsx.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu_lsx.1
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1
- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/lsx.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu_lsx.1
uninstall:
@echo removing executables from ${DESTDIR}${PREFIX}/bin