1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

- Remove compiler flag unknown to clang to fix build on 10+

- Use INSTALL_PROGRAM to install binary, which fixes stripping
- Remove slashes after ${STAGEDIR}

PR:		195906
Submitted by:	amdmi3
Approved by:	maintainer timeout
This commit is contained in:
Dmitry Marakasov 2015-01-14 19:04:35 +00:00
parent 5c7145d13c
commit c796587e99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377039

View File

@ -16,7 +16,7 @@ LIB_DEPENDS= libinotify.so:${PORTSDIR}/devel/libinotify \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
GNU_CONFIGURE= yes
USES= autoreconf gmake libtool pkgconfig
USES= autoreconf compiler:features gmake libtool pkgconfig
USE_GNOME= glib20
USE_RC_SUBR= clsync
@ -38,7 +38,7 @@ LIBCLSYNC_DESC= Build libclsync.so for control socket clients
OPTIONS_DEFAULT=PARANOID
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MVERYPARANOID}
CONFIGURE_ARGS+= --enable-paranoid=2
@ -62,10 +62,15 @@ CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-libclsync
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/clsync ${STAGEDIR}/${PREFIX}/sbin/clsync
${INSTALL_DATA} ${WRKSRC}/man/man1/clsync.1 ${STAGEDIR}/${PREFIX}/man/man1/clsync.1
${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/freebsd/usr/local/etc/clsync/${PORTNAME}.conf ${STAGEDIR}/${ETCDIR}/${PORTNAME}.conf.sample
.if ${COMPILER_TYPE} == clang
post-patch:
@${REINPLACE_CMD} -e 's|-fstack-check||' ${WRKSRC}/configure.ac
.endif
.include <bsd.port.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/clsync ${STAGEDIR}${PREFIX}/sbin/clsync
${INSTALL_DATA} ${WRKSRC}/man/man1/clsync.1 ${STAGEDIR}${PREFIX}/man/man1/clsync.1
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/freebsd/usr/local/etc/clsync/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
.include <bsd.port.post.mk>