summaryrefslogtreecommitdiff
path: root/lang/fpc/Makefile.units
diff options
context:
space:
mode:
Diffstat (limited to 'lang/fpc/Makefile.units')
-rw-r--r--lang/fpc/Makefile.units14
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/fpc/Makefile.units b/lang/fpc/Makefile.units
index a6efd51f1753..dfc2fc0e003a 100644
--- a/lang/fpc/Makefile.units
+++ b/lang/fpc/Makefile.units
@@ -43,10 +43,15 @@ LATE_INSTALL_ARGS= fpc_exampleinstall
post-extract:
@cd ${WRKDIR}/${WRKUNITDIR} && \
${FIND} ${WRKSRC} -type d -name .svn | ${XARGS} ${RM} -r
-.if ${PKGNAMESUFFIX:M-utils} || ${PKGNAMESUFFIX:M-ide}
+.if ${PKGNAMESUFFIX:M-utils}
${REINPLACE_CMD} -e '/globalunit/ s|\.\./packages|${FPCDIR}|' \
${WRKDIR}/${WRKUNITDIR}/Makefile
-.else
+.endif
+.if ${PKGNAMESUFFIX:M-ide}
+ ${REINPLACE_CMD} -e '/globalunit/ s|\.\./\.\./packages|${FPCDIR}|' \
+ ${WRKDIR}/${WRKUNITDIR}/Makefile
+.endif
+.if ${PKGNAMESUFFIX:N-ide:N-utils}
${REINPLACE_CMD} -e '/globalunit/ {s|\.\.|${FPCDIR}|;}' \
${WRKDIR}/${WRKUNITDIR}/Makefile
.endif
@@ -60,3 +65,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|android,linux,|android,linux,freebsd,dragonfly,|g' \
${WRKDIR}/${WRKUNITDIR}/fpmake.pp
.endif
+.if ${PKGNAMESUFFIX} == "-rtl-generics"
+ @${REINPLACE_CMD} -e 's|googleapi|rtl-generics|g' \
+ ${WRKDIR}/${WRKUNITDIR}/Makefile.fpc \
+ ${WRKDIR}/${WRKUNITDIR}/Makefile
+.endif