2006-06-12 18:58:38 +02:00
|
|
|
# New ports collection makefile for: libp11
|
|
|
|
# Date created: 1 Jun 2006
|
|
|
|
# Whom: Alex Dupre <ale@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libp11
|
2011-04-22 10:50:37 +02:00
|
|
|
PORTVERSION= 0.2.8
|
2006-06-12 18:58:38 +02:00
|
|
|
CATEGORIES= security devel
|
|
|
|
MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/
|
|
|
|
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2007-09-18 14:36:58 +02:00
|
|
|
COMMENT= A small layer on top of PKCS\#11 API
|
2006-06-12 18:58:38 +02:00
|
|
|
|
2011-04-22 10:50:37 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
USE_AUTOTOOLS= libltdl libtool
|
2006-06-12 18:58:38 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2011-04-22 10:50:37 +02:00
|
|
|
USE_GNOME= pkgconfig ltverhack
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-06-12 18:58:38 +02:00
|
|
|
|
2008-08-27 10:30:38 +02:00
|
|
|
CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
|
2006-06-12 18:58:38 +02:00
|
|
|
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2008-08-27 10:30:38 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+=--enable-doc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am:|' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2006-06-12 18:58:38 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|