pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/tuxracer Add DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/8c45bf6e64d6
branches: trunk
changeset: 531909:8c45bf6e64d6
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Aug 08 17:21:15 2007 +0000
description:
Add DESTDIR support.
diffstat:
games/tuxracer/Makefile | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r c8bb7f17d281 -r 8c45bf6e64d6 games/tuxracer/Makefile
--- a/games/tuxracer/Makefile Wed Aug 08 17:20:36 2007 +0000
+++ b/games/tuxracer/Makefile Wed Aug 08 17:21:15 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2007/01/29 17:01:21 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2007/08/08 17:21:15 joerg Exp $
#
DISTNAME= tuxracer-0.61
@@ -13,6 +13,7 @@
COMMENT= 3D penguin racing game using OpenGL
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
@@ -22,15 +23,17 @@
CONFIGURE_ENV+= CFLAGS=${CFLAGS:M*:Q}
USE_LANGUAGES= c c++
+INSTALLATION_DIRS= share/doc/html/tuxracer share/examples/tuxracer \
+ share/tuxracer
+
post-install:
- @-${MKDIR} ${PREFIX}/share/doc/html/tuxracer ${PREFIX}/share/examples/tuxracer ${PREFIX}/share/tuxracer
cd ${WRKSRC}/html && \
- ${PAX} -rw . ${PREFIX}/share/doc/html/tuxracer/
+ ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/html/tuxracer/
cd ${WRKSRC}/contrib && \
- ${PAX} -rw . ${PREFIX}/share/examples/tuxracer/
+ ${PAX} -rw . ${DESTDIR}${PREFIX}/share/examples/tuxracer/
cd ${WRKDIR}/${PKGBASE}-data-${PKGVERSION:C/nb[0-9]*$//} && \
- ${PAX} -rw . ${PREFIX}/share/tuxracer/
- cd ${PREFIX}/share/tuxracer && \
+ ${PAX} -rw . ${DESTDIR}${PREFIX}/share/tuxracer/
+ cd ${DESTDIR}${PREFIX}/share/tuxracer && \
${FIND} . -type f -exec ${CHMOD} 444 {} \;
.include "../../audio/SDL_mixer/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index