Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / wm / icecc / Makefile
blob4a1c33be5abe23308985c0dd3b8f8f8042a2e894
1 # $NetBSD: Makefile,v 1.26 2013/01/26 21:38:59 adam Exp $
3 # Package version reflects icecc version, with PKGREVISION incremented
4 # for any tool updates, according to the authors scheme.
5 DISTNAME= icecc-2.9
6 PKGREVISION= 16
7 CATEGORIES= wm
8 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=icecc/}
9 DISTFILES= icecc-2.9.tar.bz2 \
10 icebgset-1.3.tar.bz2 \
11 icecursorscfg-0.6.tar.bz2 \
12 iceked-1.5.tar.bz2 \
13 iceiconcvt-1.0.tar.bz2 \
14 icemergeprefs-0.5.tar.bz2 \
15 icemc-2.1.tar.bz2 \
16 icerrun-0.5.tar.bz2 \
17 icesndcfg-1.3.tar.bz2 \
18 icets-1.4.tar.bz2 \
19 icewm4vim.tar.bz2 \
20 icewoed-1.8.tar.bz2
22 MAINTAINER= plunky@rya-online.net
23 HOMEPAGE= http://icecc.sourceforge.net/
24 COMMENT= IceWM Control Centre
26 DEPENDS+= vim-{gtk,gtk2,kde,motif,xaw}>=${VIM_VERSION}:../../editors/vim-xaw
27 DEPENDS+= ${PYPKGPREFIX}-qt3-base-[0-9]*:../../x11/py-qt3-base
29 USE_LANGUAGES= c c++
30 USE_LIBTOOL= yes
31 USE_TOOLS+= gmake
33 WRKSRC= ${WRKDIR}
35 CONFIGURE_DIRS= icecc-2.9 icebgset-1.3 iceked-1.5 icemc-2.1
36 CONFIGURE_DIRS+= icesndcfg-1.3 icets-1.4 icewoed-1.8
38 PYTHON_PATCH_SCRIPTS= icecursorscfg-0.6/icecurcfg.py iceiconcvt-1.0/iceiconcvt.py
39 PYTHON_PATCH_SCRIPTS+= icemergeprefs-0.5/icemergeprefs.py icerrun-0.5/icerrrun.py
40 PYTHON_PATCH_SCRIPTS+= icerrun-0.5/icerrun.py
42 SUBST_CLASSES+= path
43 SUBST_STAGE.path= post-patch
44 SUBST_FILES.path= icebgset-1.3/icebgset.pro icecc-2.9/icecc.pro iceked-1.5/iceked.pro
45 SUBST_FILES.path+= icemc-2.1/icemc.pro icesndcfg-1.3/icesndcfg.pro icets-1.4/icets.pro
46 SUBST_FILES.path+= icewoed-1.8/icewoed.pro
47 SUBST_FILES.path+= icecursorscfg-0.6/icecurcfg.py iceiconcvt-1.0/iceiconcvt.py
48 SUBST_FILES.path+= icemergeprefs-0.5/icemergeprefs.py
49 SUBST_SED.path= -e "s|/usr/local|${PREFIX}|g"
50 SUBST_MESSAGE.path= Fixing hardcoded paths.
52 # VIM_SUBDIR comes from "editors/vim-share/version.mk"
53 PLIST_SUBST+= VIM_SUBDIR=${VIM_SUBDIR:Q}
55 INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
56 INSTALLATION_DIRS= bin share/vim/${VIM_SUBDIR}/ftplugin \
57 share/vim/${VIM_SUBDIR}/syntax
59 do-configure:
60 . for dir in ${CONFIGURE_DIRS}
61 cd ${WRKSRC} && cd ${dir} && ${QTDIR}/bin/qmake QMAKE_MKDIR=${MKDIR:Q} QMAKE_CHK_DIR_EXISTS=${TEST:Q}\ -d
62 . endfor
64 post-build:
65 cd ${WRKSRC}/icewm4vim && ${SETENV} ${MAKE_ENV} ${GMAKE} QTDIR=${QTDIR:Q}
67 post-install:
68 . for script in ${PYTHON_PATCH_SCRIPTS}
69 ${INSTALL_SCRIPT} ${WRKSRC}/${script:Q} ${DESTDIR}${PREFIX}/bin
70 . endfor
71 ${INSTALL_PROGRAM} ${WRKSRC}/icewm4vim/icecolsel ${DESTDIR}${PREFIX}/bin
72 ${INSTALL_PROGRAM} ${WRKSRC}/icewm4vim/icefonsel ${DESTDIR}${PREFIX}/bin
73 ${INSTALL_DATA} ${WRKSRC}/icewm4vim/icewm.vim ${DESTDIR}${PREFIX}/share/vim/${VIM_SUBDIR}/ftplugin/iceprefs.vim
74 ${INSTALL_DATA} ${WRKSRC}/icewm4vim/syntax/icewm.vim ${DESTDIR}${PREFIX}/share/vim/${VIM_SUBDIR}/syntax/iceprefs.vim
76 .include "../../editors/vim-share/version.mk"
77 .include "../../lang/python/application.mk"
78 .include "../../x11/qt3-libs/buildlink3.mk"
79 .include "../../x11/qt3-tools/buildlink3.mk"
80 .include "../../mk/pthread.buildlink3.mk"
81 .include "../../mk/bsd.pkg.mk"