mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
- Remove bash dependency. - Remove SDK option. It was added to prevent installation of headers because they sometimes cause build conflicts with newer versions of qpdf due to incorrect order of -I flags. This has been fixed now. - Add DOCS option. - Replace patch-configure with CPPFLAGS/LIBS and a post-patch command in the Makefile to take into account ${LOCALBASE} and ${MAKE_CMD}. - Remove patches that have been fixed upstream. - Add a patch for libtest/build.mk to change the order of LIBS and LIBS_libqpdf. LIBS may contain user supplied -L flags like -L/usr/local/lib which have to appear after upstream -L flags so programs are linked against freshly built libraries on not an older version in /usr/local/lib. The other build.mk files already do this right. - Add a patch for make/libtool.mk to change the order of $ldflags and $libs. Upstream puts -L flags in $ldflags. PR: 207751 Approved by: d.y.kazarov@mail.ru (maintainer)
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
--- make/libtool.mk.orig 2015-11-10 17:48:52 UTC
|
|
+++ make/libtool.mk
|
|
@@ -1,7 +1,7 @@
|
|
# --- Required interface definitions ---
|
|
|
|
-# LIBTOOL needs bash
|
|
-SHELL=/bin/bash
|
|
+# LIBTOOL needs sh
|
|
+SHELL=/bin/sh
|
|
|
|
OBJ=o
|
|
LOBJ=lo
|
|
@@ -94,20 +94,20 @@ endef
|
|
define makelib
|
|
$(LIBTOOL) --mode=link \
|
|
$(CXX) $(CXXFLAGS) $(LD_VERSION_FLAGS) \
|
|
- -o $(2) $(1) $(4) $(3) \
|
|
+ -o $(2) $(1) $(3) $(4) \
|
|
-rpath $(libdir) -version-info $(5):$(6):$(7)
|
|
endef
|
|
|
|
# 1 2 3 4
|
|
# Usage: $(call makebin,objs,binary,ldflags,libs)
|
|
define makebin
|
|
- $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(1) -o $(2) $(4) $(3)
|
|
+ $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(1) -o $(2) $(3) $(4)
|
|
endef
|
|
|
|
# Install target
|
|
|
|
install: all
|
|
- ./mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
|
|
+ ./mkinstalldirs $(DESTDIR)$(prefix)/libdata/pkgconfig
|
|
./mkinstalldirs $(DESTDIR)$(bindir)
|
|
./mkinstalldirs $(DESTDIR)$(includedir)/qpdf
|
|
./mkinstalldirs $(DESTDIR)$(docdir)
|
|
@@ -129,4 +129,4 @@ install: all
|
|
cp doc/qpdf-manual.html $(DESTDIR)$(docdir)
|
|
cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir)
|
|
cp doc/*.1 $(DESTDIR)$(mandir)/man1
|
|
- cp libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig
|
|
+ cp libqpdf.pc $(DESTDIR)$(prefix)/libdata/pkgconfig
|