summaryrefslogtreecommitdiff
path: root/wm/oroborox/Makefile
blob: 0183f60e485274d8ff093494a01610fbcdc3797d (plain)
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
# $NetBSD: Makefile,v 1.41 2013/09/02 19:51:28 adam Exp $
#

DISTNAME=	OroboROX-0.9.8
PKGNAME=	oroborox-0.9.8
PKGREVISION=	23
CATEGORIES=	wm
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=rox/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	rxg@NetBSD.org
HOMEPAGE=	http://roscidus.com/desktop/OroboROX
COMMENT=	The lightweight Window Manager for the ROX Desktop

DEPENDS+=	rox-lib>=2.0.2nb2:../../devel/rox-lib

WRKSRC=		${WRKDIR}/OroboROX
DIST_SUBDIR=	rox

PLATFORM=	${OPSYS}-${MACHINE_ARCH}

USE_TOOLS+=		autoconf pax pkg-config
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-xft --with-platform=${PLATFORM:Q}

PYTHON_PATCH_SCRIPTS=	Configure/OroboScheme/AppRun
PYTHON_PATCH_SCRIPTS+=	Configure/OroboScheme/AppInfo.py
PYTHON_PATCH_SCRIPTS+=	Configure/OroboScheme/Schemer.py
PYTHON_PATCH_SCRIPTS+=	Configure/Windows/AppRun
PYTHON_PATCH_SCRIPTS+=	Configure/Workspaces/AppRun

INSTALLATION_DIRS=	share/rox/OroboROX

SUBST_CLASSES+=		bin
SUBST_MESSAGE.bin=	Fixing binary path.
SUBST_STAGE.bin=	post-patch
SUBST_FILES.bin=	AppRun
SUBST_SED.bin=		-e 's,BIN="$$APP_DIR/$$PLATFORM,BIN="${PREFIX}/libexec/rox,g'

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing hardcoded paths.
SUBST_STAGE.path=	post-patch
SUBST_FILES.path=	AppRun
SUBST_SED.path=		-e 's,/usr/local,${PREFIX},g'

SUBST_CLASSES+=		lib
SUBST_MESSAGE.lib=	Fixing hardcoded paths for ROX-Lib.
SUBST_STAGE.lib=	post-patch
SUBST_FILES.lib=	Configure/Keybindings/findrox.py
SUBST_FILES.lib+=	Configure/Windows/findrox.py
SUBST_FILES.lib+=	Configure/Workspaces/findrox.py
SUBST_FILES.lib+=	Configure/OroboScheme/findrox.py
SUBST_SED.lib=		-e 's,/usr/local/lib,${PREFIX}/share/rox,g'

SUBST_CLASSES+=		py
SUBST_MESSAGE.py=	Replace shell magic by python version.
SUBST_STAGE.py=		post-patch
SUBST_FILES.py=		Configure/Keybindings/AppRun
SUBST_FILES.py+=	Configure/Keybindings/Messages/update-po
SUBST_FILES.py+=	Configure/Windows/Messages/update-po
SUBST_FILES.py+=	Configure/Workspaces/Messages/update-po
SUBST_SED.py=		-e 's,python,python${PYVERSSUFFIX},g'

BUILD_TARGET=		OroboROX
CONFIGURE_DIRS=		src

pre-configure:
	cd ${WRKSRC:Q}/src && autoconf

post-build:
	@${ECHO} "#!/bin/sh" >> ${WRKDIR:Q}/oroborox
	@${ECHO} ${PREFIX:Q}"/share/rox/OroboROX/AppRun \"\$$@\"" >> ${WRKDIR:Q}/oroborox

INSTALLATION_DIRS=	bin libexec/rox share/rox/OroboROX

do-install:
	${INSTALL_PROGRAM} ${WRKSRC:Q}/${PLATFORM:Q}/OroboROX ${DESTDIR:Q}${PREFIX:Q}/libexec/rox
	cd ${WRKSRC:Q} && pax -rw	\
		-s ',^\./${PLATFORM}$$,,' -s ',^\./${PLATFORM}/.*,,'	\
		-s ',^\./src$$,,' -s ',^\./src/.*,,'	\
		. ${DESTDIR:Q}${PREFIX:Q}/share/rox/OroboROX
	${INSTALL_SCRIPT} ${WRKDIR:Q}/oroborox ${DESTDIR:Q}${PREFIX:Q}/bin

.include "../../devel/libgetopt/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/startup-notification/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"