summaryrefslogtreecommitdiff
path: root/editors/glimmer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/glimmer/Makefile')
-rw-r--r--editors/glimmer/Makefile17
1 files changed, 4 insertions, 13 deletions
diff --git a/editors/glimmer/Makefile b/editors/glimmer/Makefile
index 877b738c8812..e8cafa47a282 100644
--- a/editors/glimmer/Makefile
+++ b/editors/glimmer/Makefile
@@ -26,26 +26,17 @@ USE_GNOME= gnomeprefix gnomehack gnomelibs gnomeprint gnomevfs \
USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-regex
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/gnu" \
+ LIBS="-L${LOCALBASE}/lib -lgnuregex"
+
.if exists(/usr/lib/libcrypto.a)
PYTHON_LIBS= -lssl -lcrypto
.endif
PYTHON_LIBS+= -lutil -lreadline -lcrypt -lpython
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502104
-CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/gnu" \
- LIBS="-L${LOCALBASE}/lib -lgnuregex"
-.else
-CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -D_REGEX_H_ -D_REGEX_H" \
- LIBS="-L${LOCALBASE}/lib -lgnuregex"
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|-lpython|${PYTHON_LIBS}|g' ${WRKSRC}/configure
-.if ${OSVERSION} >= 502104
@${REINPLACE_CMD} -e 's|gnuregex\.h|regex.h|' \
${WRKSRC}/src/gtkextext/gtkextext.h
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>