f82a5655ef
- Add LICENSE - Use COPYTREE_SHARE instead of CP PR: 159491 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# New ports collection makefile for: bugs
|
|
# Date created: 20 June 1998
|
|
# Whom: Stephane Legrand
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bugs
|
|
PORTVERSION= 4.1.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= SUNSITE/apps/crypto
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Great cryptography library and sample programs
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_GMAKE= yes
|
|
|
|
PLIST_SUB= PORTVERSION="${PORTVERSION}"
|
|
|
|
DOCSDIR= ${PREFIX}/${DISTNAME}/doc
|
|
|
|
post-configure:
|
|
(cd ${WRKSRC}; ${MAKE} bsd);
|
|
${REINPLACE_CMD} -e 's:^INSTALL_PATH = "/usr/local/bugs-.*":INSTALL_PATH = "${PREFIX}/${DISTNAME}":' ${WRKSRC}/Makefile;
|
|
${REINPLACE_CMD} -e 's/^install: instchoice all/install: instchoice/' ${WRKSRC}/Makefile;
|
|
# Comment the docs installation
|
|
${REINPLACE_CMD} -e 's+\(@echo "Copying docs.*\)+# \1+' ${WRKSRC}/Makefile;
|
|
${REINPLACE_CMD} -e 's+\(@cp -rf ./doc/.*\)+# \1+' ${WRKSRC}/Makefile;
|
|
|
|
post-build:
|
|
@${LN} -sf ${WRKSRC}/lib/unix/*.a ${WRKSRC}/lib/
|
|
|
|
pre-install:
|
|
(cd ${WRKSRC}; ${MAKE} test)
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/${DISTNAME}/include
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/${DISTNAME}/include
|
|
.for file in bchat bcrypt bhide bkey block blogin bmore bpass bpassdel bunlock
|
|
@${STRIP_CMD} ${PREFIX}/${DISTNAME}/${file}
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|