Skip to content

Commit

Permalink
Merge pull request #2 from pd95/fix-big-sur
Browse files Browse the repository at this point in the history
Updating sources and fix execution on macOS Big Sur
  • Loading branch information
pd95 authored May 29, 2021
2 parents a3f4eae + 9dcd333 commit 8023569
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 37 deletions.
25 changes: 6 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
BASE_DIR=$(CURDIR)

# Source and destination directories
export ARCHIVES_DIR=$(BASE_DIR)/archive
export BUILD_DIR=$(BASE_DIR)/compile
export PACKAGES_DIR=$(BASE_DIR)/packages

# Installation location
export PREFIX=/opt/cross-mint

# Add search path for cross tools
export PATH:=$(PATH):/opt/cross-mint/bin
include VARS

# Default cross compiler
export CC=$(shell which m68k-atari-mint-gcc)
#export CC=$(shell which m68k-atari-mint-gcc)
ARCH1=x86_64
ARCH2=i386

##########################################
export VERSIONBIN=bin-$(shell uname -s | tr "[:upper:]" "[:lower:]")
export VERSIONBINCPU=$(VERSIONBIN)-$(shell uname -m | tr "[:upper:]" "[:lower:]")
export VERSIONBUILD=$(shell date +%Y%m%d)

##########################################
all: init_dirs binutils mintbin gcc gemlib qed distrib
all: init_dirs binutils mintbin gcc gemlib distrib

init_dirs: $(BUILD_DIR) $(PACKAGES_DIR) $(ARCHIVES_DIR) $(PREFIX)

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(BUILD_DIR)"

gcc: $(BUILD_DIR)/gcclibs gcc464
Expand Down
10 changes: 7 additions & 3 deletions Makefile.binutils
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=binutils
VERSION=2.30
VERSIONPATCH=-mint-20180703
Expand All @@ -11,15 +13,17 @@ PACKAGE_FILE=$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBINCPU)-$(VERSIO
BINARY_DIR=$(COMPIL_DIR)/binary-package
LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)

ARCH=x86_64
CFLAGS="-Wno-error=deprecated-declarations -Wno-error=null-pointer-arithmetic"
CFLAGS=-Wno-error=deprecated-declarations -Wno-error=null-pointer-arithmetic

##########################################
.PHONY: all clean extract patch configure compile packaging install

all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand All @@ -32,7 +36,7 @@ patch: $(SOURCE_DIR)/_patch_$(PACKAGE_NAME)
configure: $(COMPIL_DIR)/Makefile

compile:
make CFLAGS=$(CFLAGS) --directory="$(COMPIL_DIR)"
make CFLAGS="$(CFLAGS)" --directory="$(COMPIL_DIR)"

packaging: $(PACKAGES_DIR)/$(PACKAGE_FILE)

Expand Down
5 changes: 5 additions & 0 deletions Makefile.cflib
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=cflib
VERSION=Git-$(VERSIONBUILD)
VERSIONPATCH=Git-mint-macos
Expand All @@ -17,6 +19,9 @@ LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
8 changes: 6 additions & 2 deletions Makefile.gcc464
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include VARS

PACKAGE_NAME=gcc
VERSION=4.6.4
VERSIONPATCH=-mint-macos
VERSIONPATCH=-mint-macos-20200504
SOURCE_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)
COMPIL_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBINCPU)
GIT_SRC=
Expand All @@ -11,7 +13,6 @@ PACKAGE_FILE=$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBINCPU)-$(VERSIO
BINARY_DIR=$(COMPIL_DIR)/binary-package
LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)

ARCH=x86_64
CFLAGS=

##########################################
Expand All @@ -20,6 +21,9 @@ CFLAGS=
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
10 changes: 5 additions & 5 deletions Makefile.gcclibs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
include VARS

PACKAGE_NAME=gcclibs
GMP=gmp-6.2.0
MPFR=mpfr-4.0.2
MPC=mpc-1.1.0
GMP=gmp-6.2.1
MPFR=mpfr-4.1.0
MPC=mpc-1.2.1
SOURCE_DIR=$(BUILD_DIR)
COMPIL_DIR=$(BUILD_DIR)
BINARY_DIR=$(COMPIL_DIR)/gcclibs
LOCAL_PREFIX_DIR=$(BINARY_DIR)

ARCH=x86_64

##########################################
.PHONY: all gmp mpfr mpc

