add OPTIONal support for installing perl bindings
Noted by: Ohata <Ohata.Hideshi@dx.MitsubishiElectric.co.jp> PR: ports/132450
This commit is contained in:
parent
5bb6bc7936
commit
e98e72f652
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229848
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user