freebsd-ports/security/pad/Makefile
John Marino d449471940 security/pad: Add SSL flags and honor them
While here, convert to USES+=tar

Approved by:	SSL blanket
2016-09-11 04:09:29 +00:00

35 lines
795 B
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= pad
PORTVERSION= 1.0.4
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= http://keyserver.kjsl.com/~jharris/distfiles/
MAINTAINER= jharris@widomaker.com
COMMENT= Command-line utility to encrypt files
USES= tar:tgz ssl
GNU_CONFIGURE= yes
PLIST_FILES= bin/pad man/man1/pad.1.gz
PORTDOCS= COPYING README ChangeLog
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
post-patch:
${REINPLACE_CMD} -e "s|\(-lcrypto\)|${LDFLAGS} \1|g" \
${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pad ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pad.1 ${STAGEDIR}${MANPREFIX}/man/man1
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>