diff options
author | marcus <marcus@FreeBSD.org> | 2009-04-26 04:50:53 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2009-04-26 04:50:53 +0800 |
commit | bad1bda778a7b47a876036198ac18f72b13b1b72 (patch) | |
tree | a8d12056f8d1f92ffd2941d021ac50e7da39a768 /math/gnumeric | |
parent | ca379c62f243a5ca0fb280975a4f995e4fd9db5c (diff) | |
download | freebsd-ports-gnome-bad1bda778a7b47a876036198ac18f72b13b1b72.tar.gz freebsd-ports-gnome-bad1bda778a7b47a876036198ac18f72b13b1b72.tar.zst freebsd-ports-gnome-bad1bda778a7b47a876036198ac18f72b13b1b72.zip |
Make Perl support optional.
PR: 131436
Submitted by: Timothy Beyer <beyert@cs.ucr.edu> (based on)
Diffstat (limited to 'math/gnumeric')
-rw-r--r-- | math/gnumeric/Makefile | 14 | ||||
-rw-r--r-- | math/gnumeric/pkg-plist | 14 |
2 files changed, 18 insertions, 10 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile index 66b8034d16db..93a9d205d20c 100644 --- a/math/gnumeric/Makefile +++ b/math/gnumeric/Makefile @@ -20,7 +20,6 @@ LIB_DEPENDS= goffice-0.8.7:${PORTSDIR}/devel/goffice \ USE_BZIP2= yes USE_GETTEXT= yes -USE_PERL5= yes USE_GMAKE= yes USE_GNOME= gnomeprefix intlhack gnomehack gnomehier \ libgsf_gnome pygtk2 desktopfileutils libgnomeui @@ -29,7 +28,7 @@ INSTALLS_OMF= yes USE_LDCONFIG= yes INSTALLS_ICONS= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --without-guile --with-bonobo --with-gnome +CONFIGURE_ARGS= --with-gnome CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \ python_prog=${PYTHON_VERSION} @@ -41,10 +40,19 @@ MAN1= gnumeric.1 ssconvert.1 ssindex.1 ssgrep.1 PLIST_SUB= VERSION=${PORTVERSION} -OPTIONS= GNOMEDB "Enable libgnomedb support" off +OPTIONS= GNOMEDB "Enable libgnomedb support" off \ + PERL "Enable Perl as extension language" on .include <bsd.port.pre.mk> +.if defined(WITH_PERL) +USE_PERL5= yes +PLIST_SUB+= PERL="" +.else +CONFIGURE_ARGS+= --without-perl +PLIST_SUB+= PERL="@comment " +.endif + .if defined(WITH_GNOMEDB) USE_GNOME+= libgnomedb CONFIGURE_ARGS+= --with-gda diff --git a/math/gnumeric/pkg-plist b/math/gnumeric/pkg-plist index 771c401664db..203131f32452 100644 --- a/math/gnumeric/pkg-plist +++ b/math/gnumeric/pkg-plist @@ -206,11 +206,11 @@ lib/gnumeric/%%VERSION%%/plugins/oleo/plugin.xml lib/gnumeric/%%VERSION%%/plugins/openoffice/openoffice.la lib/gnumeric/%%VERSION%%/plugins/openoffice/openoffice.so lib/gnumeric/%%VERSION%%/plugins/openoffice/plugin.xml -lib/gnumeric/%%VERSION%%/plugins/perl-func/perl_func.pl -lib/gnumeric/%%VERSION%%/plugins/perl-func/plugin.xml -lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.la -lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.so -lib/gnumeric/%%VERSION%%/plugins/perl-loader/plugin.xml +%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-func/perl_func.pl +%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-func/plugin.xml +%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.la +%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-loader/perl_loader.so +%%PERL%%lib/gnumeric/%%VERSION%%/plugins/perl-loader/plugin.xml lib/gnumeric/%%VERSION%%/plugins/plan_perfect/plan_perfect.la lib/gnumeric/%%VERSION%%/plugins/plan_perfect/plan_perfect.so lib/gnumeric/%%VERSION%%/plugins/plan_perfect/plugin.xml @@ -944,8 +944,8 @@ share/locale/zh_TW/LC_MESSAGES/gnumeric.mo @dirrm lib/gnumeric/%%VERSION%%/plugins/py-func @dirrm lib/gnumeric/%%VERSION%%/plugins/psiconv @dirrm lib/gnumeric/%%VERSION%%/plugins/plan_perfect -@dirrm lib/gnumeric/%%VERSION%%/plugins/perl-loader -@dirrm lib/gnumeric/%%VERSION%%/plugins/perl-func +%%PERL%%@dirrm lib/gnumeric/%%VERSION%%/plugins/perl-loader +%%PERL%%@dirrm lib/gnumeric/%%VERSION%%/plugins/perl-func @dirrm lib/gnumeric/%%VERSION%%/plugins/openoffice @dirrm lib/gnumeric/%%VERSION%%/plugins/oleo @dirrm lib/gnumeric/%%VERSION%%/plugins/numtheory |