aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby18
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-01-14 22:05:32 +0800
committerpav <pav@FreeBSD.org>2006-01-14 22:05:32 +0800
commit3303676512fa9a2e0d1fcc4c8e43908b06c17007 (patch)
tree240865e2a86469fa6b4eb7f087141a333aae51ad /lang/ruby18
parentfd7dbf2a01800cc0db7d0619df81bfb2b6e5cfa5 (diff)
downloadfreebsd-ports-gnome-3303676512fa9a2e0d1fcc4c8e43908b06c17007.tar.gz
freebsd-ports-gnome-3303676512fa9a2e0d1fcc4c8e43908b06c17007.tar.zst
freebsd-ports-gnome-3303676512fa9a2e0d1fcc4c8e43908b06c17007.zip
- Make OpenSSL handling more obvious
Diffstat (limited to 'lang/ruby18')
-rw-r--r--lang/ruby18/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile
index 9d896530429f..b9a30687b27a 100644
--- a/lang/ruby18/Makefile
+++ b/lang/ruby18/Makefile
@@ -38,8 +38,7 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${RUBY_WRKSRC}
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
- --enable-shared \
- --with-openssl-include=${PREFIX}/include
+ --enable-shared
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LIBS="${PTHREAD_LIBS}"
@@ -52,6 +51,11 @@ INSTALLS_SHLIB= yes
MAN1= ${RUBY_NAME}.1
.include <bsd.port.pre.mk>
+
+.if defined(WITH_OPENSSL_PORT)
+CONFIGURE_ARGS+=--with-openssl-include=${LOCALBASE}/include
+.endif
+
.if ${OSVERSION} < 502102
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-eval.c
.endif