summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-10-23 08:14:50 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-10-23 08:14:50 +0000
commit57e1943128f3b3641e48174c5c5b138f6c871df9 (patch)
treeec9776a88783d47313873c06ee591767595c8269 /editors
parentUpdate to 0.1.1. (diff)
Attempt to fix breakage when building on ssl-enabled systems (add -lcrypto if
/usr/lib/libcrypto.a exists). Also add -lutil for glimmer which seems required to build it with Python2.0. Submitted by: bento
Notes
Notes: svn path=/head/; revision=34125
Diffstat (limited to 'editors')
-rw-r--r--editors/glimmer/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/glimmer/Makefile b/editors/glimmer/Makefile
index d0d7f8d5fca7..2b6eab24ff41 100644
--- a/editors/glimmer/Makefile
+++ b/editors/glimmer/Makefile
@@ -20,10 +20,14 @@ USE_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
+PYTHON_LIBS= -lutil -lreadline -lcrypt -lpython
+.if exists(/usr/lib/libcrypto.a)
+PYTHON_LIBS+= -lcrypto
+.endif
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
- s|-lpython|-lreadline -lcrypt -lpython|g ; \
+ s|-lpython|${PYTHON_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \