aboutsummaryrefslogtreecommitdiffstats
path: root/editors/le/Makefile
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-07-04 06:11:38 +0800
committergahr <gahr@FreeBSD.org>2008-07-04 06:11:38 +0800
commit688d0026ed566d1d7f3c704c42b4c9f0f0a53dd0 (patch)
tree78c8fe5a7ca95e47861f4a3cabfb1215e0360bfa /editors/le/Makefile
parent96ed0899a95b8f961e3f12574b7be4135ee83f1c (diff)
downloadfreebsd-ports-gnome-688d0026ed566d1d7f3c704c42b4c9f0f0a53dd0.tar.gz
freebsd-ports-gnome-688d0026ed566d1d7f3c704c42b4c9f0f0a53dd0.tar.zst
freebsd-ports-gnome-688d0026ed566d1d7f3c704c42b4c9f0f0a53dd0.zip
- Respect NOPORTDATA [1]
- Remove 5.x support Reported by: QA Tindy Curse [1]
Diffstat (limited to 'editors/le/Makefile')
-rw-r--r--editors/le/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/editors/le/Makefile b/editors/le/Makefile
index 7cd36623aca3..e3c9b995410e 100644
--- a/editors/le/Makefile
+++ b/editors/le/Makefile
@@ -26,17 +26,19 @@ PLIST_FILES+= bin/le
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 502010
GNU_REGEX_H= gnu/regex.h
-.else
-GNU_REGEX_H= gnuregex.h
-.endif
post-patch:
@${REINPLACE_CMD} -e 's|@LIBOBJS@||g ; \
s|@ALLOCA@||g' ${WRKSRC}/lib/Makefile.in
@${REINPLACE_CMD} -e 's|<regex.h>|<${GNU_REGEX_H}>|g' \
${WRKSRC}/src/highli.h
+.if defined(NOPORTDATA)
+ @${REINPLACE_CMD} -e 's|misc||g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|le.hlp||g;468s|install-pkgdataDATA||' \
+ ${WRKSRC}/src/Makefile.in
+.endif
post-install:
.if !defined(NOPORTDOCS)