View | Details | Raw Unified | Return to bug 186233
Collapse All | Expand All

(-)./Makefile (-8 / +10 lines)
Lines 2-8 Link Here
2
# $FreeBSD: security/botan110/Makefile 327769 2013-09-20 22:55:24Z bapt $
2
# $FreeBSD: security/botan110/Makefile 327769 2013-09-20 22:55:24Z bapt $
3
3
4
PORTNAME=	botan
4
PORTNAME=	botan
5
PORTVERSION=	1.10.5
5
PORTVERSION=	1.10.7
6
CATEGORIES=	security
6
CATEGORIES=	security
7
MASTER_SITES=	http://files.randombit.net/botan/v1.10/
7
MASTER_SITES=	http://files.randombit.net/botan/v1.10/
8
PKGNAMESUFFIX=	110
8
PKGNAMESUFFIX=	110
Lines 21-42 Link Here
21
OPTIONS_DEFAULT=	SSL GMP ECC
21
OPTIONS_DEFAULT=	SSL GMP ECC
22
ECC_DESC=	ECC support
22
ECC_DESC=	ECC support
23
23
24
USES=		compiler gmake
24
USE_BZIP2=	yes
25
USE_BZIP2=	yes
25
USE_PYTHON_BUILD=	yes
26
USE_PYTHON_BUILD=	yes
26
HAS_CONFIGURE=	yes
27
HAS_CONFIGURE=	yes
27
CONFIGURE_SCRIPT=	configure.py
28
CONFIGURE_SCRIPT=	configure.py
28
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-tr1-implementation=boost \
29
CONFIGURE_ARGS=	--prefix=${PREFIX} --with-bzip2 --with-zlib
29
		--with-bzip2 --with-zlib
30
USE_GMAKE=	yes
31
MAKE_ARGS=	CXX="${CXX}" LIB_OPT="${CXXFLAGS}"
30
MAKE_ARGS=	CXX="${CXX}" LIB_OPT="${CXXFLAGS}"
32
USE_LDCONFIG=	yes
31
USE_LDCONFIG=	yes
33
PLIST_FILES=	bin/botan-config-1.10 lib/libbotan-1.10.a lib/libbotan-1.10.so lib/libbotan-1.10.so.0 \
32
PLIST_FILES=	bin/botan-config-1.10 lib/libbotan-1.10.a lib/libbotan-1.10.so lib/libbotan-1.10.so.0 \
34
		lib/libbotan-1.10.so.0.5 libdata/pkgconfig/botan-1.10.pc
33
		lib/libbotan-1.10.so.0.7 libdata/pkgconfig/botan-1.10.pc
35
34
36
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
35
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
37
PORTDOCS=	*
36
PORTDOCS=	*
38
37
39
NO_STAGE=	yes
40
.include <bsd.port.options.mk>
38
.include <bsd.port.options.mk>
41
39
42
.if ${PORT_OPTIONS:MSSL}
40
.if ${PORT_OPTIONS:MSSL}
Lines 58-63 Link Here
58
CONFIGURE_ARGS+=--with-tr1-implementation=none
56
CONFIGURE_ARGS+=--with-tr1-implementation=none
59
.endif
57
.endif
60
58
59
.include <bsd.port.pre.mk>
60
61
CONFIGURE_ARGS+=--cc ${COMPILER_TYPE}
62
61
post-patch:
63
post-patch:
62
	${REINPLACE_CMD} -e "s|#!/usr/bin/env python|#!${PYTHON_CMD}|" \
64
	${REINPLACE_CMD} -e "s|#!/usr/bin/env python|#!${PYTHON_CMD}|" \
63
			${WRKSRC}/configure.py
65
			${WRKSRC}/configure.py
Lines 67-74 Link Here
67
.endif
69
.endif
68
70
69
post-install:
71
post-install:
70
	@(cd ${PREFIX}; ${FIND} -s include/botan-1.10 -not -type d) >> ${TMPPLIST}
72
	@(cd "${STAGEDIR}${PREFIX}"; ${FIND} -s include/botan-1.10 -not -type d) >> ${TMPPLIST}
71
	@${ECHO_CMD} @dirrm include/botan-1.10/botan >> ${TMPPLIST}
73
	@${ECHO_CMD} @dirrm include/botan-1.10/botan >> ${TMPPLIST}
72
	@${ECHO_CMD} @dirrm include/botan-1.10 >> ${TMPPLIST}
74
	@${ECHO_CMD} @dirrm include/botan-1.10 >> ${TMPPLIST}
73
75
74
.include <bsd.port.mk>
76
.include <bsd.port.post.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (Botan-1.10.5.tbz) = 2934c00533847dc93c485081d3ce6aae4a110151a69b587b895241159da77cf3
1
SHA256 (Botan-1.10.7.tbz) = 19f79ae670cb2ea7c290244ff6ff564ce74b45d8845af52787a30c646e16324d
2
SIZE (Botan-1.10.5.tbz) = 2214817
2
SIZE (Botan-1.10.7.tbz) = 2240316
(-)./files/patch-src_build_data_makefile_unix_shr.in (-7 / +18 lines)
Lines 1-11 Link Here
1
--- src/build-data/makefile/unix_shr.in.orig	2011-09-02 19:36:47.671575619 +0000
1
--- src/build-data/makefile/unix_shr.in.orig	2013-12-29 19:30:46.000000000 +0100
2
+++ src/build-data/makefile/unix_shr.in	2011-09-02 19:37:32.341486166 +0000
2
+++ src/build-data/makefile/unix_shr.in	2014-01-29 12:56:53.163471296 +0100
3
@@ -20,7 +20,7 @@
3
@@ -14,13 +14,13 @@ VERSION       = %{version}
4
 LIBDIR        = $(DESTDIR)/%{libdir}
4
 SERIES        = %{version_major}.%{version_minor}
5
 HEADERDIR     = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan
5
 
6
 DOCDIR        = $(DESTDIR)/%{docdir}/botan-$(VERSION)
6
 # Installation Settings
7
-DESTDIR       = %{prefix}
8
+PREFIX        = %{prefix}
9
 
10
-BINDIR        = $(DESTDIR)/bin
11
-LIBDIR        = $(DESTDIR)/%{libdir}
12
-HEADERDIR     = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan
13
-DOCDIR        = $(DESTDIR)/%{docdir}/botan-$(VERSION)
7
-PKGCONF_DIR   = $(LIBDIR)/pkgconfig
14
-PKGCONF_DIR   = $(LIBDIR)/pkgconfig
8
+PKGCONF_DIR   = $(DESTDIR)/libdata/pkgconfig
15
+BINDIR        = $(DESTDIR)$(PREFIX)/bin
16
+LIBDIR        = $(DESTDIR)$(PREFIX)/%{libdir}
17
+HEADERDIR     = $(DESTDIR)$(PREFIX)/%{includedir}/botan-$(SERIES)/botan
18
+DOCDIR        = $(DESTDIR)$(PREFIX)/%{docdir}/botan-$(VERSION)
19
+PKGCONF_DIR   = $(DESTDIR)$(PREFIX)/libdata/pkgconfig
9
 
20
 
10
 CONFIG_SCRIPT = %{botan_config}
21
 CONFIG_SCRIPT = %{botan_config}
11
 PKGCONFIG     = %{botan_pkgconfig}
22
 PKGCONFIG     = %{botan_pkgconfig}

Return to bug 186233