diff options
author | oliver <oliver@FreeBSD.org> | 2009-03-11 02:38:53 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2009-03-11 02:38:53 +0800 |
commit | 19f368f670576a4986cafbb5d0d581bd41e11ca2 (patch) | |
tree | 1b595f9528c4d2186b4c1e9e50421f2a05c99670 | |
parent | 217a9608a04f2881a3455e4010f374524536c169 (diff) | |
download | freebsd-ports-gnome-19f368f670576a4986cafbb5d0d581bd41e11ca2.tar.gz freebsd-ports-gnome-19f368f670576a4986cafbb5d0d581bd41e11ca2.tar.zst freebsd-ports-gnome-19f368f670576a4986cafbb5d0d581bd41e11ca2.zip |
add OPTIONal support for installing perl bindings
Noted by: Ohata <Ohata.Hideshi@dx.MitsubishiElectric.co.jp>
PR: ports/132450
-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 |