svn commit: r341106 - head/ftp/rexx-curl

Baptiste Daroussin bapt at FreeBSD.org
Sat Jan 25 21:15:02 UTC 2014


Author: bapt
Date: Sat Jan 25 21:15:01 2014
New Revision: 341106
URL: http://svnweb.freebsd.org/changeset/ports/341106
QAT: https://qat.redports.org/buildarchive/r341106/

Log:
  Support stage
  Modernize LIB_DEPENDS
  Add DOCS option

Modified:
  head/ftp/rexx-curl/Makefile

Modified: head/ftp/rexx-curl/Makefile
==============================================================================
--- head/ftp/rexx-curl/Makefile	Sat Jan 25 21:12:24 2014	(r341105)
+++ head/ftp/rexx-curl/Makefile	Sat Jan 25 21:15:01 2014	(r341106)
@@ -12,11 +12,13 @@ DISTNAME=	RexxCURL-${PORTVERSION}
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	External function package providing an interface to the cURL package
 
+OPTIONS_DEFINE=	DOCS
+
 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
 
-USE_GMAKE=	yes
+USES=		gmake
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	${PTHREAD_CFLAGS}
 LDFLAGS+=	${PTHREAD_LIBS}
@@ -26,19 +28,14 @@ USE_LDCONFIG=	yes
 DOCSDIR=	${PREFIX}/share/doc/rexx${PORTNAME}
 DATADIR=	${PREFIX}/share/rexx${PORTNAME}
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e "s| -lc | |g" -e "/\$(sharedir)\/images/d" \
 		-e "/index.html/d" -e "/rxcurl64.png/d" ${WRKSRC}/Makefile.in
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/index.html ${DOCSDIR}
-	@${MKDIR} ${DOCSDIR}/images
-	${INSTALL_DATA} ${WRKSRC}/doc/images/rxcurl64.png ${DOCSDIR}/images
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/index.html ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
+	${INSTALL_DATA} ${WRKSRC}/doc/images/rxcurl64.png ${STAGEDIR}${DOCSDIR}/images
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list