1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Switch to USES=libtool:build

- Respect CXXFLAGS
This commit is contained in:
Tijl Coosemans 2014-09-14 13:59:38 +00:00
parent fa0aa3493a
commit 32f08ba623
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368174

View File

@ -17,17 +17,15 @@ LIB_DEPENDS= libmcrypt.so:${PORTSDIR}/security/libmcrypt \
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gettext perl5 gmake libtool
USE_AUTOTOOLS= libtoolize
USES= gettext gmake libtool:build perl5
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -fpermissive
LIBS+= -L${LOCALBASE}/lib -lintl -lmcrypt
MAKE_ARGS= LIBTOOL="${LOCALBASE}/bin/libtool"
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's,SHELL) libtool,SHELL) ${LIBTOOL} --tag=CXX,' \
${WRKSRC}/src/Makefile.in
${REINPLACE_CMD} -e 's,-O2,${CFLAGS},' ${WRKSRC}/configure
@${REINPLACE_CMD} '/CXXFLAGS=/s|-O2|${CXXFLAGS}|' ${WRKSRC}/configure
.include <bsd.port.mk>