1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Remove DEBUG option and amend CONFIGURE_ARGS according to WITH_DEBUG.

Users often got confused as to why installed binaries are stripped when
they've selected DEBUG option, which should not have been an option in
the first place, but a user-facing variable.  Now sanity is restored.
This commit is contained in:
Alexey Dokuchaev 2019-12-16 10:12:04 +00:00
parent aed432302e
commit 9cbaaa1aa1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520244

View File

@ -30,7 +30,7 @@ PLIST_SUB+= LIBVERSION=6.0.0 LIBSUFX=6 VERSION=${PORTVERSION}
INFO= ${PORTNAME}
PORTDOCS= AUTHORS ChangeLog NEWS README* THANKS TODO
OPTIONS_DEFINE= DEBUG DOCS GNUTLS GSSAPI GUILE MH NNTP NLS PAM PYTHON
OPTIONS_DEFINE= DOCS GNUTLS GSSAPI GUILE MH NNTP NLS PAM PYTHON
OPTIONS_DEFAULT= GDBM GNUTLS PAM
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= BDB GDBM KYOTOCABINET LDAP MYSQL PGSQL TOKYOCABINET
@ -41,8 +41,6 @@ KYOTOCABINET_DESC= Kyoto Cabinet database support
MH_DESC= MH (Message Handling) system support
TOKYOCABINET_DESC= Tokyo Cabinet database support
DEBUG_CONFIGURE_ON= --enable-debug
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_WITH= gnutls
@ -93,6 +91,10 @@ PGSQL_CONFIGURE_WITH= postgres
TOKYOCABINET_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet
TOKYOCABINET_CONFIGURE_WITH= tokyocabinet
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
post-patch:
@${REINPLACE_CMD} -e '/MU_AUTHLIBS=/s,-lldap,-llber &,' \
${WRKSRC}/configure