shithub: choc

Download patch

ref: 2bd688e2a67b6c6970a0176a8f2b910676dc09fb
parent: fdb6b0f31f5ff2d14d44689eb477a54d5f65157e
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Jun 12 15:33:13 EDT 2016

osx: Remove GNUstep stuff.

This has never been officially supported and probably doesn't work
properly with the current .nib file. Let's just get rid of it.

--- a/configure.ac
+++ b/configure.ac
@@ -143,7 +143,6 @@
 pcsound/Makefile
 pkg/Makefile
 pkg/config.make
-pkg/osx/Info-gnustep.plist
 pkg/osx/Info.plist
 rpm.spec
 data/Makefile
--- a/pkg/Makefile.am
+++ b/pkg/Makefile.am
@@ -10,7 +10,7 @@
 osx/disk/dir.DS_Store                                                   \
 osx/disk/background.png                                                 \
 osx/GNUmakefile                                                         \
-osx/Info.plist.in       osx/Info-gnustep.plist.in                       \
+osx/Info.plist.in                                                       \
 osx/PkgInfo                                                             \
 osx/cp-with-libs                                                        \
 osx/dmgfix                                                              \
--- a/pkg/osx/.gitignore
+++ b/pkg/osx/.gitignore
@@ -1,5 +1,4 @@
 Info.plist
-Info-gnustep.plist
 launcher
 *.o
 *.d
--- a/pkg/osx/GNUmakefile
+++ b/pkg/osx/GNUmakefile
@@ -1,8 +1,4 @@
-
 # Makefile for building the OS X launcher program and DMG package.
-# It is also possible to build and run the launcher under Unix
-# systems using GNUstep, although this is only here for development
-# and debugging purposes.
 
 include ../config.make
 
@@ -16,8 +12,6 @@
 TOPLEVEL=../..
 TOPLEVEL_DOCS=$(patsubst %,../../%,$(DOC_FILES))
 
-ifndef GNUSTEP_MAKEFILES
-
 # DMG file containing package:
 
 $(DMG) : tmp.dmg
@@ -32,27 +26,13 @@
 	                   -hfs-openfolder $(STAGING_DIR) $(STAGING_DIR) \
 			   -o tmp.dmg
 
-endif
-
 # Staging dir build for package:
 
 APP_DIR=$(STAGING_DIR)/$(PACKAGE_NAME).app
 
-# OS X and GNUstep apps have a slightly different internal structure:
-# OS X apps have their files within a containing "Contents" directory
-# that does not exist in GNUstep apps.  Similarly, the binaries are
-# installed at the top level, rather than in a "MacOS" directory.
-# Finally, we must install a different Info.plist file.
-
-ifdef GNUSTEP_MAKEFILES
-APP_TOP_DIR=$(APP_DIR)
-APP_BIN_DIR=$(APP_DIR)
-SRC_INFO_PLIST=Info-gnustep.plist
-else
 APP_TOP_DIR=$(APP_DIR)/Contents
 APP_BIN_DIR=$(APP_DIR)/Contents/MacOS
 SRC_INFO_PLIST=Info.plist
-endif
 
 APP_DOC_DIR=$(APP_BIN_DIR)/Documentation
 APP_DOC_RELDIR=$(patsubst $(STAGING_DIR)/%,%,$(APP_DOC_DIR))
@@ -110,17 +90,8 @@
 	rm -rf $(STAGING_DIR)
 
 # Launcher build:
-
 CFLAGS = -Wall -I$(TOPLEVEL)
-
-# Are we building using gs_make?
-
-ifdef GNUSTEP_MAKEFILES
-CFLAGS += $(shell gnustep-config --objc-flags)
-LDFLAGS = $(shell gnustep-config --gui-libs)
-else
 LDFLAGS = -framework Cocoa
-endif
 
 LAUNCHER_OBJS= \
         AppController.o \
--- a/pkg/osx/Info-gnustep.plist.in
+++ /dev/null
@@ -1,36 +1,0 @@
-{
-    ApplicationName = "@PACKAGE_NAME@";
-    ApplicationDescription = "@PACKAGE_SHORTDESC@";
-    ApplicationIcon = app.png;
-    ApplicationRelease = @PACKAGE_VERSION@;
-    ApplicationURL = "@PACKAGE_URL@";
-    Authors = (
-        "@PACKAGE_MAINTAINER@ <@PACKAGE_BUGREPORT@>"
-    );
-    Copyright = "@PACKAGE_COPYRIGHT@";
-    CopyrightDescription = "@PACKAGE_LICENSE@";
-    FullVersionID = @PACKAGE_VERSION@;
-    GSMainMarkupFile = "";
-    NSExecutable = "launcher";
-    NSIcon = app.png;
-    NSMainNibFile = launcher.nib;
-    NSPrincipalClass = NSApplication;
-    NSRole = Application;
-    NSTypes = (
-        {
-            NSHumanReadableName = "Doom WAD file";
-            NSUnixExtensions = ( wad );
-            NSRole = Viewer;
-            NSMimeTypes = (
-                "application/x-doom"
-            );
-            NSIcon = "wadfile.png";
-        },
-        {
-            NSHumanReadableName = "Dehacked patch";
-            NSUnixExtensions = ( deh );
-            NSRole = Viewer;
-            NSIcon = "wadfile.png";
-        }
-    );
-}