aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/mapedit/Makefile4
-rw-r--r--www/mapedit/scripts/post-patch3
2 files changed, 4 insertions, 3 deletions
diff --git a/www/mapedit/Makefile b/www/mapedit/Makefile
index f2dda8f3ff84..500cd1a21a53 100644
--- a/www/mapedit/Makefile
+++ b/www/mapedit/Makefile
@@ -18,6 +18,10 @@ RUN_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk11
JDK_VERSION= 1.1.8
NO_BUILD= yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|!!LOCALBASE!!|${LOCALBASE}|" ${WRKSRC}/mapedit
pre-install:
@${CAT} ${WRKSRC}/README.TXT
diff --git a/www/mapedit/scripts/post-patch b/www/mapedit/scripts/post-patch
deleted file mode 100644
index 2dc1eb1125e4..000000000000
--- a/www/mapedit/scripts/post-patch
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-
-perl -pi -e "s|!!LOCALBASE!!|$LOCALBASE|" ${WRKSRC}/mapedit