Fixup fromcvs/togit conversion
[pkgsrcv2.git] / wm / fvwm-devel / Makefile
1 # $NetBSD: Makefile,v 1.33 2010/05/28 09:33:12 martti Exp $
2
3 DISTNAME=       fvwm-${FVWM_VER}
4 #PKGREVISION=   1
5 PKGREVISION=    1
6 CATEGORIES=     x11 wm
7 MASTER_SITES=   ftp://ftp.fvwm.org/pub/fvwm/version-2/
8 EXTRACT_SUFX=   .tar.bz2
9
10 MAINTAINER=     pkgsrc-users@NetBSD.org
11 HOMEPAGE=       http://www.fvwm.org/
12 COMMENT=        Development version of X11 Virtual window manager
13 LICENSE=        gnu-gpl-v2
14
15 CONFLICTS=      fvwm1-[0-9]* fvwm2-[0-9]*
16 FVWM_VER=       2.5.30
17
18 PKG_INSTALLATION_TYPES= overwrite pkgviews
19 PKG_DESTDIR_SUPPORT=    user-destdir
20
21 USE_PKGLOCALEDIR=       YES
22 GNU_CONFIGURE=          YES
23 USE_GNU_READLINE=       YES
24 USE_TOOLS+=             perl:run
25
26 PLIST_SUBST+=           FVWM_VER=${FVWM_VER:Q}
27
28 INSTALLATION_DIRS+=     share/examples/fvwm
29
30 CONFIGURE_ARGS+=        --disable-bidi
31 CONFIGURE_ARGS+=        --without-gnome
32 CONFIGURE_ARGS+=        --without-rplay-library
33 CONFIGURE_ARGS+=        --without-stroke-library
34
35 SUBST_CLASSES+=         perl
36 SUBST_STAGE.perl=       post-build
37 SUBST_MESSAGE.perl=     Fixing path to perl
38 SUBST_FILES.perl+=      bin/fvwm-convert-2.4
39 SUBST_FILES.perl+=      bin/fvwm-convert-2.6
40 SUBST_FILES.perl+=      bin/fvwm-menu-desktop
41 SUBST_FILES.perl+=      bin/fvwm-menu-directory
42 SUBST_FILES.perl+=      bin/fvwm-menu-headlines
43 SUBST_FILES.perl+=      bin/fvwm-menu-xlock
44 SUBST_FILES.perl+=      bin/fvwm-perllib
45 SUBST_FILES.perl+=      modules/FvwmConsole/FvwmConsoleC.pl
46 SUBST_FILES.perl+=      modules/FvwmDebug/FvwmDebug
47 SUBST_FILES.perl+=      modules/FvwmDebug/FvwmGtkDebug
48 SUBST_FILES.perl+=      modules/FvwmPerl/FvwmPerl
49 SUBST_FILES.perl+=      modules/FvwmTabs/FvwmTabs
50 SUBST_FILES.perl+=      modules/FvwmWindowMenu/FvwmWindowMenu
51 SUBST_FILES.perl+=      modules/FvwmScript/Scripts/FvwmScript-ComExample
52 SUBST_FILES.perl+=      modules/FvwmScript/Scripts/FvwmScript-Setup95
53 SUBST_SED.perl=         -e "s|${TOOLS_CMD.perl}|${PERL5}|"
54
55 SUBST_CLASSES+=         mail
56 SUBST_STAGE.mail=       post-patch
57 SUBST_MESSAGE.mail=     Fixing mail address
58 SUBST_FILES.mail+=      bin/fvwm-bug.in
59 SUBST_SED.mail=         -e "s|@MAINTAINER@|${MAINTAINER}|"
60
61 post-install:
62         cd ${WRKSRC}/sample.fvwmrc && ${INSTALL_DATA} \
63                 `ls | grep -v Makefile` ${DESTDIR}${PREFIX}/share/examples/fvwm
64
65 BUILDLINK_DEPMETHOD.libXt?=     build
66
67 .include "../../devel/gettext-lib/buildlink3.mk"
68 .include "../../devel/readline/buildlink3.mk"
69 .include "../../graphics/png/buildlink3.mk"
70 .include "../../x11/libSM/buildlink3.mk"
71 .include "../../x11/libX11/buildlink3.mk"
72 .include "../../x11/libXext/buildlink3.mk"
73 .include "../../x11/libXft/buildlink3.mk"
74 .include "../../x11/libXpm/buildlink3.mk"
75 .include "../../x11/libXt/buildlink3.mk"
76 .include "../../x11/xextproto/buildlink3.mk"
77 .include "../../mk/bsd.pkg.mk"