openbsd-ports/x11/dzen2/patches/patch-gadgets_Makefile
merdely 5a8e0396b8 Dzen is a general purpose messaging, notification and menu program
for X11. It was desigend to be scriptable in any language and
integrate well with window managers like dwm, wmii and xmonad though
it will work with any windowmanger.

From Dmitri Alenitchev <dma () dma dot org dot ru> (MAINTAINER) with
tweaks and help from kili@ and simon@.

ok kili@, simon@
2007-09-06 19:46:01 +00:00

60 lines
1.6 KiB
Plaintext

$OpenBSD: patch-gadgets_Makefile,v 1.1.1.1 2007/09/06 19:46:01 merdely Exp $
--- gadgets/Makefile.orig Wed Sep 5 17:28:21 2007
+++ gadgets/Makefile Wed Sep 5 17:31:27 2007
@@ -16,30 +16,21 @@ options:
@echo "LD = ${LD}"
.c.o:
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
dbar: ${OBJ}
- @echo LD $@
- @${LD} -o $@ dbar.o ${LDFLAGS}
- @strip $@
+ ${LD} -o $@ dbar.o ${LDFLAGS}
gdbar: ${OBJ}
- @echo LD $@
- @${LD} -o $@ gdbar.o ${LDFLAGS} -L${X11LIB} -lX11
- @strip $@
+ ${LD} -o $@ gdbar.o ${LDFLAGS} -L${X11LIB} -lX11
gcpubar: ${OBJ}
- @echo LD $@
- @${LD} -o $@ gcpubar.o ${LDFLAGS} -L${X11LIB}
- @strip $@
+ ${LD} -o $@ gcpubar.o ${LDFLAGS} -L${X11LIB}
textwidth: ${OBJ}
- @echo LD $@
- @${LD} -o $@ textwidth.o ${LDFLAGS} -L${X11LIB} -lX11
- @strip $@
+ ${LD} -o $@ textwidth.o ${LDFLAGS} -L${X11LIB} -lX11
clean:
@echo cleaning
@@ -49,16 +40,9 @@ clean:
@rm -f ${OBJ} textwidth
install: all
- @echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f dbar ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/dbar
- @cp -f gdbar ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/gdbar
- @cp -f gcpubar ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/gcpubar
- @cp -f textwidth ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/textwidth
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} dbar gdbar gcpubar textwidth \
+ ${DESTDIR}${PREFIX}/bin
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin