mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# New ports collection makefile for: asmail
|
|
# Date created: 15 August 1997
|
|
# Whom: brett@peloton.physics.montana.edu
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= asmail
|
|
PORTVERSION= 2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail afterstep
|
|
MASTER_SITES= http://www.tigr.net/afterstep/download/asmail/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Biff-type program, designed to match AfterStep
|
|
|
|
USE_XORG= xpm
|
|
USE_OPENSSL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shaping \
|
|
--with-xpm \
|
|
--with-xpm-includes=${LOCALBASE}/include \
|
|
--with-xpm-library=${LOCALBASE}/lib
|
|
|
|
MAN1= asmail.1x
|
|
MAN5= asmailrc.5x
|
|
|
|
CPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= ${PTHREAD_LIBS} -lssl -lcrypto
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
s|machine/soundcard|sys/soundcard|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|@CFLAGS@ -D|@CFLAGS@ @CPPFLAGS@ -D|g ; \
|
|
s|-lpthread -lrt|@LDFLAGS@|g' ${WRKSRC}/autoconf/Makefile.defines.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/local|${PREFIX}|g' ${WRKSRC}/asmailrc.sample
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/asmailrc.sample ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|