mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Support staging
- Use new LIB_DEPENDS syntax
This commit is contained in:
parent
47c1ee730f
commit
6d1f7cdf90
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331224
@ -21,14 +21,13 @@ USES= pathfix pkgconfig
|
||||
|
||||
PORTDOCS= COPYING.LIB ChangeLog README
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MBOOST}
|
||||
PLIST_SUB+= BOOST=""
|
||||
CONFIGURE_ARGS+= --with-boost
|
||||
CXXFLAGS+= "-I${LOCALBASE}/include"
|
||||
LIB_DEPENDS+= boost_system:${PORTSDIR}/devel/boost-libs
|
||||
LIB_DEPENDS+= libboost_system.so:${PORTSDIR}/devel/boost-libs
|
||||
.else
|
||||
PLIST_SUB+= BOOST="@comment "
|
||||
CONFIGURE_ARGS+= --without-boost
|
||||
@ -45,6 +44,9 @@ PLIST_SUB+= PYTHON="@comment "
|
||||
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_DEFAULT= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E -e \
|
||||
's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \
|
||||
@ -54,9 +56,7 @@ pre-configure:
|
||||
@cd ${WRKSRC} && ${AUTORECONF} --force --install
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user