summaryrefslogtreecommitdiff
path: root/x11-wm/nscde/Makefile
blob: 19db8220408093150f8c17c799a24bc64b8e6cc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
PORTNAME=	nscde
DISTVERSION=	2.2
PORTREVISION=	1
CATEGORIES=	x11-wm
MASTER_SITES=	https://github.com/NsCDE/NsCDE/releases/download/${DISTVERSION}/

MAINTAINER=	freebsd@ny-central.org
COMMENT=	Modern CDE clone based on fvwm
WWW=		https://github.com/NsCDE/NsCDE

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=5.7.0:sysutils/py-psutil@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \
		dunst:sysutils/dunst \
		font-bh-lucidatypewriter-100dpi>0:x11-fonts/font-bh-lucidatypewriter-100dpi \
		fvwm2:x11-wm/fvwm2 \
		gsed:textproc/gsed \
		ksh93:shells/ksh93 \
		qt5-style-plugins>=5.0.0:x11-themes/qt5-style-plugins \
		roboto-fonts-ttf>0:x11-fonts/roboto-fonts-ttf \
		stalonetray:x11/stalonetray \
		xclip:x11/xclip \
		xdotool:x11/xdotool \
		xdpyinfo:x11/xdpyinfo \
		xrandr>0:x11/xrandr \
		xrdb:x11/xrdb \
		xrefresh:x11/xrefresh \
		xscreensaver:x11/xscreensaver \
		xsettingsd:x11/xsettingsd \
		xterm:x11/xterm
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=5.7.0:sysutils/py-psutil@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \
		dunst:sysutils/dunst \
		font-bh-lucidatypewriter-100dpi>0:x11-fonts/font-bh-lucidatypewriter-100dpi \
		fvwm2:x11-wm/fvwm2 \
		gsed:textproc/gsed \
		qt5-style-plugins>=5.0.0:x11-themes/qt5-style-plugins \
		roboto-fonts-ttf>0:x11-fonts/roboto-fonts-ttf \
		stalonetray:x11/stalonetray \
		xclip:x11/xclip \
		xdotool:x11/xdotool \
		xdpyinfo:x11/xdpyinfo \
		xrandr>0:x11/xrandr \
		xrdb:x11/xrdb \
		xrefresh:x11/xrefresh \
		xscreensaver:x11/xscreensaver \
		xsettingsd:x11/xsettingsd \
		xterm:x11/xterm

USES=		desktop-file-utils gettext magick pkgconfig:build pyqt:5 \
		python:3.7+ shebangfix xorg
USE_PYQT=	pyqt5
USE_XORG=	x11 xext xpm

SHEBANG_FILES=	doc/examples/fvwm3-per-monitor/nitrowrapper

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-python-shebang="${PYTHON_CMD}"

DOCSDIR=	${PREFIX}/share/doc/nscde
SUB_FILES=	pkg-message
SUB_LIST=	EXAMPLESDIR=${EXAMPLESDIR} \
		PREFIX=${PREFIX}

WRKSRC=		${WRKDIR}/NsCDE-${DISTVERSION}

OPTIONS_DEFINE=			DOCS EXAMPLES
OPTIONS_DEFAULT=		DOCS EXAMPLES KSH2020 SUDO
OPTIONS_SINGLE=			IMGMAG KSHOPT ROOTAUTH
OPTIONS_SINGLE_KSHOPT=		ASTKSH KSH2020
OPTIONS_SINGLE_ROOTAUTH=	DOAS SUDO
ASTKSH_DESC=			AT&T KSH93
DOAS_DESC=			Use doas to elevate privileges
KSH2020_DESC=			Updated AT&T KSH93 (arm64 compatible)
KSHOPT_DESC=			KSH version
ROOTAUTH_DESC=			Root authorization
SUDO_DESC=			Use sudo to elevate privileges

ASTKSH_RUN_DEPENDS=	ksh93:shells/ast-ksh93
DOAS_RUN_DEPENDS=	doas:security/doas
KSH2020_RUN_DEPENDS=	ksh93:shells/ksh93
SUDO_RUN_DEPENDS=	sudo:security/sudo

_SUDOFILES=	data/fvwm/Functions.fvwmconf.in lib/scripts/SysActionDialog

.include <bsd.port.pre.mk>

UNAME_M_CMD=	${UNAME} -m
PLIST_SUB+=	ARCH="$$(${UNAME_M_CMD})"

post-patch-DOAS-on:
	( for SUDOF in ${_SUDOFILES}; do ${REINPLACE_CMD} -e "s@sudo \\-n@doas@g" ${WRKSRC}/$${SUDOF}; done )

post-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}/${PREFIX}/share/examples/${PORTNAME}
	${MV} ${STAGEDIR}/${PREFIX}/share/doc/nscde/examples/* ${STAGEDIR}/${PREFIX}/share/examples/${PORTNAME}/

post-install-EXAMPLES-off:
	${RM} -fr ${STAGEDIR}/${PREFIX}/share/doc/nscde/examples/*

.include <bsd.port.post.mk>