aboutsummaryrefslogtreecommitdiffstats
path: root/lang/g95/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/g95/Makefile')
-rw-r--r--lang/g95/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/lang/g95/Makefile b/lang/g95/Makefile
index 24428192839..e8ae2903867 100644
--- a/lang/g95/Makefile
+++ b/lang/g95/Makefile
@@ -33,17 +33,25 @@ CONFIGURE_ARGS+=--with-gcc-dir=${GCCBUILDDIR}
PLIST_FILES= bin/g95 bin/f95 lib/libf95.a
PORTDOCS= G95Manual.pdf
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
+.else
+CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
+.endif
+
post-extract:
cd ${WRKSRC} && ${TAR} xzf ${LIBF95}.tar.gz
pre-configure:
${MKDIR} ${GCCBUILDDIR}/g95
- cd ${GCCBUILDDIR}/g95 && ../${CONFIGURE_SCRIPT}
+ cd ${GCCBUILDDIR}/g95 && ../${CONFIGURE_SCRIPT} ${CONFIGURE_TARGET}
${GMAKE} -C ${GCCBUILDDIR}/g95
post-configure:
cd ${WRKSRC}/${LIBF95} && ./${CONFIGURE_SCRIPT} \
- ${CONFIGURE_ARGS}
+ ${CONFIGURE_ARGS} ${CONFIGURE_TARGET}
post-build:
cd ${WRKSRC}/${LIBF95} && ${GMAKE}
@@ -59,4 +67,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>