diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-04 11:51:51 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-04 11:51:51 +0000 |
commit | 6778fd0c5775ec6e0b5d0d8236d9c2fbd13aa731 (patch) | |
tree | f24b96577d3e5eb46c861edb10bb61273a09d9c7 /net/libconnect | |
parent | ff6a481fd3062fe694b39a5ff917f67e2011476d (diff) | |
download | FreeBSD-ports-6778fd0c5775ec6e0b5d0d8236d9c2fbd13aa731.zip FreeBSD-ports-6778fd0c5775ec6e0b5d0d8236d9c2fbd13aa731.tar.gz |
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 <alexs@snark.ratmir.ru>
Diffstat (limited to 'net/libconnect')
-rw-r--r-- | net/libconnect/Makefile | 8 | ||||
-rw-r--r-- | net/libconnect/pkg-plist | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/net/libconnect/Makefile b/net/libconnect/Makefile index d74f8cb..fa490a1 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 af1e1d9..ab36ea1 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 |