summaryrefslogtreecommitdiff
path: root/cross/freemint-cflib
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-09-12 14:05:26 +0000
committerryoon <ryoon@pkgsrc.org>2013-09-12 14:05:26 +0000
commitad9087b494a413837ddd25564ed190fee3a1d7f9 (patch)
tree094899dc368ae0c6afa078c001d3bef832bddded /cross/freemint-cflib
parenta0121dfb810626f72f7ff298625860d30afaad70 (diff)
downloadpkgsrc-ad9087b494a413837ddd25564ed190fee3a1d7f9.tar.gz
Import cross-freemint-cflib-20130415 as cross/freemint-cflib.
GEMlib for FreeMiNT (OS for Atari ST) cross-compile environment.
Diffstat (limited to 'cross/freemint-cflib')
-rw-r--r--cross/freemint-cflib/DESCR1
-rw-r--r--cross/freemint-cflib/Makefile29
-rw-r--r--cross/freemint-cflib/PLIST7
-rw-r--r--cross/freemint-cflib/distinfo8
-rw-r--r--cross/freemint-cflib/patches/patch-CONFIGVARS42
-rw-r--r--cross/freemint-cflib/patches/patch-RULES15
-rw-r--r--cross/freemint-cflib/patches/patch-cflib_Makefile36
7 files changed, 138 insertions, 0 deletions
diff --git a/cross/freemint-cflib/DESCR b/cross/freemint-cflib/DESCR
new file mode 100644
index 00000000000..2ad9bff0611
--- /dev/null
+++ b/cross/freemint-cflib/DESCR
@@ -0,0 +1 @@
+GEMlib for FreeMiNT (OS for Atari ST) cross-compile environment.
diff --git a/cross/freemint-cflib/Makefile b/cross/freemint-cflib/Makefile
new file mode 100644
index 00000000000..d941c4dd48a
--- /dev/null
+++ b/cross/freemint-cflib/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+
+DISTNAME= cflib-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= CFLIB 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= cflib
+
+INCLUDES+= -I${BUILDLINK_PREFIX.cross-freemint-gemlib}/cross-freemint/include
+
+MAKE_ENV+= FREEMINT_PREFIX=${FREEMINT_PREFIX}
+
+MAKE_FLAGS+= INCLUDES=${INCLUDES}
+
+BUILD_TARGET= normal normal020 normalv4e
+
+.include "../../cross/freemint-gemlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/freemint-cflib/PLIST b/cross/freemint-cflib/PLIST
new file mode 100644
index 00000000000..9e8409c43a8
--- /dev/null
+++ b/cross/freemint-cflib/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+cross-freemint/include/cflib.h
+cross-freemint/lib/libcflib.a
+cross-freemint/lib/m5475/libcflib.a
+cross-freemint/lib/m68020-60/libcflib.a
+cross-freemint/stguide/cflib.hyp
+cross-freemint/stguide/cflib.ref
diff --git a/cross/freemint-cflib/distinfo b/cross/freemint-cflib/distinfo
new file mode 100644
index 00000000000..0e780a55cfd
--- /dev/null
+++ b/cross/freemint-cflib/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+
+SHA1 (cflib-CVS-20130415.tar.bz2) = 524baca68c986a127fffb80a536ce8c42f7fd824
+RMD160 (cflib-CVS-20130415.tar.bz2) = 7e881fce899e39c2075a86fa9220f375a0d8b8c7
+Size (cflib-CVS-20130415.tar.bz2) = 147537 bytes
+SHA1 (patch-CONFIGVARS) = 4b4fb58cca7bd5817a8ccb15ee6ef5ba5d9d712c
+SHA1 (patch-RULES) = 9bd511579b3e16b6de0d7aba2efcec82c3c791ba
+SHA1 (patch-cflib_Makefile) = 12fd310ae58dd8bc5012cb2395eb00745d5256c9
diff --git a/cross/freemint-cflib/patches/patch-CONFIGVARS b/cross/freemint-cflib/patches/patch-CONFIGVARS
new file mode 100644
index 00000000000..08830971fca
--- /dev/null
+++ b/cross/freemint-cflib/patches/patch-CONFIGVARS
@@ -0,0 +1,42 @@
+$NetBSD: patch-CONFIGVARS,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+
+--- CONFIGVARS.orig 2013-04-15 21:40:47.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 = ${FREEMINT_PREFIX}/bin/$(CROSSPREFIX)gcc
+ AS = $(CC)
+-AR = $(CROSSPREFIX)ar
+-RANLIB = $(CROSSPREFIX)ranlib
+-STRIP = $(CROSSPREFIX)strip
+-FLAGS = $(CROSSPREFIX)flags
++AR = ${FREEMINT_PREFIX}/bin/$(CROSSPREFIX)ar
++RANLIB = ${FREEMINT_PREFIX}/bin/$(CROSSPREFIX)ranlib
++STRIP = ${FREEMINT_PREFIX}/bin/$(CROSSPREFIX)strip
++FLAGS = ${FREEMINT_PREFIX}/bin/$(CROSSPREFIX)flags
+
+ #
+ # some tools
diff --git a/cross/freemint-cflib/patches/patch-RULES b/cross/freemint-cflib/patches/patch-RULES
new file mode 100644
index 00000000000..67830e80220
--- /dev/null
+++ b/cross/freemint-cflib/patches/patch-RULES
@@ -0,0 +1,15 @@
+$NetBSD: patch-RULES,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+
+* Compile cflib only.
+
+--- RULES.orig 2013-04-15 21:40:49.000000000 +0000
++++ RULES
+@@ -22,7 +22,7 @@ distclean: distclean-recursive
+ rm -f foobar foo bar baz junk schrott muell
+ rm -rf .deps $(GENFILES)
+
+-install: all-here install-recursive
++#install: all-here install-recursive
+
+ uninstall: uninstall-recursive
+
diff --git a/cross/freemint-cflib/patches/patch-cflib_Makefile b/cross/freemint-cflib/patches/patch-cflib_Makefile
new file mode 100644
index 00000000000..20a7f80ba69
--- /dev/null
+++ b/cross/freemint-cflib/patches/patch-cflib_Makefile
@@ -0,0 +1,36 @@
+$NetBSD: patch-cflib_Makefile,v 1.1 2013/09/12 14:05:26 ryoon Exp $
+
+--- cflib/Makefile.orig 2013-04-15 21:40:47.000000000 +0000
++++ cflib/Makefile
+@@ -69,18 +69,23 @@ docu: cflib.stg
+ $(HCP) -ocflib.hyp cflib.stg
+
+ install:
+- install -m 644 cflib.h ${PREFIX}/include
+- install -m 644 libcflib.a ${PREFIX}/lib
+- install -m 644 libcflib16.a ${PREFIX}/lib/mshort/libcflib.a
+- ln -sf mshort/libcflib.a ${PREFIX}/lib/libcflib16.a
++ mkdir -p ${DESTDIR}${PREFIX}/include
++ mkdir -p ${DESTDIR}${PREFIX}/lib/m68020-60
++ mkdir -p ${DESTDIR}${PREFIX}/lib/m5475
++ mkdir -p ${DESTDIR}${PREFIX}/stguide
++
++ install -m 644 cflib.h ${DESTDIR}${PREFIX}/include
++ install -m 644 libcflib.a ${DESTDIR}${PREFIX}/lib
++# install -m 644 libcflib16.a ${DESTDIR}${PREFIX}/lib/mshort/libcflib.a
++# ln -sf mshort/libcflib.a ${DESTDIR}${PREFIX}/lib/libcflib16.a
+ ifeq ($(WITH_020_LIB),yes)
+- install -m 644 libcflib020.a ${PREFIX}/lib/m68020-60/libcflib.a
++ install -m 644 libcflib020.a ${DESTDIR}${PREFIX}/lib/m68020-60/libcflib.a
+ endif
+ ifeq ($(WITH_V4E_LIB),yes)
+- install -m 644 libcflibv4e.a ${PREFIX}/lib/m5475/libcflib.a
++ install -m 644 libcflibv4e.a ${DESTDIR}${PREFIX}/lib/m5475/libcflib.a
+ endif
+- install -m 644 cflib.hyp ${PREFIX}/stguide
+- install -m 644 cflib.ref ${PREFIX}/stguide
++ install -m 644 cflib.hyp ${DESTDIR}${PREFIX}/stguide
++ install -m 644 cflib.ref ${DESTDIR}${PREFIX}/stguide
+
+ uninstall:
+ rm -f ${PREFIX}/include/cflib.h