]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - phantasia/Makefile
tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
[bsdgames-darwin.git] / phantasia / Makefile
index 2ab61d5137f9ec8e028a8966da243fe0d37e0aa2..25b344a8a755225e57821e6baab04df40ff13488 100644 (file)
@@ -1,11 +1,11 @@
-#      $NetBSD: Makefile,v 1.13 1997/11/20 00:12:37 mrg Exp $
+#      $NetBSD: Makefile,v 1.17 1998/12/06 09:06:46 dbj Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
 PROG=  phantasia
 SRCS=  fight.c gamesupport.c interplayer.c io.c main.c misc.c phantglobs.c
 
-DPADD= ${LIBM} ${LIBCURSES} ${LIBTERM} ${LIBCOMPAT}
-LDADD= -lm -lcurses -ltermlib -lcompat
+DPADD= ${LIBM} ${LIBCURSES}
+LDADD= -lm -lcurses
 HIDEGAME=hidegame
 SETGIDGAME=yes
 USETBL=
@@ -23,9 +23,9 @@ host_phantglobs.o: ${.CURDIR}/phantglobs.c
 setup.o: ${.CURDIR}/setup.c
        ${HOST_COMPILE.c} ${.CURDIR}/setup.c
 
-afterinstall: 
-       ./setup -m ${.CURDIR}/monsters.asc
-       chown games:bin ${DESTDIR}/var/games/phantasia/*
+afterinstall:
+       DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
+       chown games:games ${DESTDIR}/var/games/phantasia/*
 
 # Make Phantasia map.  Change the map commands reflect your installation.
 # PLOTDEVICE is used for plotting the map.  Change as appropriate.