1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Ports collection makefile for: xmlsec1
# Date created: Apr 17, 2003
# Whom: Jim Geovedi <jim@corebsd.or.id>
#
# $FreeBSD$
#
PORTNAME= xmlsec1
PORTVERSION= 1.2.4
PORTREVISION= 0
CATEGORIES= security
MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \
ftp://ftp.aleksey.com/pub/xmlsec/releases/ \
ftp://ftp.xmlsoft.org/xmlsec/releases/ \
ftp://ftp.rpmfind.net/pub/XML/xmlsec/releases/
MAINTAINER= jim@corebsd.or.id
COMMENT= XML Security Library
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_OPENSSL= yes
USE_GNOME= gnomehack lthack libxslt gnometarget
USE_REINPLACE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
PLIST_FILES= bin/xmlsec1 bin/xmlsec1-config etc/xmlsec1Conf.sh
MAN1= xmlsec1.1 xmlsec1-config.1
.if defined(WITH_GNUTLS)
CONFIGURE_ARGS+= --with-gnutls="${LOCALBASE}"
LIB_DEPENDS+= gnutls.7:${PORTSDIR}/security/gnutls
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
.if !defined(NOPORTDOCS)
MAKE_ENV= DOCS=docs
.endif
pre-everything::
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_GNUTLS=yes Enable GNUTLS support"
@${ECHO} ""
post-patch:
@${REINPLACE_CMD} -e 's|src apps man docs|src apps man \$${DOCS}|g ; \
s|^confexecdir =.*$$|confexecdir = \$$(sysconfdir)|g' \
${WRKSRC}/Makefile.in
post-install:
@${FIND} ${PREFIX}/include/xmlsec1 -type f | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${PREFIX}/include/xmlsec1 -type d | ${SORT} -r | \
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST}
@${FIND} ${PREFIX}/lib/libxmlsec1* | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${PREFIX}/libdata/pkgconfig/xmlsec1* | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DOCSDIR} -type f | ${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>
|