mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
8b4093cba5
The only reason to use post-stage is because the port needs to do "things" at a later time, like some plist manipulation. While there, fold post-install in do-install targets when they are defined. PR: 214780 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight
37 lines
800 B
Makefile
37 lines
800 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libsrs_alt
|
|
DISTVERSION= 1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://opsec.eu/src/srs/
|
|
|
|
MAINTAINER= pi@FreeBSD.org
|
|
COMMENT= Sender Rewriting Scheme C Implementation
|
|
|
|
USES= libtool tar:bzip2
|
|
USE_LDCONFIG= yes
|
|
SHLIB_MAJOR= 1
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
|
|
|
OPTIONS_DEFINE= COMPAT_BASE64
|
|
COMPAT_BASE64_DESC= MTA Friendly base64 compatibility mode
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCOMPAT_BASE64}
|
|
CONFIGURE_ARGS+= --with-base64compat
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E 's,^(test_LDFLAGS.*$$),\1 -lcompat,' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/srs ${STAGEDIR}${PREFIX}/bin/srs_alt
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsrs_alt.so.1.0.0
|
|
|
|
.include <bsd.port.mk>
|