| @@ -1,111 +1,111 @@ | | | @@ -1,111 +1,111 @@ |
1 | # $NetBSD: Makefile,v 1.81 2010/01/18 09:59:30 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.82 2010/04/21 05:43:28 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= WindowMaker-0.92.0 | | 3 | DISTNAME= WindowMaker-0.92.0 |
4 | PKGNAME= ${DISTNAME:S/WindowMaker/windowmaker/} | | 4 | PKGNAME= ${DISTNAME:S/WindowMaker/windowmaker/} |
5 | PKGREVISION= 10 | | 5 | PKGREVISION= 11 |
6 | CATEGORIES= x11 wm windowmaker | | 6 | CATEGORIES= x11 wm windowmaker |
7 | MASTER_SITES= http://windowmaker.info/pub/source/release/ \ | | 7 | MASTER_SITES= http://windowmaker.info/pub/source/release/ \ |
8 | ftp://ftp.dti.ad.jp/pub/X/WindowMaker/source/release/ | | 8 | ftp://ftp.dti.ad.jp/pub/X/WindowMaker/source/release/ |
9 | EXTRACT_SUFX= .tar.bz2 | | 9 | EXTRACT_SUFX= .tar.bz2 |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://www.windowmaker.info/ | | 12 | HOMEPAGE= http://www.windowmaker.info/ |
13 | COMMENT= GNUStep-compliant NEXTSTEP(tm) window manager clone | | 13 | COMMENT= GNUStep-compliant NEXTSTEP(tm) window manager clone |
14 | | | 14 | |
15 | BROKEN_GETTEXT_DETECTION= yes | | 15 | BROKEN_GETTEXT_DETECTION= yes |
16 | | | 16 | |
17 | USE_TOOLS+= msgfmt | | 17 | USE_TOOLS+= msgfmt |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | USE_PKGLOCALEDIR= yes | | 19 | USE_PKGLOCALEDIR= yes |
20 | GNU_CONFIGURE= yes | | 20 | GNU_CONFIGURE= yes |
21 | CONFIGURE_ARGS+= --enable-usermenu | | 21 | CONFIGURE_ARGS+= --enable-usermenu |
22 | CONFIGURE_ARGS+= --enable-xinerama | | 22 | CONFIGURE_ARGS+= --enable-xinerama |
23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} | | 23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} |
24 | CONFIGURE_ARGS+= --with-gnustepdir=${PREFIX}/share/GNUstep | | 24 | CONFIGURE_ARGS+= --with-gnustepdir=${PREFIX}/share/GNUstep |
25 | CONFIGURE_ARGS+= --with-nlsdir=${PREFIX}/${PKGLOCALEDIR}/locale | | 25 | CONFIGURE_ARGS+= --with-nlsdir=${PREFIX}/${PKGLOCALEDIR}/locale |
26 | CONFIGURE_ENV+= LINGUAS=yes | | 26 | CONFIGURE_ENV+= LINGUAS=yes |
27 | CONFIGURE_ENV+= CPP_PATH=${CPP:Q} | | 27 | CONFIGURE_ENV+= CPP_PATH=${CPP:Q} |
28 | REPLACE_PERL+= util/wkdemenu.pl | | 28 | REPLACE_PERL+= util/wkdemenu.pl |
29 | | | 29 | |
30 | PKG_DESTDIR_SUPPORT= user-destdir | | 30 | PKG_DESTDIR_SUPPORT= user-destdir |
31 | | | 31 | |
32 | INSTALLATION_DIRS= share/WindowMaker/SoundSets | | 32 | INSTALLATION_DIRS= share/WindowMaker/SoundSets |
33 | INSTALLATION_DIRS+= share/WindowMaker/Sounds | | 33 | INSTALLATION_DIRS+= share/WindowMaker/Sounds |
34 | INSTALLATION_DIRS+= share/doc/WindowMaker | | 34 | INSTALLATION_DIRS+= share/doc/WindowMaker |
35 | | | 35 | |
36 | .include "../../mk/compiler.mk" | | 36 | .include "../../mk/compiler.mk" |
37 | | | 37 | |
38 | .if ${MACHINE_ARCH} != "i386" | | 38 | .if ${MACHINE_ARCH} != "i386" |
39 | CONFIGURE_ENV+= ac_cv_c_inline_asm=no | | 39 | CONFIGURE_ENV+= ac_cv_c_inline_asm=no |
40 | .endif | | 40 | .endif |
41 | | | 41 | |
42 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" | | 42 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" |
43 | GCC_REQD+= 3.0 | | 43 | GCC_REQD+= 3.0 |
44 | .endif | | 44 | .endif |
45 | | | 45 | |
46 | PKG_SYSCONFSUBDIR= WindowMaker | | 46 | PKG_SYSCONFSUBDIR= WindowMaker |
47 | EGDIR= ${PREFIX}/share/examples/WindowMaker | | 47 | EGDIR= ${PREFIX}/share/examples/WindowMaker |
48 | CONF_FILES= | | 48 | CONF_FILES= |
49 | .for f in WMGLOBAL WMRootMenu WMState WMWindowAttributes WindowMaker | | 49 | .for f in WMGLOBAL WMRootMenu WMState WMWindowAttributes WindowMaker |
50 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} | | 50 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} |
51 | .endfor | | 51 | .endfor |
52 | | | 52 | |
53 | # WINDOWMAKER_OPTIONS is a space-separated list of compile-time options | | 53 | # WINDOWMAKER_OPTIONS is a space-separated list of compile-time options |
54 | # to support. Currently supported options: | | 54 | # to support. Currently supported options: |
55 | # | | 55 | # |
56 | # kde enable support for kde/kwm window manager hints | | 56 | # kde enable support for kde/kwm window manager hints |
57 | # gnome enable support for GNOME window manager hints | | 57 | # gnome enable support for GNOME window manager hints |
58 | # openlook enable support for OPEN LOOK(tm) window manager hints | | 58 | # openlook enable support for OPEN LOOK(tm) window manager hints |
59 | # vdesktop enable support for virtual desktop. | | 59 | # vdesktop enable support for virtual desktop. |
60 | | | 60 | |
61 | WINDOWMAKER_OPTIONS?= gnome kde openlook vdesktop | | 61 | WINDOWMAKER_OPTIONS?= gnome kde openlook vdesktop |
62 | | | 62 | |
63 | BUILD_DEFS+= WINDOWMAKER_OPTIONS | | 63 | BUILD_DEFS+= WINDOWMAKER_OPTIONS |
64 | | | 64 | |
65 | .for option in ${WINDOWMAKER_OPTIONS} | | 65 | .for option in ${WINDOWMAKER_OPTIONS} |
66 | CONFIGURE_ARGS+= --enable-${option} | | 66 | CONFIGURE_ARGS+= --enable-${option} |
67 | .endfor | | 67 | .endfor |
68 | | | 68 | |
69 | post-extract: | | 69 | post-extract: |
70 | ${RM} -f ${WRKSRC}/WindowMaker/Defaults/WMState \ | | 70 | ${RM} -f ${WRKSRC}/WindowMaker/Defaults/WMState \ |
71 | ${WRKSRC}/WindowMaker/Defaults/WMWindowAttributes \ | | 71 | ${WRKSRC}/WindowMaker/Defaults/WMWindowAttributes \ |
72 | ${WRKSRC}/WindowMaker/Defaults/WindowMaker \ | | 72 | ${WRKSRC}/WindowMaker/Defaults/WindowMaker \ |
73 | ${WRKSRC}/po/zh_TW.Big5.po | | 73 | ${WRKSRC}/po/zh_TW.Big5.po |
74 | set -e; \ | | 74 | set -e; \ |
75 | for manfile in ${WRKSRC}/doc/*.1x ${WRKSRC}/doc/*/*.1x; \ | | 75 | for manfile in ${WRKSRC}/doc/*.1x ${WRKSRC}/doc/*/*.1x; \ |
76 | do \ | | 76 | do \ |
77 | ${MV} "$$manfile" `${ECHO} "$$manfile" | ${SED} "s/1x$$/1/"`; \ | | 77 | ${MV} "$$manfile" `${ECHO} "$$manfile" | ${SED} "s/1x$$/1/"`; \ |
78 | done; | | 78 | done; |
79 | set -e; \ | | 79 | set -e; \ |
80 | cd ${WRKSRC} && \ | | 80 | cd ${WRKSRC} && \ |
81 | for f in WINGs/wapplication.c WindowMaker/Defaults/WindowMaker.in \ | | 81 | for f in WINGs/wapplication.c WindowMaker/Defaults/WindowMaker.in \ |
82 | WPrefs.app/Paths.c WindowMaker/menu* WindowMaker/plmenu*; do \ | | 82 | WPrefs.app/Paths.c WindowMaker/menu* WindowMaker/plmenu*; do \ |
83 | ${SED} -e "s|/usr/local|${PREFIX}|g" \ | | 83 | ${SED} -e "s|/usr/local|${PREFIX}|g" \ |
84 | -e "s|${PREFIX}/GNUstep|${PREFIX}/share/GNUstep|g" \ | | 84 | -e "s|${PREFIX}/GNUstep|${PREFIX}/share/GNUstep|g" \ |
85 | "$$f" > "$$f".new && \ | | 85 | "$$f" > "$$f".new && \ |
86 | ${MV} "$$f".new "$$f"; \ | | 86 | ${MV} "$$f".new "$$f"; \ |
87 | done | | 87 | done |
88 | | | 88 | |
89 | post-install: | | 89 | post-install: |
90 | ${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/SoundSets/.directory | | 90 | ${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/SoundSets/.directory |
91 | ${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/Sounds/.directory | | 91 | ${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/Sounds/.directory |
92 | cd ${WRKSRC} && \ | | 92 | cd ${WRKSRC} && \ |
93 | ${INSTALL_DATA} \ | | 93 | ${INSTALL_DATA} \ |
94 | README README.definable-cursor FAQ FAQ.I18N \ | | 94 | README README.definable-cursor FAQ FAQ.I18N \ |
95 | ${DESTDIR}${PREFIX}/share/doc/WindowMaker | | 95 | ${DESTDIR}${PREFIX}/share/doc/WindowMaker |
96 | | | 96 | |
97 | .include "../../converters/libiconv/buildlink3.mk" | | 97 | .include "../../converters/libiconv/buildlink3.mk" |
98 | .include "../../devel/gettext-lib/buildlink3.mk" | | 98 | .include "../../devel/gettext-lib/buildlink3.mk" |
99 | .include "../../graphics/libungif/buildlink3.mk" | | 99 | .include "../../graphics/libungif/buildlink3.mk" |
100 | .include "../../graphics/jpeg/buildlink3.mk" | | 100 | .include "../../graphics/jpeg/buildlink3.mk" |
101 | .include "../../graphics/png/buildlink3.mk" | | 101 | .include "../../graphics/png/buildlink3.mk" |
102 | .include "../../graphics/tiff/buildlink3.mk" | | 102 | .include "../../graphics/tiff/buildlink3.mk" |
103 | .include "../../x11/libX11/buildlink3.mk" | | 103 | .include "../../x11/libX11/buildlink3.mk" |
104 | .include "../../x11/libXext/buildlink3.mk" | | 104 | .include "../../x11/libXext/buildlink3.mk" |
105 | .include "../../x11/libXft/buildlink3.mk" | | 105 | .include "../../x11/libXft/buildlink3.mk" |
106 | .include "../../x11/libXinerama/buildlink3.mk" | | 106 | .include "../../x11/libXinerama/buildlink3.mk" |
107 | .include "../../x11/libXpm/buildlink3.mk" | | 107 | .include "../../x11/libXpm/buildlink3.mk" |
108 | BUILDLINK_DEPMETHOD.libXt?= build | | 108 | BUILDLINK_DEPMETHOD.libXt?= build |
109 | .include "../../x11/libXt/buildlink3.mk" | | 109 | .include "../../x11/libXt/buildlink3.mk" |
110 | .include "../../x11/xextproto/buildlink3.mk" | | 110 | .include "../../x11/xextproto/buildlink3.mk" |
111 | .include "../../mk/bsd.pkg.mk" | | 111 | .include "../../mk/bsd.pkg.mk" |