openbsd-ports/x11/emelfm2/patches/patch-Makefile
landry da1012c7f0 Import of emelfm2 0.5, a Gtk2-based two-pane file manager.
Submitted by Giovanni Bechis (MAINTAINER), with some tweaks by me.

ok ajacoutot@
2008-10-30 19:32:32 +00:00

72 lines
2.2 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/30 19:32:32 landry Exp $
--- Makefile.orig Sat Oct 18 00:37:53 2008
+++ Makefile Thu Oct 30 18:28:33 2008
@@ -48,7 +48,7 @@ COPYRIGHT=2003-$(shell date +"%04Y"), tooar <tooar@gmx
#these are only used here for installation purposes
BIN_DIR = $(PREFIX)/bin
-MAN_DIR = $(PREFIX)/share/man/man1
+MAN_DIR = $(PREFIX)/man/man1
#as well as usage here, all in-code uses of these is assumed localised
ifeq ($(DOCS_VERSION), 1)
DOC_DIR = $(PREFIX)/share/doc/$(TARGET)-$(VERSION)
@@ -212,7 +212,7 @@ endif
lLDFLAGS = $(LDFLAGS)
# -lrt needed for clock_gettime()
-lLIBS = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 gmodule-2.0) -lrt
+lLIBS = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 gmodule-2.0)
ifeq ($(USE_FAM),1)
lLIBS += -lfam
endif
@@ -337,34 +337,34 @@ endif
$(OBJECTS): $(OBJECTS_DIR)/%.o: %.c
@echo "compiling '$*.c'"
- @$(CC) $(lCFLAGS) -c -o $@ $*.c
+ $(CC) $(lCFLAGS) -c -o $@ $*.c
$(LIBS_OBJECTS): $(OBJECTS_DIR)/%.so: %.c
@echo "compiling '$*.c'"
- @$(CC) $(lCFLAGS) $(lLIBS_CFLAGS) -o $@ $*.c
+ $(CC) $(lCFLAGS) $(lLIBS_CFLAGS) -o $@ $*.c
deps: $(DEP_FILES) $(LIB_DEP_FILES)
$(DEP_FILES): $(OBJECTS_DIR)
$(DEP_FILES): $(BUILD_FILE)
$(DEP_FILES): $(OBJECTS_DIR)/%.deps: %.c
@echo "generating '$@'"
- @$(CC) $(lCFLAGS) -MM -o $@ $*.c
+ $(CC) $(lCFLAGS) -MM -o $@ $*.c
$(LIB_DEP_FILES): $(OBJECTS_DIR)
$(LIB_DEP_FILES): $(BUILD_FILE)
$(LIB_DEP_FILES): $(OBJECTS_DIR)/%.deps: %.c
@echo "generating '$@'"
- @$(CC) $(lCFLAGS) $(lLIBS_CFLAGS) -MM -o $@ $*.c
+ $(CC) $(lCFLAGS) $(lLIBS_CFLAGS) -MM -o $@ $*.c
$(DEPS_FILE): $(BUILD_FILE)
@echo "generating dependencies: '$(DEPS_FILE)'"
@touch $(DEPS_FILE)
- @makedepend -s "# generated dependencies" -f $(DEPS_FILE) -- $(lCFLAGS) -- $(SOURCES)
+ makedepend -s "# generated dependencies" -f $(DEPS_FILE) -- $(lCFLAGS) -- $(SOURCES)
@rm $(DEPS_FILE).bak
$(MO): $(PO_DIR)/%.mo: $(PO_DIR)/%.po
@echo "formatting '$*.po'"
- @$(BIN_MSGFMT) $(PO_DIR)/$*.po -o $@
+ $(BIN_MSGFMT) $(PO_DIR)/$*.po -o $@
#gettext:
i18n:
@@ -427,7 +427,7 @@ help:
$(OBJECTS_DIR):
@echo "creating object directories in '$(OBJECTS_DIR)'"
- @mkdir -p $(MKOBJDIRS)
+ mkdir -p $(MKOBJDIRS)
$(BUILD_FILE):
@echo "updating build info: '$(BUILD_FILE)'"