Only depend on perl when the perl option is selected. From Matthew Mondor in PR 45205.diff -r1.28 -r1.29 pkgsrc/x11/rxvt-unicode/Makefile
(wiz)
@@ -1,38 +1,37 @@ | @@ -1,38 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.28 2010/08/21 16:37:14 seb Exp $ | 1 | # $NetBSD: Makefile,v 1.29 2011/08/04 23:40:48 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= rxvt-unicode-9.06 | 3 | DISTNAME= rxvt-unicode-9.06 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= x11 | 5 | CATEGORIES= x11 | |
6 | MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/ \ | 6 | MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/ \ | |
7 | http://dist.schmorp.de/rxvt-unicode/Attic/ | 7 | http://dist.schmorp.de/rxvt-unicode/Attic/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://software.schmorp.de/pkg/rxvt-unicode.html | 11 | HOMEPAGE= http://software.schmorp.de/pkg/rxvt-unicode.html | |
12 | COMMENT= rxvt clone supporting Xft fonts and Unicode | 12 | COMMENT= rxvt clone supporting Xft fonts and Unicode | |
13 | LICENSE= gnu-gpl-v2 | 13 | LICENSE= gnu-gpl-v2 | |
14 | 14 | |||
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | USE_LANGUAGES= c c++ | 16 | USE_LANGUAGES= c c++ | |
17 | USE_TOOLS+= pkg-config | 17 | USE_TOOLS+= pkg-config | |
18 | USE_TOOLS+= perl:run | |||
19 | USE_FEATURES+= snprintf | 18 | USE_FEATURES+= snprintf | |
20 | 19 | |||
21 | CONFIGURE_ENV+= ac_cv_path_TIC=no | 20 | CONFIGURE_ENV+= ac_cv_path_TIC=no | |
22 | 21 | |||
23 | PKG_DESTDIR_SUPPORT= user-destdir | 22 | PKG_DESTDIR_SUPPORT= user-destdir | |
24 | INSTALLATION_DIRS+= share/doc/rxvt-unicode share/examples/rxvt-unicode | 23 | INSTALLATION_DIRS+= share/doc/rxvt-unicode share/examples/rxvt-unicode | |
25 | 24 | |||
26 | post-install: | 25 | post-install: | |
27 | ${INSTALL_DATA} ${WRKSRC}/README.FAQ \ | 26 | ${INSTALL_DATA} ${WRKSRC}/README.FAQ \ | |
28 | ${DESTDIR}${PREFIX}/share/doc/rxvt-unicode | 27 | ${DESTDIR}${PREFIX}/share/doc/rxvt-unicode | |
29 | .for t in rxvt-unicode.termcap rxvt-unicode.terminfo | 28 | .for t in rxvt-unicode.termcap rxvt-unicode.terminfo | |
30 | ${INSTALL_DATA} ${WRKSRC}/doc/etc/${t} \ | 29 | ${INSTALL_DATA} ${WRKSRC}/doc/etc/${t} \ | |
31 | ${DESTDIR}${PREFIX}/share/examples/rxvt-unicode | 30 | ${DESTDIR}${PREFIX}/share/examples/rxvt-unicode | |
32 | .endfor | 31 | .endfor | |
33 | 32 | |||
34 | .include "options.mk" | 33 | .include "options.mk" | |
35 | 34 | |||
36 | .include "../../x11/libXpm/buildlink3.mk" | 35 | .include "../../x11/libXpm/buildlink3.mk" | |
37 | .include "../../x11/libX11/buildlink3.mk" | 36 | .include "../../x11/libX11/buildlink3.mk" | |
38 | .include "../../mk/bsd.pkg.mk" | 37 | .include "../../mk/bsd.pkg.mk" |
@@ -1,35 +1,36 @@ | @@ -1,35 +1,36 @@ | |||
1 | # $NetBSD: options.mk,v 1.6 2008/04/12 22:43:15 jlam Exp $ | 1 | # $NetBSD: options.mk,v 1.7 2011/08/04 23:40:48 wiz Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rxvt-unicode | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.rxvt-unicode | |
4 | PKG_SUPPORTED_OPTIONS= perl unicode3 xft2 rxvt-term | 4 | PKG_SUPPORTED_OPTIONS= perl unicode3 xft2 rxvt-term | |
5 | PKG_SUGGESTED_OPTIONS= perl unicode3 xft2 | 5 | PKG_SUGGESTED_OPTIONS= perl unicode3 xft2 | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | .if !empty(PKG_OPTIONS:Mrxvt-term) | 9 | .if !empty(PKG_OPTIONS:Mrxvt-term) | |
10 | CONFIGURE_ARGS+= --with-term=rxvt | 10 | CONFIGURE_ARGS+= --with-term=rxvt | |
11 | .endif | 11 | .endif | |
12 | 12 | |||
13 | PLIST_VARS+= perl | 13 | PLIST_VARS+= perl | |
14 | .if !empty(PKG_OPTIONS:Mperl) | 14 | .if !empty(PKG_OPTIONS:Mperl) | |
15 | USE_TOOLS+= perl:run | |||
15 | CONFIGURE_ARGS+= --enable-perl | 16 | CONFIGURE_ARGS+= --enable-perl | |
16 | PLIST.perl= yes | 17 | PLIST.perl= yes | |
17 | .include "../../lang/perl5/buildlink3.mk" | 18 | .include "../../lang/perl5/buildlink3.mk" | |
18 | USE_TOOLS+= perl | 19 | USE_TOOLS+= perl | |
19 | .else | 20 | .else | |
20 | CONFIGURE_ARGS+= --disable-perl | 21 | CONFIGURE_ARGS+= --disable-perl | |
21 | .endif | 22 | .endif | |
22 | 23 | |||
23 | # use 21 instead of 16 bits to represent unicode characters | 24 | # use 21 instead of 16 bits to represent unicode characters | |
24 | .if !empty(PKG_OPTIONS:Municode3) | 25 | .if !empty(PKG_OPTIONS:Municode3) | |
25 | CONFIGURE_ARGS+= --enable-unicode3 | 26 | CONFIGURE_ARGS+= --enable-unicode3 | |
26 | .else | 27 | .else | |
27 | CONFIGURE_ARGS+= --disable-unicode3 | 28 | CONFIGURE_ARGS+= --disable-unicode3 | |
28 | .endif | 29 | .endif | |
29 | 30 | |||
30 | .if !empty(PKG_OPTIONS:Mxft2) | 31 | .if !empty(PKG_OPTIONS:Mxft2) | |
31 | CONFIGURE_ARGS+= --enable-xft | 32 | CONFIGURE_ARGS+= --enable-xft | |
32 | .include "../../x11/libXft/buildlink3.mk" | 33 | .include "../../x11/libXft/buildlink3.mk" | |
33 | .else | 34 | .else | |
34 | CONFIGURE_ARGS+= --disable-xft | 35 | CONFIGURE_ARGS+= --disable-xft | |
35 | .endif | 36 | .endif |