freebsd-ports/security/cryptlib/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: cryptlib
# Date created: 17 Jun 2003
# Whom: Foxfair Hu <foxfair@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cryptlib
2007-03-30 14:53:21 +02:00
PORTVERSION= 3.3.1
CATEGORIES= security
2004-01-30 10:29:33 +01:00
MASTER_SITES= ftp://ftp.franken.de/pub/crypt/cryptlib/
DISTNAME= cl${PORTVERSION:S/.//g}
EXTRACT_SUFX= .zip
MAINTAINER= ale@FreeBSD.org
COMMENT= A powerful security programming toolkit
OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" off
ONLY_FOR_ARCHS= i386
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -aq
NO_WRKSUBDIR= yes
USE_GMAKE= yes
MAKEFILE= makefile
ALL_TARGET= default FreeBSD shared
USE_LDCONFIG= yes
PORTDOCS= README
.include <bsd.port.pre.mk>
post-patch:
.if defined(WITH_OPTIMIZED_CFLAGS)
2006-09-14 20:36:52 +02:00
@${REINPLACE_CMD} -e 's/%%CFLAGS%%/${CFLAGS:N-O*:N-f*} -fomit-frame-pointer -O3/' ${WRKSRC}/makefile
.else
2006-09-14 20:36:52 +02:00
@${REINPLACE_CMD} -e 's/%%CFLAGS%%/${CFLAGS}/' ${WRKSRC}/makefile
.endif
2006-11-13 08:24:25 +01:00
@${REINPLACE_CMD} -e 's/%%PTHREAD_CFLAGS%%/${PTHREAD_CFLAGS}/' ${WRKSRC}/makefile
@${REINPLACE_CMD} -e 's/%%PTHREAD_LIBS%%/${PTHREAD_LIBS}/' ${WRKSRC}/tools/getlibs.sh
do-install:
2007-03-30 14:53:21 +02:00
${INSTALL_DATA} ${WRKSRC}/libcl.a ${WRKSRC}/libcl.so.3.3.0 \
${PREFIX}/lib
2007-03-30 14:53:21 +02:00
${LN} -sf ${PREFIX}/lib/libcl.so.3.3.0 ${PREFIX}/lib/libcl.so.3
${LN} -sf ${PREFIX}/lib/libcl.so.3 ${PREFIX}/lib/libcl.so
${INSTALL_DATA} ${WRKSRC}/cryptlib.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>