opnsense-ports/math/tomsfastmath/files/patch-makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

40 lines
1 KiB
Text

--- makefile.orig Wed Apr 12 13:16:32 2006
+++ makefile Wed Apr 12 13:16:48 2006
@@ -11,7 +11,7 @@ endif
ifndef IGNORE_SPEED
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
#profiling
#PROF=-pg -g
@@ -52,11 +52,11 @@ HEADERS=src/headers/tfm.h
#END_INS
ifndef LIBPATH
- LIBPATH=/usr/lib
+ LIBPATH=${PREFIX}/lib
endif
ifndef INCPATH
- INCPATH=/usr/include
+ INCPATH=${PREFIX}/include
endif
ifndef INSTALL_GROUP
@@ -82,10 +82,10 @@ $(LIBNAME): $(OBJECTS)
ranlib $@
install: $(LIBNAME)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
- install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
- install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
- install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+ install -d $(DESTDIR)$(LIBPATH)
+ install -d $(DESTDIR)$(INCPATH)
+ install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)
+ install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
mtest/mtest: mtest/mtest.o
cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest