summaryrefslogtreecommitdiff
path: root/x11/xenodm
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2020-07-19 11:02:12 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-19 11:02:12 +0200
commit57b24f24696583dec4eebbbd5caf8a55379c6f4b (patch)
tree2030975b2d35447fbe6a75ad505f84dea9b29c3a /x11/xenodm
parentfe6ad648ba96d948199b717d036df0dc5d7f53c1 (diff)
xenodm: start fixing install / plist stages.
Diffstat (limited to 'x11/xenodm')
-rw-r--r--x11/xenodm/Makefile39
-rw-r--r--x11/xenodm/pkg/PLIST28
2 files changed, 58 insertions, 9 deletions
diff --git a/x11/xenodm/Makefile b/x11/xenodm/Makefile
index 172c934..bdbbe97 100644
--- a/x11/xenodm/Makefile
+++ b/x11/xenodm/Makefile
@@ -27,4 +27,43 @@ RUN_DEPENDS = x11/libXcursor
CONFIGURE_STYLE = gnu
+XENODMCONFIGDIR = ${SYSCONFDIR}/X11/xenodm
+XENODMLIBDIR = ${PREFIX}/lib/X11/xenodm
+PIXMAPDIR = ${XENODMLIBDIR}/pixmaps
+EXAMPLEDIR = ${PREFIX}/share/examples/xdm
+
+.if ${MACHINE} == amd64 || ${MACHINE} == arm64 || ${MACHINE} == i386 \
+ || ${MACHINE} == macppc
+DEFAULT_VT= --with-default-vt=vt05
+.endif
+
+CONFIGURE_ARGS= \
+ $(DEFAULT_VT) \
+ --with-authdir=$(XENODMCONFIGDIR) \
+ --with-xenodmlibdir=$(XENODMCONFIGDIR) \
+ --with-pixmapdir=$(PIXMAPDIR) \
+ --with-bw-pixmap=OpenBSD_1bpp.xpm \
+ --with-color-pixmap=OpenBSD_15bpp.xpm
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKBUILD}/xenodm/xenodm ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKBUILD}/man/xenodm.1 ${PREFIX}/man/man1
+ ${INSTALL_DATA_DIR} ${XENODMLIBDIR}
+ ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKBUILD}/config/xenodm-config ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKBUILD}/config/Xresources ${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKBUILD}/config/Xservers ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKBUILD}/config/Xsession ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/config/GiveConsole ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/config/TakeConsole ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/config/Xsetup_0 ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKBUILD}/config/Xstartup ${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} ${WRKBUILD}/config/Xreset ${EXAMPLEDIR}
+ ${INSTALL_DATA_DIR} ${PIXMAPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_15bpp.xpm ${PIXMAPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_1bpp.xpm ${PIXMAPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_4bpp.xpm ${PIXMAPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/config/OpenBSD_8bpp.xpm ${PIXMAPDIR}
+
+
.include <bsd.port.mk>
diff --git a/x11/xenodm/pkg/PLIST b/x11/xenodm/pkg/PLIST
index 3bb837b..ac3c179 100644
--- a/x11/xenodm/pkg/PLIST
+++ b/x11/xenodm/pkg/PLIST
@@ -1,18 +1,28 @@
@comment $OpenBSD: PLIST,v$
@bin bin/xenodm
lib/X11/xenodm/
-lib/X11/xenodm/GiveConsole
-lib/X11/xenodm/TakeConsole
-lib/X11/xenodm/Xreset
-lib/X11/xenodm/Xresources
-lib/X11/xenodm/Xservers
-lib/X11/xenodm/Xsession
-lib/X11/xenodm/Xsetup_0
-lib/X11/xenodm/Xstartup
lib/X11/xenodm/pixmaps/
lib/X11/xenodm/pixmaps/OpenBSD_15bpp.xpm
lib/X11/xenodm/pixmaps/OpenBSD_1bpp.xpm
lib/X11/xenodm/pixmaps/OpenBSD_4bpp.xpm
lib/X11/xenodm/pixmaps/OpenBSD_8bpp.xpm
-lib/X11/xenodm/xenodm-config
@man man/man1/xenodm.1
+share/examples/xdm/
+share/examples/xdm/GiveConsole
+@sample ${SYSCONFDIR}/X11/xdm/GiveConsole
+share/examples/xdm/TakeConsole
+@sample ${SYSCONFDIR}/X11/xdm/TakeConsole
+share/examples/xdm/Xreset
+@sample ${SYSCONFDIR}/X11/xdm/Xreset
+share/examples/xdm/Xresources
+@sample ${SYSCONFDIR}/X11/xdm/Xresources
+share/examples/xdm/Xservers
+@sample ${SYSCONFDIR}/X11/xdm/Xservers
+share/examples/xdm/Xsession
+@sample ${SYSCONFDIR}/X11/xdm/Xsession
+share/examples/xdm/Xsetup_0
+@sample ${SYSCONFDIR}/X11/xdm/Xsetup_0
+share/examples/xdm/Xstartup
+@sample ${SYSCONFDIR}/X11/xdm/Xstartup
+share/examples/xdm/xenodm-config
+@sample ${SYSCONFDIR}/X11/xdm/xdm-config