openbsd-ports/x11/wmname/patches/patch-Makefile
sturm e818490d69 Initial import of wmname 0.1
wmname prints/sets the window manager name property of the root window
similar to how hostname(1) behaves.

wmname is a nice utility to fix problems with JDK versions and other broken
programs assuming a reparenting window manager for instance.

ok bernd@
2009-03-16 20:42:41 +00:00

36 lines
907 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2009/03/16 20:42:41 sturm Exp $
--- Makefile.orig Sat Aug 2 20:36:10 2008
+++ Makefile Mon Mar 16 21:20:36 2009
@@ -15,15 +15,12 @@ options:
@echo "LD = ${LD}"
.c.o:
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
wmname: ${OBJ}
- @echo LD $@
- @${LD} -o $@ ${OBJ} ${LDFLAGS}
- @strip $@
+ ${LD} -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@@ -38,10 +35,9 @@ dist: clean
@rm -rf wmname-${VERSION}
install: all
- @echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f wmname ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/wmname
+ @echo installing executable file to ${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} wmname ${PREFIX}/bin
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin