mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
The software has https support via GNUTLS but the port did not enable it. Add new port option GNUTLS and enable it by default. While here, add LICENSE (GPLv2+). Pet portlint. Bump PORTREVISION.
60 lines
2.3 KiB
Text
60 lines
2.3 KiB
Text
--- Makefile.orig 2012-09-03 14:58:02 UTC
|
|
+++ Makefile
|
|
@@ -1,5 +1,5 @@
|
|
MAIN_CFLAGS := -g -Os -Wall $(shell pkg-config fuse --cflags)
|
|
-MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -Wtype-limits -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
|
|
+MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
|
|
THR_CPPFLAGS := -DUSE_THREAD
|
|
THR_LDFLAGS := -lpthread
|
|
MAIN_LDFLAGS := $(shell pkg-config fuse --libs | sed -e s/-lrt// -e s/-ldl// -e s/-pthread// -e "s/ / /g")
|
|
@@ -10,7 +10,7 @@ ifeq ($(shell pkg-config --atleast-version 2.10 gnutls
|
|
|
|
variants += -ssl -ssl-mt
|
|
|
|
- CERT_STORE := /etc/ssl/certs/ca-certificates.crt
|
|
+# CERT_STORE := /etc/ssl/certs/ca-certificates.crt
|
|
SSL_CPPFLAGS := -DUSE_SSL $(shell pkg-config gnutls --cflags) -DCERT_STORE=\"$(CERT_STORE)\"
|
|
SSL_LDFLAGS := $(shell pkg-config gnutls --libs)
|
|
endif
|
|
@@ -23,7 +23,8 @@ manpages = $(addsuffix .1,$(binaries))
|
|
|
|
intermediates += $(addsuffix .xml,$(manpages))
|
|
|
|
-targets = $(binaries) $(manpages)
|
|
+#targets = $(binaries) $(manpages)
|
|
+targets = $(binaries)
|
|
|
|
full:
|
|
$(MAKE) all $(addprefix all,$(variants))
|
|
@@ -44,8 +45,8 @@ clean-recursive:
|
|
%-full:
|
|
$(MAKE) $* $(addprefix $*,$(variants))
|
|
|
|
-%.1: %.1.txt
|
|
- a2x -f manpage $<
|
|
+#%.1: %.1.txt
|
|
+# a2x -f manpage $<
|
|
|
|
%-ssl: $*
|
|
$(MAKE) CPPFLAGS='$(CPPFLAGS) $(SSL_CPPFLAGS)' LDFLAGS='$(LDFLAGS) $(SSL_LDFLAGS)' binsuffix=-ssl$(binsuffix) $*
|
|
@@ -60,20 +61,6 @@ clean-recursive:
|
|
$(MAKE) CPPFLAGS='$(CPPFLAGS) -DRETRY_ON_RESET' binsuffix=-rst$(binsuffix) $*
|
|
|
|
# Rules to automatically make a Debian package
|
|
-
|
|
-package = $(shell dpkg-parsechangelog | grep ^Source: | sed -e s,'^Source: ',,)
|
|
-version = $(shell dpkg-parsechangelog | grep ^Version: | sed -e s,'^Version: ',, -e 's,-.*,,')
|
|
-revision = $(shell dpkg-parsechangelog | grep ^Version: | sed -e -e 's,.*-,,')
|
|
-architecture = $(shell dpkg --print-architecture)
|
|
-tar_dir = $(package)-$(version)
|
|
-tar_gz = $(tar_dir).tar.gz
|
|
-pkg_deb_dir = pkgdeb
|
|
-unpack_dir = $(pkg_deb_dir)/$(tar_dir)
|
|
-orig_tar_gz = $(pkg_deb_dir)/$(package)_$(version).orig.tar.gz
|
|
-pkg_deb_src = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_source.changes
|
|
-pkg_deb_bin = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_$(architecture).changes
|
|
-
|
|
-deb_pkg_key = CB8C5858
|
|
|
|
debclean:
|
|
rm -rf $(pkg_deb_dir)
|