diff options
Diffstat (limited to 'cross')
-rw-r--r-- | cross/freemint-ldg/DESCR | 1 | ||||
-rw-r--r-- | cross/freemint-ldg/Makefile | 53 | ||||
-rw-r--r-- | cross/freemint-ldg/PLIST | 4 | ||||
-rw-r--r-- | cross/freemint-ldg/distinfo | 6 | ||||
-rw-r--r-- | cross/freemint-ldg/patches/patch-src_devel_gcc.mak | 13 |
5 files changed, 77 insertions, 0 deletions
diff --git a/cross/freemint-ldg/DESCR b/cross/freemint-ldg/DESCR new file mode 100644 index 00000000000..2ad9bff0611 --- /dev/null +++ b/cross/freemint-ldg/DESCR @@ -0,0 +1 @@ +GEMlib for FreeMiNT (OS for Atari ST) cross-compile environment. diff --git a/cross/freemint-ldg/Makefile b/cross/freemint-ldg/Makefile new file mode 100644 index 00000000000..5b104426934 --- /dev/null +++ b/cross/freemint-ldg/Makefile @@ -0,0 +1,53 @@ +# $NetBSD: Makefile,v 1.1 2013/09/12 14:06:21 ryoon Exp $ + +DISTNAME= ldg-SVN-20121005 +PKGNAME= cross-freemint-${DISTNAME:S/SVN-//} +CATEGORIES= cross +MASTER_SITES= http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/ +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= http://vincent.riviere.free.fr/soft/m68k-atari-mint/ +COMMENT= LDG for FreeMiNT +EXTRACT_SUFX= .tar.bz2 + +DEPENDS+= cross-freemint-gcc-[0-9]*:../../cross/freemint-gcc + +USE_TOOLS+= gmake + +FREEMINT_PREFIX= ${PREFIX}/cross-freemint + +BUILD_DIRS= src/devel + +MAKE_FLAGS+= FREEMINT_PREFIX=${FREEMINT_PREFIX} + +COMMON_CFLAGS= -W -Wall -O2 -fomit-frame-pointer -I../../include -I.. -I. + +INSTALLATION_DIRS= cross-freemint/lib/m68020-60 \ + cross-freemint/lib/m5475 + +# XXX I cannot split install stage from build stage. +do-install: + # m68000 library + cd ${WRKSRC}/${BUILD_DIRS} && \ + make -f gcc.mak CROSS=yes ${MAKE_FLAGS} \ + CFLAGS="${COMMON_CFLAGS}" + ${INSTALL_LIB} ${WRKSRC}/lib/gcc/libldg.a \ + ${DESTDIR}${FREEMINT_PREFIX}/lib + cd ${WRKSRC}/${BUILD_DIRS} && make clean + + # m68020-60 library + cd ${WRKSRC}/${BUILD_DIRS} && \ + make -f gcc.mak CROSS=yes ${MAKE_FLAGS} \ + CFLAGS="-m68020-60 ${COMMON_CFLAGS}" + ${INSTALL_LIB} ${WRKSRC}/lib/gcc/libldg.a \ + ${DESTDIR}${FREEMINT_PREFIX}/lib/m68020-60 + cd ${WRKSRC}/${BUILD_DIRS} && make clean + + # m5475 library + cd ${WRKSRC}/${BUILD_DIRS} && \ + make -f gcc.mak CROSS=yes ${MAKE_FLAGS} \ + CFLAGS="-mcpu=5475 ${COMMON_CFLAGS}" + ${INSTALL_LIB} ${WRKSRC}/lib/gcc/libldg.a \ + ${DESTDIR}${FREEMINT_PREFIX}/lib/m5475 + +.include "../../cross/freemint-gemlib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/cross/freemint-ldg/PLIST b/cross/freemint-ldg/PLIST new file mode 100644 index 00000000000..10fda3c9816 --- /dev/null +++ b/cross/freemint-ldg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2013/09/12 14:06:21 ryoon Exp $ +cross-freemint/lib/libldg.a +cross-freemint/lib/m5475/libldg.a +cross-freemint/lib/m68020-60/libldg.a diff --git a/cross/freemint-ldg/distinfo b/cross/freemint-ldg/distinfo new file mode 100644 index 00000000000..e0d50e1dd61 --- /dev/null +++ b/cross/freemint-ldg/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2013/09/12 14:06:21 ryoon Exp $ + +SHA1 (ldg-SVN-20121005.tar.bz2) = 071d1b5fe8c1ba8db70b17e0ab36a2ba56962034 +RMD160 (ldg-SVN-20121005.tar.bz2) = a82aaccdb8616c40a80fac39b559688277e6f441 +Size (ldg-SVN-20121005.tar.bz2) = 142657 bytes +SHA1 (patch-src_devel_gcc.mak) = f37437fc0518f5dd3288aa1e939df7aaf4575c13 diff --git a/cross/freemint-ldg/patches/patch-src_devel_gcc.mak b/cross/freemint-ldg/patches/patch-src_devel_gcc.mak new file mode 100644 index 00000000000..deab3e32224 --- /dev/null +++ b/cross/freemint-ldg/patches/patch-src_devel_gcc.mak @@ -0,0 +1,13 @@ +$NetBSD: patch-src_devel_gcc.mak,v 1.1 2013/09/12 14:06:21 ryoon Exp $ + +--- src/devel/gcc.mak.orig 2012-10-05 21:09:38.000000000 +0000 ++++ src/devel/gcc.mak +@@ -23,6 +23,6 @@ + + ifeq ($(CROSS),yes) +-CC = m68k-atari-mint-gcc +-AR = m68k-atari-mint-ar ++CC = ${FREEMINT_PREFIX}/bin/m68k-atari-mint-gcc ++AR = ${FREEMINT_PREFIX}/bin/m68k-atari-mint-ar + else + CC = gcc |