openbsd-ports/net/transmission/patches/patch-mk_common_mk
naddy 4c4becf87f Fix building with gtk+ >=2.10 and regen patches.
Pointed out by and ok steven@
2007-04-08 17:36:59 +00:00

51 lines
1.5 KiB
Plaintext

$OpenBSD: patch-mk_common_mk,v 1.2 2007/04/08 17:36:59 naddy Exp $
--- mk/common.mk.orig Sun Jun 25 23:34:31 2006
+++ mk/common.mk Sun Apr 8 19:34:23 2007
@@ -1,8 +1,6 @@
# $Id: patch-mk_common_mk,v 1.2 2007/04/08 17:36:59 naddy Exp $
-TMPCFLAGS = -g -Wall -W -O3 -funroll-loops -D_FILE_OFFSET_BITS=64 \
- -D_LARGEFILE_SOURCE -D_GNU_SOURCE \
- -DSYS_$(shell echo $(SYSTEM) | tr a-z A-Z)
+TMPCFLAGS = -DSYS_$(shell echo $(SYSTEM) | tr a-z A-Z)
TMPCXXFLAGS = $(TMPCFLAGS)
TMPLDFLAGS =
@@ -17,7 +15,8 @@ endif
endif
ifeq ($(PTHREAD),yes)
-ifeq ($(SYSTEM),FreeBSD)
+ifneq ($(filter FreeBSD OpenBSD,$(SYSTEM)),)
+TMPCFLAGS += -pthread
TMPLDFLAGS += -pthread
else
TMPLDFLAGS += -lpthread
@@ -62,20 +61,20 @@ endef
define INSTALL_BIN_RULE
@echo "Install $<"
- @$(MKDIR) $(PREFIX)/bin
- @$(CP) $< $(PREFIX)/bin/
+ @$(BSD_INSTALL_PROGRAM_DIR) $(PREFIX)/bin
+ @$(BSD_INSTALL_PROGRAM) $< $(PREFIX)/bin/
endef
define INSTALL_LOCALE_RULE
@echo "Install $<"
- @$(MKDIR) $(LOCALEDIR)/$*/LC_MESSAGES
- @$(CP) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
+ @$(BSD_INSTALL_DATA_DIR) $(LOCALEDIR)/$*/LC_MESSAGES
+ @$(BSD_INSTALL_DATA) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
endef
define INSTALL_MAN_RULE
@echo "Install $<"
- @$(MKDIR) $(PREFIX)/man/man1
- @$(CP) $< $(PREFIX)/man/man1/
+ @$(BSD_INSTALL_MAN_DIR) $(PREFIX)/man/man1
+ @$(BSD_INSTALL_MAN) $< $(PREFIX)/man/man1/
endef
RM = rm -Rf