summaryrefslogtreecommitdiff
path: root/wm/icecc/Makefile
blob: b77b091c2709fecdeb7d791a67179a5a45f56878 (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
# $NetBSD: Makefile,v 1.17 2009/08/26 19:58:23 sno Exp $

# Package version reflects icecc version, with PKGREVISION incremented
# for any tool updates, according to the authors scheme.
DISTNAME=		icecc-2.9
PKGREVISION=		7
CATEGORIES=		wm
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=icecc/}
DISTFILES=		icecc-2.9.tar.bz2		\
			icebgset-1.3.tar.bz2		\
			icecursorscfg-0.6.tar.bz2	\
			iceked-1.5.tar.bz2		\
			iceiconcvt-1.0.tar.bz2		\
			icemergeprefs-0.5.tar.bz2	\
			icemc-2.1.tar.bz2		\
			icerrun-0.5.tar.bz2		\
			icesndcfg-1.3.tar.bz2		\
			icets-1.4.tar.bz2		\
			icewm4vim.tar.bz2		\
			icewoed-1.8.tar.bz2

MAINTAINER=		plunky@rya-online.net
HOMEPAGE=		http://icecc.sourceforge.net/
COMMENT=		IceWM Control Centre

DEPENDS+=		vim-{gtk,gtk2,kde,motif,xaw}>=6.3.0:../../editors/vim-xaw

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake

WRKSRC=			${WRKDIR}

CONFIGURE_DIRS=		icecc-2.9 icebgset-1.3 iceked-1.5 icemc-2.1
CONFIGURE_DIRS+=	icesndcfg-1.3 icets-1.4 icewoed-1.8

PYTHON_PATCH_SCRIPTS=	icecursorscfg-0.6/icecurcfg.py iceiconcvt-1.0/iceiconcvt.py
PYTHON_PATCH_SCRIPTS+=	icemergeprefs-0.5/icemergeprefs.py icerrun-0.5/icerrrun.py
PYTHON_PATCH_SCRIPTS+=	icerrun-0.5/icerrun.py

SUBST_CLASSES+=		path
SUBST_STAGE.path=	post-patch
SUBST_FILES.path=	icebgset-1.3/icebgset.pro icecc-2.9/icecc.pro iceked-1.5/iceked.pro
SUBST_FILES.path+=	icemc-2.1/icemc.pro icesndcfg-1.3/icesndcfg.pro icets-1.4/icets.pro
SUBST_FILES.path+=	icewoed-1.8/icewoed.pro
SUBST_FILES.path+=	icecursorscfg-0.6/icecurcfg.py iceiconcvt-1.0/iceiconcvt.py
SUBST_FILES.path+=	icemergeprefs-0.5/icemergeprefs.py
SUBST_SED.path=		-e "s|/usr/local|${PREFIX}|g"
SUBST_MESSAGE.path=	Fixing hardcoded paths.

# VIM_SUBDIR comes from "editors/vim-share/version.mk"
PLIST_SUBST+=		VIM_SUBDIR=${VIM_SUBDIR:Q}

INSTALL_ENV+=		INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS=	bin share/vim/${VIM_SUBDIR}/ftplugin \
			share/vim/${VIM_SUBDIR}/syntax

do-configure:
.   for dir in ${CONFIGURE_DIRS}
	cd ${WRKSRC} && cd ${dir} && ${QTDIR}/bin/qmake QMAKE_MKDIR=${MKDIR:Q} QMAKE_CHK_DIR_EXISTS=${TEST:Q}\ -d
.   endfor

post-build:
	cd ${WRKSRC}/icewm4vim && ${SETENV} ${MAKE_ENV} ${GMAKE} QTDIR=${QTDIR:Q}

post-install:
.   for script in ${PYTHON_PATCH_SCRIPTS}
	${INSTALL_SCRIPT} ${WRKSRC}/${script:Q} ${DESTDIR}${PREFIX}/bin
.   endfor
	${INSTALL_PROGRAM} ${WRKSRC}/icewm4vim/icecolsel ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/icewm4vim/icefonsel ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/icewm4vim/icewm.vim ${DESTDIR}${PREFIX}/share/vim/${VIM_SUBDIR}/ftplugin/iceprefs.vim
	${INSTALL_DATA} ${WRKSRC}/icewm4vim/syntax/icewm.vim ${DESTDIR}${PREFIX}/share/vim/${VIM_SUBDIR}/syntax/iceprefs.vim

.include "../../editors/vim-share/version.mk"
.include "../../lang/python/application.mk"
.include "../../x11/py-qt3-base/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"