diff options
author | gahr <gahr@FreeBSD.org> | 2009-05-15 20:31:12 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2009-05-15 20:31:12 +0800 |
commit | 40301052013f1451793b44df5f00dfb4bbb82cd5 (patch) | |
tree | 338eae9aead48bb815813d8473a96694155ee79b /lang/g95 | |
parent | 9f7c61c267048d7da306b8418686beaf25d28df0 (diff) | |
download | freebsd-ports-graphics-40301052013f1451793b44df5f00dfb4bbb82cd5.tar.gz freebsd-ports-graphics-40301052013f1451793b44df5f00dfb4bbb82cd5.tar.zst freebsd-ports-graphics-40301052013f1451793b44df5f00dfb4bbb82cd5.zip |
- Fix build on amd64
Reported by: pointyhat (via pav@)
Diffstat (limited to 'lang/g95')
-rw-r--r-- | lang/g95/Makefile | 14 |
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> |