pkgsrc/games/aop/patches/patch-aa
2013-10-17 09:12:42 +00:00

27 lines
712 B
Text

$NetBSD: patch-aa,v 1.4 2013/10/17 09:12:42 roy Exp $
- use pkgsrc LDFLAGS
- DESTDIR support
--- Makefile.orig 2004-03-19 14:26:46.000000000 +0000
+++ Makefile
@@ -1,13 +1,14 @@
-LDFLAGS = -lncurses
+LIBS+=-lcurses
aop: aop.c
+ ${CC} ${LDFLAGS} aop.c ${LIBS} -o aop
install: aop
- install -d /usr/local/bin
- install -d /usr/local/share/aop
- install -m 755 aop /usr/local/bin/aop
- install -m 644 aop-level-*.txt /usr/local/share/aop/
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/aop
+ ${BSD_INSTALL_PROGRAM} aop ${DESTDIR}${PREFIX}/bin/aop
+ ${BSD_INSTALL_DATA} aop-level-*.txt ${DESTDIR}${PREFIX}/share/aop/
clean:
rm -f aop core* *~