pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kore: add a 'debug' build option, and allow overriding PKGMANDIR.



Module Name:	pkgsrc-wip
Committed By:	Frederic Cambus <fred%statdns.com@localhost>
Pushed By:	fcambus
Date:		Mon Aug 19 12:06:50 2019 +0200
Changeset:	476553214e7e8b5a8912aa7ea7367168321876bd

Modified Files:
	kore/Makefile
	kore/distinfo
	kore/options.mk
	kore/patches/patch-Makefile

Log Message:
kore: add a 'debug' build option, and allow overriding PKGMANDIR.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=476553214e7e8b5a8912aa7ea7367168321876bd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 kore/Makefile               | 1 +
 kore/distinfo               | 2 +-
 kore/options.mk             | 9 +++++++--
 kore/patches/patch-Makefile | 2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)

diffs:
diff --git a/kore/Makefile b/kore/Makefile
index a996250074..0a0f6f7c24 100644
--- a/kore/Makefile
+++ b/kore/Makefile
@@ -12,6 +12,7 @@ LICENSE=	isc
 USE_LANGUAGES=	c99
 USE_TOOLS+=	gmake
 
+MAKE_ENV+=	MAN_DIR="${PREFIX}/${PKGMANDIR}"
 MAKE_FLAGS+=	TASKS=1
 
 .include "options.mk"
diff --git a/kore/distinfo b/kore/distinfo
index d3b6c19224..800c355adf 100644
--- a/kore/distinfo
+++ b/kore/distinfo
@@ -4,5 +4,5 @@ SHA1 (kore-3.3.1.tar.gz) = 6f1caa21cbedda8b9757bc3d363bf8389ecb47fc
 RMD160 (kore-3.3.1.tar.gz) = 706efbac47e047427ed50d6e55f709c52626850b
 SHA512 (kore-3.3.1.tar.gz) = a6641632fdd125948379884920e5804f428650644b25c757adaace86a286b69ff62947ba85601f9851abbacd697e6fd9385c37c1b2571e55a3f23b15e33a4750
 Size (kore-3.3.1.tar.gz) = 1009866 bytes
-SHA1 (patch-Makefile) = cef31294580a20e45168d93cdaed7c08c708f455
+SHA1 (patch-Makefile) = 7aadbcbf01d003406ac5d3319a897b7d7bee49f7
 SHA1 (patch-kodev_Makefile) = a5366d2879f59f27302b08d33f50620698ff5654
diff --git a/kore/options.mk b/kore/options.mk
index fa2166129c..9f9d59d97c 100644
--- a/kore/options.mk
+++ b/kore/options.mk
@@ -1,13 +1,18 @@
 # $NetBSD$
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.kore
-PKG_SUPPORTED_OPTIONS=	curl
+PKG_SUPPORTED_OPTIONS=	curl debug
 
 .include "../../mk/bsd.options.mk"
 
-# Build with asynchronous curl support.
+# Compile in asynchronous curl support
 .if !empty(PKG_OPTIONS:Mcurl)
 .  include "../../www/curl/buildlink3.mk"
 MAKE_FLAGS+=	CURL=1
 USE_TOOLS+=	pkg-config
 .endif
+
+# Enable use of -d for debug
+.if !empty(PKG_OPTIONS:Mdebug)
+MAKE_FLAGS+=	DEBUG=1
+.endif
diff --git a/kore/patches/patch-Makefile b/kore/patches/patch-Makefile
index 3ff0aaff1c..3dd5d28671 100644
--- a/kore/patches/patch-Makefile
+++ b/kore/patches/patch-Makefile
@@ -16,7 +16,7 @@ Adapt install target for pkgsrc.
  KORE_CRYPTO?=crypto
  INSTALL_DIR=$(PREFIX)/bin
 -MAN_DIR=$(PREFIX)/share/man
-+MAN_DIR=$(PREFIX)/man
++MAN_DIR?=$(PREFIX)/share/man
  SHARE_DIR=$(PREFIX)/share/kore
  INCLUDE_DIR=$(PREFIX)/include/kore
  


Home | Main Index | Thread Index | Old Index