From 6778fd0c5775ec6e0b5d0d8236d9c2fbd13aa731 Mon Sep 17 00:00:00 2001 From: edwin Date: Fri, 4 Apr 2003 11:51:51 +0000 Subject: Port net/libconnect installation problem fix When NOPROFILE variable is set the port libconnect could not be installed. The installation procedure from the Makefile always tried to install the libconnect_p.a file but if NOPROFILE is set the profiled version is not built. PR: ports/50544 Submitted by: Alex Semenyaka --- net/libconnect/Makefile | 8 ++++++++ net/libconnect/pkg-plist | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'net/libconnect') diff --git a/net/libconnect/Makefile b/net/libconnect/Makefile index d74f8cb2a80a..fa490a127af0 100644 --- a/net/libconnect/Makefile +++ b/net/libconnect/Makefile @@ -15,10 +15,18 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= alexs@snark.rinet.ru COMMENT= Tell programs to which IP-address they should bind +.if defined(NOPROFILE) +PLIST_SUB+= NOPROFILE="@comment " +.else +PLIST_SUB+= NOPROFILE="" +.endif + do-install: -@${MKDIR} ${PREFIX}/lib @${INSTALL_PROGRAM} ${WRKSRC}/libconnect.a ${PREFIX}/lib +.if !defined(NOPROFILE) @${INSTALL_PROGRAM} ${WRKSRC}/libconnect_p.a ${PREFIX}/lib +.endif @${INSTALL_PROGRAM} ${WRKSRC}/libconnect.so.1 ${PREFIX}/lib @${LN} -fs libconnect.so.1 ${PREFIX}/lib/libconnect.so -@${MKDIR} ${DOCSDIR} diff --git a/net/libconnect/pkg-plist b/net/libconnect/pkg-plist index af1e1d94d3c7..ab36ea1b09aa 100644 --- a/net/libconnect/pkg-plist +++ b/net/libconnect/pkg-plist @@ -1,5 +1,5 @@ lib/libconnect.a -lib/libconnect_p.a +%%NOPROFILE%%lib/libconnect_p.a lib/libconnect.so.1 lib/libconnect.so share/doc/libconnect/readme -- cgit