diff options
author | obache <obache> | 2007-12-20 11:56:45 +0000 |
---|---|---|
committer | obache <obache> | 2007-12-20 11:56:45 +0000 |
commit | 2bc5bff1c91a152310c3e422b4ed2f504935e29a (patch) | |
tree | f18b1ec4e579eb1c2430034bd2b74d3aaef89589 /x11 | |
parent | b004aa7e46a3a4fa5291cb260fbfa93f003f05e8 (diff) | |
download | pkgsrc-2bc5bff1c91a152310c3e422b4ed2f504935e29a.tar.gz |
* Add missing DEPENDs
* install 'chooser' more conditionally
* DESTDIR ready
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xdm3d/Makefile | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/x11/xdm3d/Makefile b/x11/xdm3d/Makefile index 185b01ae8c5..21c894d8a00 100644 --- a/x11/xdm3d/Makefile +++ b/x11/xdm3d/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2007/02/22 19:01:28 wiz Exp $ +# $NetBSD: Makefile,v 1.18 2007/12/20 11:56:45 obache Exp $ DISTNAME= xdm3d-1.0 PKGREVISION= 1 @@ -9,8 +9,6 @@ MAINTAINER= root@garbled.net HOMEPAGE= http://www.hijinks.com/~spade/linux/XBanner/ COMMENT= Replacement for xdm with 3D effects -BROKEN_IN= pkgsrc-2006Q1 pkgsrc-2006Q4 - WRKSRC= ${WRKDIR}/xdm NO_INSTALL_MANPAGES= yes USE_IMAKE= yes @@ -18,6 +16,8 @@ USE_IMAKE= yes PLIST_SRC= ${WRKDIR}/PLIST-src INSTALLATION_DIRS= bin +PKG_DESTDIR_SUPPORT= user-destdir + .include "../../mk/bsd.prefs.mk" .if exists(${X11BASE}/lib/X11/xdm) @@ -29,30 +29,41 @@ PKG_FAIL_REASON+= "Cannot find xdm directory." .endif do-install: - echo "${X11BASE} ${XDMDIR}" - ${INSTALL_PROGRAM} ${WRKSRC}/xdm ${PREFIX}/bin/xdm3d - ${INSTALL_DATA_DIR} ${PREFIX}/share/xdm3d - ${INSTALL_DATA} ${XDMDIR}/GiveConsole ${PREFIX}/share/xdm3d - ${INSTALL_DATA} ${XDMDIR}/TakeConsole ${PREFIX}/share/xdm3d - ${INSTALL_DATA} ${XDMDIR}/Xaccess ${PREFIX}/share/xdm3d - ${INSTALL_DATA} ${XDMDIR}/Xservers ${PREFIX}/share/xdm3d - ${INSTALL_DATA} ${XDMDIR}/Xsession ${PREFIX}/share/xdm3d + ${ECHO} "${X11BASE} ${XDMDIR}" + ${INSTALL_PROGRAM} ${WRKSRC}/xdm ${DESTDIR}${PREFIX}/bin/xdm3d + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xdm3d + ${INSTALL_DATA} ${XDMDIR}/GiveConsole ${DESTDIR}${PREFIX}/share/xdm3d + ${INSTALL_DATA} ${XDMDIR}/TakeConsole ${DESTDIR}${PREFIX}/share/xdm3d + ${INSTALL_DATA} ${XDMDIR}/Xaccess ${DESTDIR}${PREFIX}/share/xdm3d + ${INSTALL_DATA} ${XDMDIR}/Xservers ${DESTDIR}${PREFIX}/share/xdm3d + ${INSTALL_DATA} ${XDMDIR}/Xsession ${DESTDIR}${PREFIX}/share/xdm3d @if [ -r ${XDMDIR}/Xsetup ]; then \ - ${INSTALL_DATA} ${XDMDIR}/Xsetup ${PREFIX}/share/xdm3d; \ + ${INSTALL_DATA} ${XDMDIR}/Xsetup ${DESTDIR}${PREFIX}/share/xdm3d; \ sedexpr='-e s|^share/xdm3d/Xsetup_0$$|@comment\ &|'; \ elif [ -r ${XDMDIR}/Xsetup_0 ]; then \ - ${INSTALL_DATA} ${XDMDIR}/Xsetup_0 ${PREFIX}/share/xdm3d; \ + ${INSTALL_DATA} ${XDMDIR}/Xsetup_0 ${DESTDIR}${PREFIX}/share/xdm3d; \ sedexpr='-e s|^share/xdm3d/Xsetup$$|@comment\ &|'; \ fi; \ ${SED} "$$sedexpr" ${PKGDIR}/PLIST > ${PLIST_SRC} - ${INSTALL_PROGRAM} ${XDMDIR}/chooser ${PREFIX}/share/xdm3d - ${INSTALL_DATA_DIR} ${PREFIX}/share/xdm3d/authdir - ${CHMOD} 700 ${PREFIX}/share/xdm3d/authdir + @if [ -r ${XDMDIR}/chooser ]; then \ + ${INSTALL_PROGRAM} ${XDMDIR}/chooser ${DESTDIR}${PREFIX}/share/xdm3d; \ + elif [ -r ${X11BASE}/libexec/cooser ]; then \ + ${INSTALL_PROGRAM} ${X11BASE}/libexec/chooser ${DESTDIR}${PREFIX}/share/xdm3d; \ + else \ + ${INSTALL_PROGRAM} ${WRKSRC}/chooser ${DESTDIR}${PREFIX}/share/xdm3d; \ + fi + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xdm3d/authdir + ${CHMOD} 700 ${DESTDIR}${PREFIX}/share/xdm3d/authdir ${SED} -e 's@${XDMDIR}@${PREFIX}/share/xdm3d@' < \ ${XDMDIR}/xdm-config > \ - ${PREFIX}/share/xdm3d/xdm-config - ${INSTALL_DATA} ${WRKSRC}/Xresources.3D ${PREFIX}/share/xdm3d/Xresources + ${DESTDIR}${PREFIX}/share/xdm3d/xdm-config + ${INSTALL_DATA} ${WRKSRC}/Xresources.3D ${DESTDIR}${PREFIX}/share/xdm3d/Xresources ${ECHO} 'DisplayManager*loginmoveInterval: 10' >> \ - ${PREFIX}/share/xdm3d/xdm-config + ${DESTDIR}${PREFIX}/share/xdm3d/xdm-config +.include "../../x11/libXau/buildlink3.mk" +.include "../../x11/libXdmcp/buildlink3.mk" +.include "../../x11/libXmu/buildlink3.mk" +.include "../../x11/libXt/buildlink3.mk" +.include "../../mk/xaw.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |