aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/krename-kde4/Makefile9
-rw-r--r--sysutils/krename/Makefile9
2 files changed, 12 insertions, 6 deletions
diff --git a/sysutils/krename-kde4/Makefile b/sysutils/krename-kde4/Makefile
index 20d806b20916..e2c2414eb95e 100644
--- a/sysutils/krename-kde4/Makefile
+++ b/sysutils/krename-kde4/Makefile
@@ -18,7 +18,10 @@ COMMENT= Very powerful batch file renamer for KDE3
USE_BZIP2= yes
USE_KDELIBS_VER=3
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/x11/kde3/Makefile.kde"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/krename/Makefile b/sysutils/krename/Makefile
index 20d806b20916..e2c2414eb95e 100644
--- a/sysutils/krename/Makefile
+++ b/sysutils/krename/Makefile
@@ -18,7 +18,10 @@ COMMENT= Very powerful batch file renamer for KDE3
USE_BZIP2= yes
USE_KDELIBS_VER=3
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/x11/kde3/Makefile.kde"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>