diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2009-03-10 18:38:53 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2009-03-10 18:38:53 +0000 |
commit | e98e72f65245719cf0ae85ff63dd01dfcd7fdf35 (patch) | |
tree | 25f306626688f95384f1e4246f718d925bb4ece2 /x11 | |
parent | Update to 4.3.21 (diff) |
add OPTIONal support for installing perl bindings
Noted by: Ohata <Ohata.Hideshi@dx.MitsubishiElectric.co.jp>
PR: ports/132450
Notes
Notes:
svn path=/head/; revision=229848
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xfce4-conf/Makefile | 26 | ||||
-rw-r--r-- | x11/xfce4-conf/pkg-plist | 13 |
2 files changed, 38 insertions, 1 deletions
diff --git a/x11/xfce4-conf/Makefile b/x11/xfce4-conf/Makefile index 3d1599310389..ed298a7d2802 100644 --- a/x11/xfce4-conf/Makefile +++ b/x11/xfce4-conf/Makefile @@ -26,10 +26,28 @@ USE_GNOME= glib20 gnometarget gnomehack gtk20 intltool intlhack pkgconfig USE_LDCONFIG= yes USE_XFCE= configenv libutil -OPTIONS= GTKDOC "install the library documentation" off +OPTIONS= GTKDOC "install the library documentation" off \ + PERL "Install Perl bindings" off + +MAN3PREFIX?= ${PREFIX}/lib/perl5/${PERL_VERSION} .include <bsd.port.pre.mk> +.if defined(WITH_PERL) +MAN3= Xfce4::Xfconf.3 +BUILD_DEPENDS+= p5-ExtUtils-Depends>=0.300:${PORTSDIR}/devel/p5-ExtUtils-Depends \ + p5-ExtUtils-PkgConfig>=1.12:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \ + p5-Glib2>=1.200:${PORTSDIR}/devel/p5-Glib2 +RUN_DEPENDS+= p5-ExtUtils-Depends>=0.300:${PORTSDIR}/devel/p5-ExtUtils-Depends \ + p5-ExtUtils-PkgConfig>=1.12:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \ + p5-Glib2>=1.200:${PORTSDIR}/devel/p5-Glib2 +CONFIGURE_ARGS+=--enable-perl-bindings +PLIST_SUB+= PERLBIND="" +.else +CONFIGURE_ARGS+=--disable-perl-bindings +PLIST_SUB+= PERLBIND="@comment " +.endif + .if defined(WITH_GTKDOC) BUILD_DEPENDS+= gtkdocize:${PORTSDIR}/textproc/gtk-doc CONFIGURE_ARGS+=--enable-gtk-doc @@ -37,4 +55,10 @@ CONFIGURE_ARGS+=--enable-gtk-doc CONFIGURE_ARGS+=--disable-gtk-doc .endif +post-build: +.if defined(WITH_PERL) + @${REINPLACE_CMD} -E -e 's! doc_(perl|site|\$$\(INSTALLDIRS\))_install$$!!' \ + ${WRKSRC}/xfconf-perl/Makefile.perl +.endif + .include <bsd.port.post.mk> diff --git a/x11/xfce4-conf/pkg-plist b/x11/xfce4-conf/pkg-plist index a11b9528a403..1a61dbace3e6 100644 --- a/x11/xfce4-conf/pkg-plist +++ b/x11/xfce4-conf/pkg-plist @@ -49,6 +49,19 @@ share/locale/sv/LC_MESSAGES/xfconf.mo share/locale/tr/LC_MESSAGES/xfconf.mo share/locale/uk/LC_MESSAGES/xfconf.mo share/locale/zh_CN/LC_MESSAGES/xfconf.mo +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Xfce4/Xfconf/Xfconf.so +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Xfce4/Xfconf/Xfconf.bs +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Xfce4/Xfconf/.packlist +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf/Install/Files.pm +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf/Install/xfconfperl.h +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf/Install/xfconfperl-autogen.h +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf/Install/xfconfperl.typemap +%%PERLBIND%%%%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf.pm +%%PERLBIND%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Xfce4/Xfconf +%%PERLBIND%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Xfce4 +%%PERLBIND%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf/Install +%%PERLBIND%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Xfce4/Xfconf +%%PERLBIND%%@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Xfce4 @dirrm share/gtk-doc/html/xfconf @dirrmtry share/gtk-doc/html @dirrmtry share/gtk-doc |