pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc user-destdir support
details: https://anonhg.NetBSD.org/pkgsrc/rev/dcb22252d886
branches: trunk
changeset: 395276:dcb22252d886
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jul 07 19:46:23 2009 +0000
description:
user-destdir support
diffstat:
time/xchrono/Makefile | 9 ++++++---
time/xdaliclock/Makefile | 7 ++++++-
time/xdkcal/Makefile | 7 ++++---
time/xtu/Makefile | 6 ++++--
wm/fluxconf/Makefile | 4 +++-
wm/fluxconf/distinfo | 3 ++-
wm/fluxconf/patches/patch-ab | 22 ++++++++++++++++++++++
7 files changed, 47 insertions(+), 11 deletions(-)
diffs (159 lines):
diff -r 26e53cb70dfd -r dcb22252d886 time/xchrono/Makefile
--- a/time/xchrono/Makefile Tue Jul 07 19:46:20 2009 +0000
+++ b/time/xchrono/Makefile Tue Jul 07 19:46:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/11/12 13:18:50 obache Exp $
+# $NetBSD: Makefile,v 1.10 2009/07/07 19:52:35 joerg Exp $
#
DISTNAME= xchrono
@@ -11,11 +11,14 @@
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= Multi-timezone X11-based clock
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_IMAKE= yes
+INSTALLATION_DIRS= share/doc/xchrono
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xchrono
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xchrono/
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xchrono/
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
diff -r 26e53cb70dfd -r dcb22252d886 time/xdaliclock/Makefile
--- a/time/xdaliclock/Makefile Tue Jul 07 19:46:20 2009 +0000
+++ b/time/xdaliclock/Makefile Tue Jul 07 19:46:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/02 00:06:52 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/07 19:49:51 joerg Exp $
#
DISTNAME= xdaliclock-2.18
@@ -11,9 +11,14 @@
HOMEPAGE= http://www.jwz.org/xdaliclock/
COMMENT= Animated digital clock
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}/X11
GNU_CONFIGURE= yes
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+INSTALL_MAKE_FLAGS+= install_prefix=${DESTDIR}
+
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 26e53cb70dfd -r dcb22252d886 time/xdkcal/Makefile
--- a/time/xdkcal/Makefile Tue Jul 07 19:46:20 2009 +0000
+++ b/time/xdkcal/Makefile Tue Jul 07 19:46:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/07/15 15:33:46 mishka Exp $
+# $NetBSD: Makefile,v 1.8 2009/07/07 19:46:58 joerg Exp $
#
DISTNAME= xdkcal-0.9d
@@ -11,14 +11,15 @@
COMMENT= X Desktop Calendar
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xdkcal ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/xdkcal.1x ${PREFIX}/${PKGMANDIR}/man1/xdkcal.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/xdkcal ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xdkcal.1x ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xdkcal.1
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
diff -r 26e53cb70dfd -r dcb22252d886 time/xtu/Makefile
--- a/time/xtu/Makefile Tue Jul 07 19:46:20 2009 +0000
+++ b/time/xtu/Makefile Tue Jul 07 19:46:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/02 00:00:45 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/07 19:46:23 joerg Exp $
#
DISTNAME= xtu-1.2
@@ -10,13 +10,15 @@
HOMEPAGE= http://core.de/~coto/projects/xtu/
COMMENT= Small configurable X11 analog clock
+PKG_DESTDIR_SUPPORT= user-destdir
+
INSTALLATION_DIRS= bin
do-build:
cd ${WRKSRC} && ${CC} *.c -o xtu -I${X11BASE}/include ${X11_LDFLAGS} -lX11 -lXext
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xtu ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/xtu ${DESTDIR}${PREFIX}/bin/
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
diff -r 26e53cb70dfd -r dcb22252d886 wm/fluxconf/Makefile
--- a/wm/fluxconf/Makefile Tue Jul 07 19:46:20 2009 +0000
+++ b/wm/fluxconf/Makefile Tue Jul 07 19:46:23 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/11/01 14:52:25 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2009/07/07 19:52:56 joerg Exp $
#
DISTNAME= fluxconf-0.9.9
@@ -10,6 +10,8 @@
HOMEPAGE= http://devaux.fabien.free.fr/flux/
COMMENT= GTK based configuration tool for the fluxbox window manager
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= fluxbox-[0-9]*:../../wm/fluxbox
GNU_CONFIGURE= yes
diff -r 26e53cb70dfd -r dcb22252d886 wm/fluxconf/distinfo
--- a/wm/fluxconf/distinfo Tue Jul 07 19:46:20 2009 +0000
+++ b/wm/fluxconf/distinfo Tue Jul 07 19:46:23 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2007/11/04 15:46:58 rillig Exp $
+$NetBSD: distinfo,v 1.3 2009/07/07 19:52:56 joerg Exp $
SHA1 (fluxconf-0.9.9.tar.gz) = c9e262d21b4badfcebccb0f500af10c854bda9eb
RMD160 (fluxconf-0.9.9.tar.gz) = 0e9e29292d6679f0a43d6fb4d091015f66e4cf20
Size (fluxconf-0.9.9.tar.gz) = 234276 bytes
SHA1 (patch-aa) = b30a016ed61e64672240f9eb392244839c9adad9
+SHA1 (patch-ab) = 0314ff3610c6ba9c0feab523bd2d3d13a9c6970a
diff -r 26e53cb70dfd -r dcb22252d886 wm/fluxconf/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/fluxconf/patches/patch-ab Tue Jul 07 19:46:23 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2009/07/07 19:52:56 joerg Exp $
+
+--- src/Makefile.in.orig 2009-07-07 21:50:26.000000000 +0200
++++ src/Makefile.in
+@@ -645,12 +645,12 @@ uninstall-info: uninstall-info-recursive
+ #fluxkeys: fluxconf
+ # ln -sf fluxconf fluxkeys
+ install-exec-hook:
+- @ln -sf $(bindir)/fluxconf $(bindir)/fluxkeys
+- @ln -sf $(bindir)/fluxconf $(bindir)/fluxbare
+- @if ldd fluxconf |grep pango > /dev/null ; then ln -sf $(bindir)/fluxconf $(bindir)/fluxmenu; fi
++ @ln -sf ${DESTDIR}$(bindir)/fluxconf ${DESTDIR}$(bindir)/fluxkeys
++ @ln -sf ${DESTDIR}$(bindir)/fluxconf ${DESTDIR}$(bindir)/fluxbare
++ @if ldd fluxconf |grep pango > /dev/null ; then ln -sf ${DESTDIR}$(bindir)/fluxconf ${DESTDIR}$(bindir)/fluxmenu; fi
+ @for lan in ${ALL_LANG} ; do \
+- ${mkinstalldirs} $(datadir)/locale/$$lan/LC_MESSAGES; \
+- ${INSTALL} -m444 $(top_srcdir)/po/$$lan.mo $(datadir)/locale/$$lan/LC_MESSAGES/fluxconf.mo ;\
++ ${mkinstalldirs} ${DESTDIR}$(datadir)/locale/$$lan/LC_MESSAGES; \
++ ${INSTALL} -m444 $(top_srcdir)/po/$$lan.mo ${DESTDIR}$(datadir)/locale/$$lan/LC_MESSAGES/fluxconf.mo ;\
+ done ;
+
+ uninstall-local:
Home |
Main Index |
Thread Index |
Old Index