mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Convert to new options helper
- Strip shared library - Support STAGEDIR
This commit is contained in:
parent
88d1cdc90f
commit
16d60ffe42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331407
1 changed files with 17 additions and 50 deletions
|
@ -16,65 +16,32 @@ LIB_DEPENDS= libxapian.so:${PORTSDIR}/databases/xapian-core
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS LUA PERL PHP PYTHON RUBY
|
OPTIONS_DEFINE= DOCS LUA PERL PHP PYTHON RUBY
|
||||||
OPTIONS_DEFAULT=PHP PYTHON RUBY
|
OPTIONS_DEFAULT=PHP PYTHON RUBY
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
PORTSCOUT= limitw:1,even
|
PORTSCOUT= limitw:1,even
|
||||||
|
|
||||||
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
|
CONFIGURE_ARGS= --datarootdir=${DATADIR} --docdir=${DOCSDIR} \
|
||||||
--without-csharp --without-java --without-tcl
|
--without-csharp --without-java --without-tcl
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP}
|
||||||
|
|
||||||
|
LUA_CONFIGURE_ENV= LUA="${LUA_CMD}" LUA_INC="${LUA_INCDIR}" LUA_LIB="${LUA_MODLIBDIR}" LUA_SO=.so
|
||||||
|
LUA_CONFIGURE_WITH= lua
|
||||||
|
LUA_USE= LUA=5.1+
|
||||||
|
PERL_CONFIGURE_ENV= PERL_LIB=${SITE_PERL}
|
||||||
|
PERL_CONFIGURE_WITH= perl
|
||||||
|
PERL_USES= perl5
|
||||||
|
PHP_CONFIGURE_ENV= PHP_CONFIG=${LOCALBASE}/bin/php-config
|
||||||
|
PHP_CONFIGURE_WITH= php
|
||||||
|
PHP_USE= PHP=yes PHP_BUILD=yes
|
||||||
|
PYTHON_CONFIGURE_ENV+= PYTHON_LIB=${PYTHON_SITELIBDIR}
|
||||||
|
PYTHON_CONFIGURE_WITH= python
|
||||||
|
PYTHON_USE= PYTHON=yes
|
||||||
|
RUBY_CONFIGURE_WITH= ruby
|
||||||
|
RUBY_USE= RUBY=yes RUBY_RDOC=no
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MLUA}
|
|
||||||
CONFIGURE_ARGS+=--with-lua
|
|
||||||
CONFIGURE_ENV+= LUA="${LUA_CMD}" LUA_INC="${LUA_INCDIR}" LUA_LIB="${LUA_MODLIBDIR}" LUA_SO=.so
|
|
||||||
USE_LUA= 5.1+
|
|
||||||
PLIST_SUB+= LUA=""
|
|
||||||
.else
|
|
||||||
PLIST_SUB+= LUA="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPERL}
|
|
||||||
CONFIGURE_ARGS+=--with-perl
|
|
||||||
CONFIGURE_ENV+= PERL_LIB="${SITE_PERL}"
|
|
||||||
USES+= perl5
|
|
||||||
PLIST_SUB+= PERL=""
|
|
||||||
.else
|
|
||||||
PLIST_SUB+= PERL="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPHP}
|
|
||||||
CONFIGURE_ARGS+=--with-php
|
|
||||||
CONFIGURE_ENV+= PHP_CONFIG="${LOCALBASE}/bin/php-config"
|
|
||||||
USE_PHP= yes
|
|
||||||
USE_PHP_BUILD= yes
|
|
||||||
PLIST_SUB+= PHP=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-php
|
|
||||||
PLIST_SUB+= PHP="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPYTHON}
|
|
||||||
CONFIGURE_ARGS+=--with-python
|
|
||||||
CONFIGURE_ENV+= PYTHON_LIB="${PYTHON_SITELIBDIR}"
|
|
||||||
USE_PYTHON= yes
|
|
||||||
PLIST_SUB+= PYTHON=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-python
|
|
||||||
PLIST_SUB+= PYTHON="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MRUBY}
|
|
||||||
CONFIGURE_ARGS+=--with-ruby
|
|
||||||
USE_RUBY= yes
|
|
||||||
USE_RUBY_RDOC= no
|
|
||||||
PLIST_SUB+= RUBY=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-ruby
|
|
||||||
PLIST_SUB+= RUBY="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
|
@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
|
||||||
# do not install rdoc
|
# do not install rdoc
|
||||||
|
|
Loading…
Add table
Reference in a new issue