Tue Apr 15 20:36:06 2014 UTC ()
Uses libexecinfo.


(asau)
diff -r1.45 -r1.46 pkgsrc/archivers/dar/Makefile

cvs diff -r1.45 -r1.46 pkgsrc/archivers/dar/Makefile (switch to unified diff)

--- pkgsrc/archivers/dar/Makefile 2014/02/12 23:17:32 1.45
+++ pkgsrc/archivers/dar/Makefile 2014/04/15 20:36:06 1.46
@@ -1,117 +1,118 @@ @@ -1,117 +1,118 @@
1# $NetBSD: Makefile,v 1.45 2014/02/12 23:17:32 tron Exp $ 1# $NetBSD: Makefile,v 1.46 2014/04/15 20:36:06 asau Exp $
2 2
3DISTNAME= dar-2.4.10 3DISTNAME= dar-2.4.10
4PKGREVISION= 2 4PKGREVISION= 3
5CATEGORIES= archivers sysutils 5CATEGORIES= archivers sysutils
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dar/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dar/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://dar.linux.free.fr/ 9HOMEPAGE= http://dar.linux.free.fr/
10COMMENT= Disk archiver 10COMMENT= Disk archiver
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
14 14
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes
17USE_PKGLOCALEDIR= yes 17USE_PKGLOCALEDIR= yes
18USE_TOOLS+= gmake pkg-config bash:run 18USE_TOOLS+= gmake pkg-config bash:run
19 19
20GNU_CONFIGURE= yes 20GNU_CONFIGURE= yes
21CONFIGURE_ARGS+= --disable-dar-static 21CONFIGURE_ARGS+= --disable-dar-static
22CONFIGURE_ARGS+= --enable-static=no 22CONFIGURE_ARGS+= --enable-static=no
23CONFIGURE_ARGS+= --disable-nodump-flag 23CONFIGURE_ARGS+= --disable-nodump-flag
24CONFIGURE_ARGS+= --disable-upx 24CONFIGURE_ARGS+= --disable-upx
25CONFIGURE_ARGS+= --enable-examples 25CONFIGURE_ARGS+= --enable-examples
26CONFIGURE_ARGS+= doxygen=no 26CONFIGURE_ARGS+= doxygen=no
27 27
28PKGCONFIG_OVERRIDE= src/libdar/libdar.pc.tmpl.in 28PKGCONFIG_OVERRIDE= src/libdar/libdar.pc.tmpl.in
29 29
30## We use the logic below to find a path for a non-existent ${BASH}. 30## We use the logic below to find a path for a non-existent ${BASH}.
31## Yeah, I suppose it's a hack, but it does work. 31## Yeah, I suppose it's a hack, but it does work.
32# 32#
33CHECK_INTERPRETER_SKIP+= share/dar/samples/* 33CHECK_INTERPRETER_SKIP+= share/dar/samples/*
34REPLACE_PERL+= doc/samples/dar_backup 34REPLACE_PERL+= doc/samples/dar_backup
35REPLACE_BASH+= doc/samples/*.bash doc/samples/*.sh doc/samples/*.duc 35REPLACE_BASH+= doc/samples/*.bash doc/samples/*.sh doc/samples/*.duc
36 36
37## Our threading check here is the same as the one used in devel/perl5. 37## Our threading check here is the same as the one used in devel/perl5.
38# 38#
39CHECK_BUILTIN.pthread:=yes 39CHECK_BUILTIN.pthread:=yes
40. include "../../mk/pthread.builtin.mk" 40. include "../../mk/pthread.builtin.mk"
41CHECK_BUILTIN.pthread:=no 41CHECK_BUILTIN.pthread:=no
42 42
43## XXX I'm following the USE_FEATURES semantics used in security/openssl. 43## XXX I'm following the USE_FEATURES semantics used in security/openssl.
44# 44#
45.if !empty(USE_BUILTIN.pthread:tl:Myes) 45.if !empty(USE_BUILTIN.pthread:tl:Myes)
46USE_FEATURES.dar= threads 46USE_FEATURES.dar= threads
47.else 47.else
48USE_FEATURES.dar= # empty 48USE_FEATURES.dar= # empty
49.endif 49.endif
50 50
51PKG_OPTIONS_VAR= PKG_OPTIONS.dar 51PKG_OPTIONS_VAR= PKG_OPTIONS.dar
52PKG_OPTIONS_OPTIONAL_GROUPS= int 52PKG_OPTIONS_OPTIONAL_GROUPS= int
53PKG_OPTIONS_GROUP.int= dar-int32 dar-int64 53PKG_OPTIONS_GROUP.int= dar-int32 dar-int64
54PKG_SUGGESTED_OPTIONS= dar-int64 ${USE_FEATURES.dar} 54PKG_SUGGESTED_OPTIONS= dar-int64 ${USE_FEATURES.dar}
55PKG_SUPPORTED_OPTIONS= threads 55PKG_SUPPORTED_OPTIONS= threads
56 56
57.include "../../mk/bsd.options.mk" 57.include "../../mk/bsd.options.mk"
58 58
59## Dar is built by default with an arbitrary-size-integer library for 59## Dar is built by default with an arbitrary-size-integer library for
60## managing all file length/timestamp details. If 32-bit or 64-bit 60## managing all file length/timestamp details. If 32-bit or 64-bit
61## integers (with overflow protection) are sufficient for requirements, 61## integers (with overflow protection) are sufficient for requirements,
62## the following options can significantly reduce the run-time memory 62## the following options can significantly reduce the run-time memory
63## and CPU overheads of Dar. 63## and CPU overheads of Dar.
64# 64#
65DARBITS= ${PKG_OPTIONS:C/[^[:digit:]]*//:M[36][24]} 65DARBITS= ${PKG_OPTIONS:C/[^[:digit:]]*//:M[36][24]}
66PLIST_SUBST+= DARBITS=${DARBITS} 66PLIST_SUBST+= DARBITS=${DARBITS}
67 67
68.if !empty(DARBITS) 68.if !empty(DARBITS)
69CONFIGURE_ARGS+= --enable-mode=${DARBITS:Q} 69CONFIGURE_ARGS+= --enable-mode=${DARBITS:Q}
70.endif 70.endif
71 71
72EGDIR= ${PREFIX}/share/examples/dar 72EGDIR= ${PREFIX}/share/examples/dar
73INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR} 73INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
74 74
75CONF_FILES= ${EGDIR}/darrc ${PKG_SYSCONFDIR}/darrc 75CONF_FILES= ${EGDIR}/darrc ${PKG_SYSCONFDIR}/darrc
76 76
77## We want the threading library to be specified by pkgsrc, and only 77## We want the threading library to be specified by pkgsrc, and only
78## when desired, viz. in the case below. Using PTHREAD_AUTO_VARS 78## when desired, viz. in the case below. Using PTHREAD_AUTO_VARS
79## with the accompanying BUILDLINK_TRANSFORM directive is easier 79## with the accompanying BUILDLINK_TRANSFORM directive is easier
80## then patching configure. 80## then patching configure.
81# 81#
82.if !empty(PKG_OPTIONS:Mthreads) 82.if !empty(PKG_OPTIONS:Mthreads)
83USE_FEATURES.openssl+= threads 83USE_FEATURES.openssl+= threads
84PTHREAD_AUTO_VARS= yes 84PTHREAD_AUTO_VARS= yes
85BUILDLINK_TRANSFORM+= rm:-lpthread 85BUILDLINK_TRANSFORM+= rm:-lpthread
86.else 86.else
87CONFIGURE_ARGS+= --disable-thread-safe 87CONFIGURE_ARGS+= --disable-thread-safe
88.endif 88.endif
89 89
90UNLIMIT_RESOURCES= datasize 90UNLIMIT_RESOURCES= datasize
91 91
92## XXX Needed for getopt() with SunPro (USE_FEATURES?) 92## XXX Needed for getopt() with SunPro (USE_FEATURES?)
93# 93#
94CPPFLAGS.SunOS+= -D__EXTENSIONS__ 94CPPFLAGS.SunOS+= -D__EXTENSIONS__
95 95
96.include "../../mk/bsd.fast.prefs.mk" 96.include "../../mk/bsd.fast.prefs.mk"
97 97
98## Build a static binary with threads is currently broken with glibc. 98## Build a static binary with threads is currently broken with glibc.
99.if ${OPSYS} == "Linux" && !empty(PKG_OPTIONS:Mthreads) 99.if ${OPSYS} == "Linux" && !empty(PKG_OPTIONS:Mthreads)
100SUBST_CLASSES+= static 100SUBST_CLASSES+= static
101SUBST_STAGE.static= post-patch 101SUBST_STAGE.static= post-patch
102SUBST_MESSAGE.static= Changing -all-static to -static 102SUBST_MESSAGE.static= Changing -all-static to -static
103SUBST_FILES.static= src/testing/Makefile.in 103SUBST_FILES.static= src/testing/Makefile.in
104SUBST_SED.static= -e 's,-all-static,-static,g' 104SUBST_SED.static= -e 's,-all-static,-static,g'
105.endif 105.endif
106 106
107.if ${OPSYS} == "NetBSD" 107.if ${OPSYS} == "NetBSD"
108BUILDLINK_TRANSFORM= l:execinfo:execinfo:elf 108BUILDLINK_TRANSFORM= l:execinfo:execinfo:elf
109.endif 109.endif
110 110
111.include "../../archivers/bzip2/buildlink3.mk" 111.include "../../archivers/bzip2/buildlink3.mk"
 112.include "../../devel/libexecinfo/buildlink3.mk"
112.include "../../devel/gettext-lib/buildlink3.mk" 113.include "../../devel/gettext-lib/buildlink3.mk"
113.include "../../devel/zlib/buildlink3.mk" 114.include "../../devel/zlib/buildlink3.mk"
114.include "../../mk/pthread.buildlink3.mk" 115.include "../../mk/pthread.buildlink3.mk"
115.include "../../security/openssl/buildlink3.mk" 116.include "../../security/openssl/buildlink3.mk"
116 117
117.include "../../mk/bsd.pkg.mk" 118.include "../../mk/bsd.pkg.mk"