freebsd-ports/net/shadowsocks-libev/Makefile
Bartek Rutkowski 734d896f7a net/shadowsocks-libev: fix i386 builds on 8.4 and 9.3
PR:		197054
Submitted by:	Xiaoding Liu <xiaoding+freebsd@xiaoding.org>
2015-03-22 15:05:57 +00:00

33 lines
815 B
Makefile

# Created by: Xiaoding Liu <xiaoding+freebsd@xiaoding.org>
# $FreeBSD$
PORTNAME= shadowsocks-libev
DISTVERSIONPREFIX=v
PORTVERSION= 1.6.4
CATEGORIES= net
MAINTAINER= xiaoding+freebsd@xiaoding.org
COMMENT= Lightweight tunnel proxy which can help you get through firewalls
LICENSE= GPLv3
# fetch from github repo
USE_GITHUB= yes
GH_ACCOUNT= madeye
GNU_CONFIGURE= yes
USES= gmake libtool:keepla
# Help solve building error since the integrated libsodium enables this option.
CFLAGS+= -fstack-protector
USE_RC_SUBR= shadowsocks_libev
post-patch:
${REINPLACE_CMD} -e 's|^pkgconfiglibdir.*|pkgconfiglibdir = ${PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${CP} ${WRKSRC}/debian/config.json ${STAGEDIR}${ETCDIR}/config.json.sample
.include <bsd.port.mk>