diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-04 11:51:51 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-04 11:51:51 +0000 |
commit | fdb24c35e254d34045525798266d730768dc8509 (patch) | |
tree | 28a65afa9a9d65df02f033c9337c609c503e5a2f /net/libconnect | |
parent | PREFIX -> LOCALBASE in post-patch (diff) |
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>
Notes
Notes:
svn path=/head/; revision=78163
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 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 |