mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@137245 d073be05-634f-4543-b044-5fe20cf6d1d6
58 lines
1.5 KiB
Diff
58 lines
1.5 KiB
Diff
diff --git GNUmakefile GNUmakefile
|
|
index de61e61..354549f 100644
|
|
--- GNUmakefile
|
|
+++ GNUmakefile
|
|
@@ -4,7 +4,7 @@ MAKEFLAGS += -Rr
|
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
|
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
|
|
|
|
-prefix := /usr/local
|
|
+prefix := @@PREFIX@@
|
|
bindir := $(prefix)/bin
|
|
|
|
ifneq ($(findstring MINGW,$(uname_S)),)
|
|
@@ -72,21 +72,21 @@ ifneq ($(findstring CYGWIN,$(uname_S)),)
|
|
LDFLAGS += -lwinmm
|
|
endif
|
|
|
|
-ifneq ($(shell $(CC) --version | grep Apple),)
|
|
-APPLE_COMPILER := YesPlease
|
|
-endif
|
|
+# ifneq ($(shell $(CC) --version | grep Apple),)
|
|
+# APPLE_COMPILER := YesPlease
|
|
+# endif
|
|
|
|
-ifeq ($(uname_S),Darwin)
|
|
-ifneq ($(USE_CHUD),)
|
|
-CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
|
|
-LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
|
|
-endif
|
|
-endif
|
|
+# ifeq ($(uname_S),Darwin)
|
|
+# ifneq ($(USE_CHUD),)
|
|
+# CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
|
|
+# LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
|
|
+# endif
|
|
+# endif
|
|
|
|
-ifdef NO_GNU_GETOPT
|
|
-CFLAGS += -Igetopt
|
|
-OBJECTS += getopt/getopt_long.o
|
|
-endif
|
|
+# ifdef NO_GNU_GETOPT
|
|
+# CFLAGS += -Igetopt
|
|
+# OBJECTS += getopt/getopt_long.o
|
|
+# endif
|
|
|
|
ifeq (,$(findstring clean,$(MAKECMDGOALS)))
|
|
DEPS := $(shell ls $(OBJECTS:.o=.d) 2>/dev/null)
|
|
@@ -99,7 +99,7 @@ endif
|
|
.PHONY: all depend clean distclean install
|
|
|
|
install: $(BINARY)
|
|
- install -D -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
|
|
+ install -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
|
|
|
|
depend: $(DEPS)
|
|
|