diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-09-12 14:04:41 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-09-12 14:04:41 +0000 |
commit | a0121dfb810626f72f7ff298625860d30afaad70 (patch) | |
tree | b88ce7725123dbbe5d2d7956aa624ce339cfafba /cross/freemint-gemlib | |
parent | ac3c563b7df1a37f1c89c042c6039931b708ead4 (diff) | |
download | pkgsrc-a0121dfb810626f72f7ff298625860d30afaad70.tar.gz |
Import cross-freemint-gemlib-20130415 as cross/freemint-gemlib.
GEMlib for FreeMiNT (OS for Atari ST) cross-compile environment.
Diffstat (limited to 'cross/freemint-gemlib')
-rw-r--r-- | cross/freemint-gemlib/DESCR | 1 | ||||
-rw-r--r-- | cross/freemint-gemlib/Makefile | 27 | ||||
-rw-r--r-- | cross/freemint-gemlib/PLIST | 12 | ||||
-rw-r--r-- | cross/freemint-gemlib/buildlink3.mk | 13 | ||||
-rw-r--r-- | cross/freemint-gemlib/distinfo | 7 | ||||
-rw-r--r-- | cross/freemint-gemlib/patches/patch-CONFIGVARS | 42 | ||||
-rw-r--r-- | cross/freemint-gemlib/patches/patch-gemlib_Makefile | 51 |
7 files changed, 153 insertions, 0 deletions
diff --git a/cross/freemint-gemlib/DESCR b/cross/freemint-gemlib/DESCR new file mode 100644 index 00000000000..2ad9bff0611 --- /dev/null +++ b/cross/freemint-gemlib/DESCR @@ -0,0 +1 @@ +GEMlib for FreeMiNT (OS for Atari ST) cross-compile environment. diff --git a/cross/freemint-gemlib/Makefile b/cross/freemint-gemlib/Makefile new file mode 100644 index 00000000000..6310c419d53 --- /dev/null +++ b/cross/freemint-gemlib/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1 2013/09/12 14:04:41 ryoon Exp $ + +DISTNAME= gemlib-CVS-20130415 +PKGNAME= cross-freemint-${DISTNAME:S/CVS-//} +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= GEMlib for FreeMiNT +EXTRACT_SUFX= .tar.bz2 + +MAKE_JOBS_SAFE= no + +DEPENDS+= cross-freemint-gcc-[0-9]*:../../cross/freemint-gcc + +USE_TOOLS+= gmake + +FREEMINT_PREFIX= ${PREFIX}/cross-freemint + +MAKE_ENV+= FREEMINT_PREFIX=${FREEMINT_PREFIX} + +BUILD_DIRS= gemlib + +.include "../../cross/freemint-mintbin/buildlink3.mk" +#.include "../../cross/freemint-mintlib/buildlink3.mk" +#.include "../../cross/freemint-pml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/cross/freemint-gemlib/PLIST b/cross/freemint-gemlib/PLIST new file mode 100644 index 00000000000..9302ca80e63 --- /dev/null +++ b/cross/freemint-gemlib/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2013/09/12 14:04:41 ryoon Exp $ +cross-freemint/include/gem.h +cross-freemint/include/gemx.h +cross-freemint/include/mt_gem.h +cross-freemint/include/mt_gemx.h +cross-freemint/lib/libgem.a +cross-freemint/lib/libgem16.a +cross-freemint/lib/m5475/libgem.a +cross-freemint/lib/m5475/mshort/libgem.a +cross-freemint/lib/m68020-60/libgem.a +cross-freemint/lib/m68020-60/mshort/libgem.a +cross-freemint/lib/mshort/libgem.a diff --git a/cross/freemint-gemlib/buildlink3.mk b/cross/freemint-gemlib/buildlink3.mk new file mode 100644 index 00000000000..0dc07928dd8 --- /dev/null +++ b/cross/freemint-gemlib/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/09/12 14:04:41 ryoon Exp $ + +BUILDLINK_TREE+= cross-freemint-gemlib + +.if !defined(CROSS_FREEMINT_GEMLIB_BUILDLINK3_MK) +CROSS_FREEMINT_GEMLIB_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.cross-freemint-gemlib+= cross-freemint-gemlib>=20130415 +BUILDLINK_PKGSRCDIR.cross-freemint-gemlib?= ../../cross/freemint-gemlib + +.endif # CROSS_FREEMINT_GEMLIB_BUILDLINK3_MK + +BUILDLINK_TREE+= -cross-freemint-gemlib diff --git a/cross/freemint-gemlib/distinfo b/cross/freemint-gemlib/distinfo new file mode 100644 index 00000000000..3df4098a3fc --- /dev/null +++ b/cross/freemint-gemlib/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2013/09/12 14:04:41 ryoon Exp $ + +SHA1 (gemlib-CVS-20130415.tar.bz2) = b65ecef6c57199188b5160c6ae59faa387c39133 +RMD160 (gemlib-CVS-20130415.tar.bz2) = 61448953aea0698897d5ac9084f94d015198c43b +Size (gemlib-CVS-20130415.tar.bz2) = 216651 bytes +SHA1 (patch-CONFIGVARS) = d5a4933758a8e14512b7cbc0d5bcd827b4989180 +SHA1 (patch-gemlib_Makefile) = 2c209e75ddc1444209a97e4404945e679af142f9 diff --git a/cross/freemint-gemlib/patches/patch-CONFIGVARS b/cross/freemint-gemlib/patches/patch-CONFIGVARS new file mode 100644 index 00000000000..70915e8312e --- /dev/null +++ b/cross/freemint-gemlib/patches/patch-CONFIGVARS @@ -0,0 +1,42 @@ +$NetBSD: patch-CONFIGVARS,v 1.1 2013/09/12 14:04:41 ryoon Exp $ + +--- CONFIGVARS.orig 2013-04-15 21:35:02.000000000 +0000 ++++ CONFIGVARS +@@ -1,8 +1,8 @@ + # + # + # cross compiling +-#CROSS = yes +-CROSS = no ++CROSS = yes ++#CROSS = no + + # + # build alternate libraries for processor variants +@@ -21,7 +21,7 @@ NATIVECC = gcc + NATIVECFLAGS = -O + CRLF = echo crlf -s + +-PREFIX=/usr/m68k-atari-mint ++PREFIX=${FREEMINT_PREFIX} + + else + +@@ -35,12 +35,12 @@ PREFIX=/usr + + endif + +-CC = $(CROSSPREFIX)gcc ++CC = ${PREFIX}/bin/$(CROSSPREFIX)gcc + AS = $(CC) +-AR = $(CROSSPREFIX)ar +-RANLIB = $(CROSSPREFIX)ranlib +-STRIP = $(CROSSPREFIX)strip +-FLAGS = $(CROSSPREFIX)flags ++AR = ${PREFIX}/bin/$(CROSSPREFIX)ar ++RANLIB = ${PREFIX}/bin/$(CROSSPREFIX)ranlib ++STRIP = ${PREFIX}/bin/$(CROSSPREFIX)strip ++FLAGS = ${FREEMINT_PREFIX}${PREFIX}/bin/$(CROSSPREFIX)flags + + # + # some tools diff --git a/cross/freemint-gemlib/patches/patch-gemlib_Makefile b/cross/freemint-gemlib/patches/patch-gemlib_Makefile new file mode 100644 index 00000000000..1c20d662b50 --- /dev/null +++ b/cross/freemint-gemlib/patches/patch-gemlib_Makefile @@ -0,0 +1,51 @@ +$NetBSD: patch-gemlib_Makefile,v 1.1 2013/09/12 14:04:41 ryoon Exp $ + +--- gemlib/Makefile.orig 2013-04-15 21:35:03.000000000 +0000 ++++ gemlib/Makefile +@@ -142,28 +142,28 @@ mt_gem.h: mt_gem.h.in VERSION + # $(MOVEIFCHANGE) $(srcdir)/mt_gem.tmp $(srcdir)/mt_gem.h + + install: +- install -m 755 -d $(PREFIX)/lib +- install -m 644 libgem.a $(PREFIX)/lib/libgem.a +- install -m 755 -d $(PREFIX)/lib/mshort +- install -m 644 libgem16.a $(PREFIX)/lib/mshort/libgem.a +- ln -sf mshort/libgem.a $(PREFIX)/lib/libgem16.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib ++ install -m 644 libgem.a ${DESTDIR}$(PREFIX)/lib/libgem.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib/mshort ++ install -m 644 libgem16.a ${DESTDIR}$(PREFIX)/lib/mshort/libgem.a ++ ln -sf mshort/libgem.a ${DESTDIR}$(PREFIX)/lib/libgem16.a + ifeq ($(WITH_020_LIB),yes) +- install -m 755 -d $(PREFIX)/lib/m68020-60 +- install -m 644 libgem020.a $(PREFIX)/lib/m68020-60/libgem.a +- install -m 755 -d $(PREFIX)/lib/m68020-60/mshort +- install -m 644 libgem02016.a $(PREFIX)/lib/m68020-60/mshort/libgem.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib/m68020-60 ++ install -m 644 libgem020.a ${DESTDIR}$(PREFIX)/lib/m68020-60/libgem.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib/m68020-60/mshort ++ install -m 644 libgem02016.a ${DESTDIR}$(PREFIX)/lib/m68020-60/mshort/libgem.a + endif + ifeq ($(WITH_V4E_LIB),yes) +- install -m 755 -d $(PREFIX)/lib/m5475 +- install -m 644 libgemv4e.a $(PREFIX)/lib/m5475/libgem.a +- install -m 755 -d $(PREFIX)/lib/m5475/mshort +- install -m 644 libgemv4e16.a $(PREFIX)/lib/m5475/mshort/libgem.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib/m5475 ++ install -m 644 libgemv4e.a ${DESTDIR}$(PREFIX)/lib/m5475/libgem.a ++ install -m 755 -d ${DESTDIR}$(PREFIX)/lib/m5475/mshort ++ install -m 644 libgemv4e16.a ${DESTDIR}$(PREFIX)/lib/m5475/mshort/libgem.a + endif +- install -m 755 -d $(PREFIX)/include +- install -m 644 gem.h $(PREFIX)/include +- install -m 644 gemx.h $(PREFIX)/include +- install -m 644 mt_gem.h $(PREFIX)/include +- install -m 644 mt_gemx.h $(PREFIX)/include ++ install -m 755 -d ${DESTDIR}$(PREFIX)/include ++ install -m 644 gem.h ${DESTDIR}$(PREFIX)/include ++ install -m 644 gemx.h ${DESTDIR}$(PREFIX)/include ++ install -m 644 mt_gem.h ${DESTDIR}$(PREFIX)/include ++ install -m 644 mt_gemx.h ${DESTDIR}$(PREFIX)/include + + uninstall: + rm -f $(PREFIX)/lib/libgem.a |