From ef84a5b914c14a4571e79f9f6d74fe21d5453d97 Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 30 Jan 2009 18:54:13 +0900 Subject: [PATCH] Untested x86_64 support --- Makefile | 8 ++++++-- distinfo | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 691fb8b..1a8276c 100644 --- a/Makefile +++ b/Makefile @@ -11,17 +11,19 @@ COMMENT= Compiler for the functional language Haskell DISTFILES= ${DISTNAME}-src.tar.bz2 \ ghc-6.6.1-src.tar.bz2 \ ghc-6.6.1-i386-unknown-freebsd-hc.tar.gz \ + ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz \ ghc-6.6.1-powerpc-apple-darwin-hc.tar.gz SITES.ghc-6.6.1-src.tar.bz2 = http://www.haskell.org/ghc/dist/6.6.1/ SITES.ghc-6.6.1-powerpc-apple-darwin-hc.tar.gz = http://static.cielonegro.org/archive/ +SITES.ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz = http://static.cielonegro.org/archive/ SITES.ghc-6.6.1-i386-unknown-freebsd-hc.tar.gz = http://static.cielonegro.org/archive/ .include "../../mk/bsd.prefs.mk" # Unregisterised HC packages are architecture dependent. We have to # create more HC packages to support more architectures. -ONLY_FOR_PLATFORM= *-*-i386 *-*-powerpc +ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-powerpc GNU_CONFIGURE= yes CONFIGURE_ENV+= PerlCmd=${PERL5:Q} @@ -33,6 +35,8 @@ EXTRACT_ONLY= ${DISTNAME}-src.tar.bz2 \ .if ${MACHINE_ARCH} == "i386" EXTRACT_ONLY += ghc-6.6.1-i386-unknown-freebsd-hc.tar.gz +.elif ${MACHINE_ARCH} == "x86_64" +EXTRACT_ONLY += ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz .elif ${MACHINE_ARCH} == "powerpc" EXTRACT_ONLY += ghc-6.6.1-powerpc-apple-darwin-hc.tar.gz .endif @@ -49,7 +53,7 @@ pre-configure: cd ${WRKDIR}/ghc-6.6.1 && \ ${CHMOD} +x ./distrib/hc-build && \ ${ENV} ${CONFIGURE_ENV} ./distrib/hc-build -C --disable-readline --enable-hc-boot-unregisterised && \ - ${FIND} . -type f -and -perm +o+x -and -name '*-inplace' | \ + ${FIND} . -type f -and -perm -o+x -and -name '*-inplace' | \ while read i; do \ ${CP} $$i ${BUILDLINK_DIR}/bin/`basename $$i | sed -e 's/-inplace//'`; \ done diff --git a/distinfo b/distinfo index 4c39557..1ab3bea 100644 --- a/distinfo +++ b/distinfo @@ -12,5 +12,8 @@ Size (ghc-6.6.1-powerpc-apple-darwin-hc.tar.gz) = 11335543 bytes SHA1 (ghc-6.6.1-src.tar.bz2) = cc1846b4ad607e270721371ce4043b1a017cd10e RMD160 (ghc-6.6.1-src.tar.bz2) = 6b82a74559425fe5fe1fa1b67a83433457bae0ad Size (ghc-6.6.1-src.tar.bz2) = 4339970 bytes +SHA1 (ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz) = fab95d687cc77007c99e4bfe148cda6f0c3c0f78 +RMD160 (ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz) = ec3bf24d2afb8858815853f1052b96a0b3f5eed6 +Size (ghc-6.6.1-x86_64-unknown-linux-hc.tar.gz) = 11265659 bytes SHA1 (patch-aa) = fd9cd9ec50fab10c81a84d49bc9e43068df2804a SHA1 (patch-ab) = 651695a6634b68d9eaa18bc583bf43e73d2d50a1 -- 2.40.0