1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/graphics/fig2sxd/files/patch-Makefile
Renato Botelho ec6258f64d Move recently added port cad/fig2sxd to a new and more accurate category
graphics, with extra category converters.

Pointed by:	danfe
Approved by:	maintainer
2005-09-08 15:34:05 +00:00

38 lines
950 B
Plaintext

--- Makefile.orig Sun Jan 25 22:33:34 2004
+++ Makefile Tue Sep 6 13:50:01 2005
@@ -43,28 +43,28 @@
DEPEND = .depend-
DEPFILES = $(SOURCES1:%.cpp=$(DEPEND)%.dep)
-CXX = g++
+CXX ?= g++
CXXF = -Wall -O2 -g
-CXXFLAGS = -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
+CXXFLAGS ?= -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
LIBS = -lz
$(TARGET1): $(OBJECTS1)
- $(CXX) -o $@ $^ $(LIBS)
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
$(OBJECTS1): %.o: $(SRCDIR)%.cpp $(DEPEND)%.dep
$(CXX) $(CXXFLAGS) -o $@ -c $<
$(DEPFILES): $(DEPEND)%.dep: $(SRCDIR)%.cpp
- $(CXX) $(INCLUDES) -M $< > $@
+ $(CXX) $(CXXFLAGS) $(INCLUDES) -M $< > $@
-include $(DEPFILES)
clean:
rm -f $(TARGETS) $(OBJECTS1) $(DEPFILES)
-all: install
+all: $(TARGET1) fig2sxd.1
-install: $(TARGET1) fig2sxd.1
+install:
install -d $(DESTDIR)/bin $(DESTDIR)/share/man/man1
install -m755 $(TARGET1) $(DESTDIR)/bin
install -m644 fig2sxd.1 $(DESTDIR)/share/man/man1