summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-07-15 11:48:34 +0000
committeradrianp <adrianp>2008-07-15 11:48:34 +0000
commitc0ea969d9961efbeed1da25c0ab7e5ad683a350a (patch)
treecc42f5ad07207a93d965ea8be8ed09d513b89922 /chat
parent6aa8dd9e061ba85f0ed7744ccefbabf097f9bd18 (diff)
downloadpkgsrc-c0ea969d9961efbeed1da25c0ab7e5ad683a350a.tar.gz
Make sure the pkgconfig directory exists before we try and copy a file there
Don't bother doing any SSL magic if the user hasn't set the SSL option
Diffstat (limited to 'chat')
-rw-r--r--chat/inspircd/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/chat/inspircd/Makefile b/chat/inspircd/Makefile
index 20e79ad04a8..8a5a712304b 100644
--- a/chat/inspircd/Makefile
+++ b/chat/inspircd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2008/06/14 14:30:23 adrianp Exp $
+# $NetBSD: Makefile,v 1.15 2008/07/15 11:48:34 adrianp Exp $
#
DISTNAME= InspIRCd-1.1.20
@@ -100,7 +100,7 @@ CHECK_BUILTIN.openssl:=no
post-extract:
${MV} ${WRKDIR}/inspircd ${WRKDIR}/${DISTNAME:S/InspIRCd/inspircd/}
-.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) && !empty(PKG_OPTIONS:Mssl)
${CP} ${FILESDIR}/openssl.pc ${WRKSRC}/openssl.pc
SUBST_FILES.conf+= ${WRKSRC}/openssl.pc
SUBST_SED.conf+= -e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g"
@@ -108,7 +108,8 @@ SUBST_SED.conf+= -e "s|@SSLVER@|${BUILTIN_VERSION.openssl}|g"
.endif
pre-configure:
-.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) && !empty(PKG_OPTIONS:Mssl)
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig
${CP} ${WRKSRC}/openssl.pc ${BUILDLINK_DIR}/lib/pkgconfig
.endif
.if defined(MODULES)