openbsd-ports/x11/slock/patches/patch-Makefile
wcmaier 48c639f70b Update to 0.8.
Diff originally from Gleydson Soares <gsoares at gmail dot com>, who
also takes maintainership. Thanks! Tweaks from kili@ (the Makefile
nazi) and myself.

ok kili@
2008-06-02 20:09:53 +00:00

33 lines
815 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2008/06/02 20:09:53 wcmaier Exp $
--- Makefile.orig Thu Mar 13 11:58:47 2008
+++ Makefile Mon Jun 2 14:55:45 2008
@@ -16,14 +16,12 @@ options:
@echo "LD = ${LD}"
.c.o:
- @echo CC $<
- @${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
slock: ${OBJ}
- @echo LD $@
- @${LD} -o $@ ${OBJ} ${LDFLAGS}
+ ${LD} -o $@ ${OBJ} ${LDFLAGS}
@strip $@
clean:
@@ -40,10 +38,7 @@ dist: clean
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f slock ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/slock
- @chmod u+s ${DESTDIR}${PREFIX}/bin/slock
+ @${BSD_INSTALL_PROGRAM} slock ${DESTDIR}${PREFIX}/bin
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin