1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/ustl/Makefile
Volker Stolz d4295e3371 Unbreak. Their home-grown way of configuring is so...quaint that it makes
me want to barf. What's actually going on is that for some reason 'bsconf'
(go figure) doesn't like us setting CXX='c++' and thus can't detect our
headers.
2005-03-08 18:07:42 +00:00

46 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: uSTL
# Date created: Dec 26, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= ustl
PORTVERSION= 0.6.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Codespace-frugal STL implementation
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
USE_BZIP2= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
HAS_CONFIGURE= yes
USE_GMAKE= yes
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
ALL_TARGET= # empty
PLIST_FILES= lib/libustl.a
do-configure:
cd ${WRKSRC} && ./configure
post-patch:
@${REINPLACE_CMD} -e "s,/bin/bash,${LOCALBASE}/bin/bash," ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|SIZE_MAX|UINT_MAX|" ${WRKSRC}/memblock.h
@${REINPLACE_CMD} -e "s|-Werror||;s|-O3||" ${WRKSRC}/Common.mk.in
post-install:
@${FIND} ${PREFIX}/include/ustl* ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${PREFIX}/include/ustl* -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>