mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Convert to new options framework
This commit is contained in:
parent
f2894a6ab8
commit
dd6a120ad9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298897
1 changed files with 9 additions and 7 deletions
|
@ -33,18 +33,20 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
|
|||
|
||||
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
||||
|
||||
.if defined(WITHOUT_CURL)
|
||||
CONFIGURE_ARGS+= --without-curl
|
||||
.else
|
||||
OPTIONS_DEFINE= CURL
|
||||
OPTIONS_DEFAULT=CURL
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MCURL}
|
||||
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
||||
CONFIGURE_ARGS+= --with-curl
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-curl
|
||||
.endif
|
||||
|
||||
run-autotools:: run-autotools-aclocal
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_CMD} "Define WITHOUT_CURL to disable remote fetch (curl) support in the installmanager"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
||||
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
|
||||
|
|
Loading…
Add table
Reference in a new issue