added darwin, changed package name from blender-creator to blender
authorStefan Gartner <stefang@aon.at>
Wed, 5 Feb 2003 15:13:42 +0000 (15:13 +0000)
committerStefan Gartner <stefang@aon.at>
Wed, 5 Feb 2003 15:13:42 +0000 (15:13 +0000)
release/Makefile

index efe31905a767e91908a3e27e8c2c7bdf9d8757f9..c394b9b279ae444278bbf00c9276ae487b340516 100644 (file)
@@ -33,7 +33,7 @@ include nan_definitions.mk
 
 VERSION := $(shell cat VERSION)
 
-BLENDNAME=blender-creator-$(VERSION)-$(CONFIG_GUESS)$(TYPE)
+BLENDNAME=blender-$(VERSION)-$(CONFIG_GUESS)$(TYPE)
 DISTDIR=$(NAN_OBJDIR)/$(BLENDNAME)
 
 all:
@@ -78,6 +78,10 @@ all:
        @$(MAKE) pkg TYPE="" TAR="zip -r9" EXT0=".exe" EXT1=".zip" \
            NOPLUGINS="true" NOSTRIP="true"
     endif
+    ifeq ($(OS),darwin)
+       @$(MAKE) pkg TYPE="" TAR="tar cf" EXT0"=.app" EXT1=".tar" NOPLUGINS="true" \
+           COMPRESS="gzip -f --best" EXT2=".gz"
+    endif
 
 # OS independent targets below:
 
@@ -110,11 +114,19 @@ install: package
     ifeq ($(TYPE),-static)
        @cp $(OCGDIR)/bin/blenderstatic$(EXT0) $(DISTDIR)/blender$(EXT0)
     else
-       @cp $(OCGDIR)/bin/blender$(EXT0) $(DISTDIR)/blender$(EXT0)
+        ifeq ($(OS),darwin)
+           @cp -r $(OCGDIR)/bin/blender$(EXT0) $(DISTDIR)/blender$(EXT0)
+        else
+           @cp $(OCGDIR)/bin/blender$(EXT0) $(DISTDIR)/blender$(EXT0)
+        endif
     endif
     ifneq ($(NOSTRIP),true)
        @echo "----> Strip blender executable"
-       @strip $(DISTDIR)/blender$(EXT0)
+        ifeq ($(OS),darwin)
+           @strip $(OCGDIR)/bin/blender$(EXT0)/Contents/MacOS/blender
+        else
+           @strip $(DISTDIR)/blender$(EXT0)
+        endif
     endif
        @[ ! -x $(CONFIG_GUESS)/specific.sh ] || (\
            echo "**--> Execute specific.sh in $(CONFIG_GUESS)/" && \