ports/math/frobby/files/patch-Makefile
Lorenzo Salvadore f86da7c9da
math/frobby: Improve port and adopt again
- Reorder variables.
- Simplify port by introducing USES= localbase:ldflags.
- Set ALL_TARGET= # Empty to avoid defining do-build.
- Remove BINARY_ALIAS: patch Makefile instead.
- Always install executable, remove corresponding option, rename
  EXEDOCS option to DOCS.
- Always install shared library, remove corresponding option.
- Install static library with INSTALL_DATA and shared library with
  INSTALL_LIB.
- Improve shared library management by using an upstream patch. This
  also solves a poudriere warning about libfrobby.so.0 not having a
  SONAME.
- Remove outdated warnings about failing tests.
- Fix LIBDOCS dependencies.
- Remove pkg-help file, which does not contain any useful information
  any more.
- Fix pkg-plist.

Reviewed by:	diizzy thierry
Approved by:	gerald (mentor)
Differential Revision:	https://reviews.freebsd.org/D35028
2022-05-05 12:12:35 +02:00

40 lines
1.3 KiB
Text

--- Makefile.orig 2022-05-03 16:32:53 UTC
+++ Makefile
@@ -107,7 +107,6 @@ ifeq ($(MODE), release)
MATCH=false
ifeq ($(MODE), release)
outdir = bin/release/
- cxxflags += -O2
MATCH=true
endif
ifeq ($(MODE), debug)
@@ -119,13 +118,13 @@ ifeq ($(MODE), shared)
endif
ifeq ($(MODE), shared)
outdir = bin/shared/
- cxxflags += -O2 -fPIC
+ cxxflags += -fPIC
library = libfrobby.so
MATCH=true
endif
ifeq ($(MODE), profile)
outdir = bin/profile/
- cxxflags += -g -pg -O2 -D PROFILE
+ cxxflags += -g -pg -D PROFILE
ldflags += -pg
MATCH=true
benchArgs = _profile $(FROBBYARGS)
@@ -306,11 +305,11 @@ develDocPdf: bin/develDoc/
rm -rf bin/develDoc/latexPdf bin/develDoc/warningLog
cat doc/doxygen.conf doc/doxPdf|doxygen -
cd bin/develDoc/latexPdf; for f in `ls *.eps`; do epstopdf $$f; done # Cygwin fix
- cd bin/develDoc/latexPdf/; make refman.pdf; mv refman.pdf ../develDoc.pdf
+ cd bin/develDoc/latexPdf/; ${MAKE} refman.pdf; mv refman.pdf ../develDoc.pdf
develDocPs: bin/develDoc/
rm -rf bin/develDoc/latexPs bin/develDoc/warningLog
cat doc/doxygen.conf doc/doxPs|doxygen -
- cd bin/develDoc/latexPs/; make refman.ps; mv refman.ps ../develDoc.ps
+ cd bin/develDoc/latexPs/; ${MAKE} refman.ps; mv refman.ps ../develDoc.ps
clean: tidy
rm -rf bin