mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Support stage
Modernize LIB_DEPENDS Add DOCS option
This commit is contained in:
parent
fe106da773
commit
80eab28172
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341106
1 changed files with 8 additions and 11 deletions
|
@ -12,11 +12,13 @@ DISTNAME= RexxCURL-${PORTVERSION}
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= External function package providing an interface to the cURL package
|
COMMENT= External function package providing an interface to the cURL package
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
BUILD_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
|
BUILD_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
|
||||||
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
||||||
RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
|
RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
|
||||||
|
|
||||||
USE_GMAKE= yes
|
USES= gmake
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
||||||
LDFLAGS+= ${PTHREAD_LIBS}
|
LDFLAGS+= ${PTHREAD_LIBS}
|
||||||
|
@ -26,19 +28,14 @@ USE_LDCONFIG= yes
|
||||||
DOCSDIR= ${PREFIX}/share/doc/rexx${PORTNAME}
|
DOCSDIR= ${PREFIX}/share/doc/rexx${PORTNAME}
|
||||||
DATADIR= ${PREFIX}/share/rexx${PORTNAME}
|
DATADIR= ${PREFIX}/share/rexx${PORTNAME}
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e "s| -lc | |g" -e "/\$(sharedir)\/images/d" \
|
@${REINPLACE_CMD} -e "s| -lc | |g" -e "/\$(sharedir)\/images/d" \
|
||||||
-e "/index.html/d" -e "/rxcurl64.png/d" ${WRKSRC}/Makefile.in
|
-e "/index.html/d" -e "/rxcurl64.png/d" ${WRKSRC}/Makefile.in
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${MKDIR} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/doc/index.html ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/index.html ${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
|
||||||
@${MKDIR} ${DOCSDIR}/images
|
${INSTALL_DATA} ${WRKSRC}/doc/images/rxcurl64.png ${STAGEDIR}${DOCSDIR}/images
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/images/rxcurl64.png ${DOCSDIR}/images
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue