1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

Add hikari.desktop for display/login managers.

While here:
- Include bsd.port.pre.mk before checking the value of WITH_DEBUG so that
  WITH_DEBUG_PORTS is respected.
- Mention that the format of config.h may change across versions.

PR:		238019
Submitted by:	Alexander Sieg <alex@xanderio.de>
This commit is contained in:
Mateusz Piotrowski 2019-05-21 21:24:02 +00:00
parent 971e90dc09
commit d6bf27d900
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502236
2 changed files with 18 additions and 2 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= hikari
DISTVERSION= 0.1.2
PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= https://acmelabs.space/~raichoo/
@ -20,11 +21,16 @@ USE_XORG= xcb x11
NO_WRKSUBDIR= yes
SUB_FILES= hikari.desktop
SUB_LIST= COMMENT="${COMMENT}"
PLIST_FILES= bin/hikari \
man/man1/hikari.1.gz
man/man1/hikari.1.gz \
share/xsessions/hikari.desktop
PORTDATA= config.def.h
PORTDOCS= README.md
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ALL_TARGET= debug
.else
@ -36,6 +42,7 @@ OPTIONS_DEFINE= DOCS
pre-everything::
@${ECHO_MSG} "You can build hikari with your own config.h using the HIKARI_CONF knob:"
@${ECHO_MSG} "make HIKARI_CONF=/path/to/hikari/config.h install clean"
@${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h files may not work."
post-patch:
.if defined(HIKARI_CONF)
@ -50,9 +57,11 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/hikari.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDATA} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/xsessions
${INSTALL_DATA} ${WRKDIR}/hikari.desktop ${STAGEDIR}${PREFIX}/share/xsessions
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -0,0 +1,7 @@
# $FreeBSD$
[Desktop Entry]
Name=hikari
Comment=%%COMMENT%%
TryExec=hikari
Exec=hikari
Type=Application