aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-11-13 20:00:06 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-11-13 20:00:06 +0800
commit034575a0e4575fe06c91e9c1e2bc97de3c7496f3 (patch)
treef0decc4d943c938bf168a8f762a4e238de6109f2 /ports-mgmt
parent23694248afa6a48af4fa23f469fe891024ae5c44 (diff)
downloadfreebsd-ports-gnome-034575a0e4575fe06c91e9c1e2bc97de3c7496f3.tar.gz
freebsd-ports-gnome-034575a0e4575fe06c91e9c1e2bc97de3c7496f3.tar.zst
freebsd-ports-gnome-034575a0e4575fe06c91e9c1e2bc97de3c7496f3.zip
- Support WITH_DEBUG
- Add shebangfix for bash completion PR: ports/183277 Submitted by: mandree (based on) With hat: portmgr
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile
index f666452193fe..4e762b0c64e0 100644
--- a/ports-mgmt/pkg/Makefile
+++ b/ports-mgmt/pkg/Makefile
@@ -2,7 +2,7 @@
PORTNAME= pkg
DISTVERSION= 1.1.4
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= ports-mgmt
MASTER_SITES= http://files.etoilebsd.net/pkg/ \
http://mirror.shatow.net/freebsd/${PORTNAME}/ \
@@ -19,10 +19,15 @@ USE_XZ= yes
# With no dependency at all
NO_CCACHE= yes
USE_LDCONFIG= yes
-USES= uidfix
+USES= uidfix shebangfix
+SHEBANG_FILES= scripts/completion/_pkg.bash.in
MAKE_ENV+= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null \
PORTREVISION=${PORTREVISION}
+.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
+MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}"
+.endif
+
# Use a submake as 'deinstall install' needs to reevaluate PKG_CMD
# so that pkg-static is used from the wrkdir
USE_SUBMAKE= yes