Expand Down
5 changes: 5 additions & 0 deletions Makefile.gemlib
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=gemlib
VERSION=Git-$(VERSIONBUILD)
VERSIONPATCH=
Expand All @@ -17,6 +19,9 @@ LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
5 changes: 5 additions & 0 deletions Makefile.gemma
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=gemma
VERSION=Git-$(VERSIONBUILD)
VERSIONPATCH=
Expand All @@ -17,6 +19,9 @@ LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
15 changes: 9 additions & 6 deletions Makefile.mintbin
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=mintbin
VERSION=CVS-20110527
VERSIONPATCH=
Expand All @@ -11,20 +13,21 @@ PACKAGE_FILE=$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBINCPU)-$(VERSIO
BINARY_DIR=$(COMPIL_DIR)/binary-package
LOCAL_PREFIX_DIR=$(BINARY_DIR)$(PREFIX)

ARCH=x86_64
CFLAGS=-D_POSIX_SOURCE
CFLAGS=-D_POSIX_SOURCE -Wno-implicit-function-declaration

##########################################
.PHONY: all clean extract patch configure compile packaging install

all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"


##########################################
extract: $(SOURCE_DIR)

Expand All @@ -33,7 +36,7 @@ patch: $(SOURCE_DIR)/_patch_$(PACKAGE_NAME)
configure: $(COMPIL_DIR)/Makefile

compile:
make --directory="$(COMPIL_DIR)" CFLAGS=$(CFLAGS)
make --directory="$(COMPIL_DIR)" CFLAGS="$(CFLAGS)"

packaging: $(PACKAGES_DIR)/$(PACKAGE_FILE)

Expand All @@ -51,7 +54,7 @@ ifneq "$(GIT_SRC)" ""
mkdir -p "$(dir $(SOURCE_DIR))"
cd "$(dir $(SOURCE_DIR))" && git clone $(GIT_SRC)
endif
cp /usr/local/share/automake-1.*/config.* "$(SOURCE_DIR)"
cp $(HOMEBREW_PREFIX)/share/automake-1.*/config.* "$(SOURCE_DIR)"


# apply patch to sources
Expand All @@ -71,7 +74,7 @@ $(COMPIL_DIR)/Makefile:

# build distribution package
$(PACKAGES_DIR)/$(PACKAGE_FILE): $(COMPIL_DIR)/Makefile
make --directory="$(COMPIL_DIR)" install DESTDIR="$(BINARY_DIR)" CFLAGS=$(CFLAGS)
make --directory="$(COMPIL_DIR)" install DESTDIR="$(BINARY_DIR)" CFLAGS="$(CFLAGS)"
rm "$(BINARY_DIR)/"m68k-atari-mint-*
rm -rf "$(LOCAL_PREFIX_DIR)/info"
mkdir "$(LOCAL_PREFIX_DIR)/bin"
Expand Down
7 changes: 6 additions & 1 deletion Makefile.mintlib
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include VARS

PACKAGE_NAME=mintlib
VERSION=Git-20170304
VERSION=Git-20200504
VERSIONPATCH=-macos
SOURCE_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)
COMPIL_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBIN)
Expand Down Expand Up @@ -27,6 +29,9 @@ endif
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
7 changes: 6 additions & 1 deletion Makefile.pml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
include VARS

PACKAGE_NAME=pml
VERSION=2.03
VERSIONPATCH=-mint-20110207
VERSIONPATCH=-mint-20191013
SOURCE_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)
COMPIL_DIR=$(BUILD_DIR)/$(PACKAGE_NAME)-$(VERSION)$(VERSIONPATCH)-$(VERSIONBIN)
GIT_SRC=
Expand Down Expand Up @@ -28,6 +30,9 @@ endif
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
5 changes: 5 additions & 0 deletions Makefile.qed
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include VARS

PACKAGE_NAME=qed
VERSION=Git-$(VERSIONBUILD)
VERSIONPATCH=-mint-macos
Expand All @@ -17,6 +19,9 @@ LOCAL_PREFIX_DIR=$(BINARY_DIR)
all: extract patch configure compile packaging install

clean:
ifeq "$(BUILD_DIR)" ""
@echo "BUILD_DIR is not set" && exit 1
endif
rm -rf "$(COMPIL_DIR)"
rm -rf "$(SOURCE_DIR)"
rm -rf "$(PACKAGES_DIR)/$(PACKAGE_FILE)"
Expand Down
28 changes: 28 additions & 0 deletions VARS
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.EXPORT_ALL_VARIABLES:

BASE_DIR=$(CURDIR)

# Source and destination directories
ARCHIVES_DIR=$(BASE_DIR)/archive
BUILD_DIR=$(BASE_DIR)/compile
PACKAGES_DIR=$(BASE_DIR)/packages

# Installation location
PREFIX=/opt/cross-mint

# Add search path for cross tools
PATH:=$(PATH):/opt/cross-mint/bin

# Default host architecture and system
HOSTSYS=$(shell uname -s | tr "[:upper:]" "[:lower:]")
ARCH=x86_64
#ARCH=$(shell uname -m | tr "[:upper:]" "[:lower:]")

# Homebrew installation location
HOMEBREW_PREFIX=$(shell brew config | grep HOMEBREW_PREFIX | awk '{print $$2}')

##########################################
VERSIONBIN=bin-$(HOSTSYS)
VERSIONBINCPU=$(VERSIONBIN)-$(ARCH)
VERSIONBUILD=$(shell date +%Y%m%d)

Binary file added archive/gcc-4.6.4-mint-macos-20200504.patch.bz2
Binary file not shown.
Binary file removed archive/gcc-4.6.4-mint-macos.patch.bz2
Binary file not shown.

0 comments on commit 8023569

Please sign in to comment.