1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/devel/ustl/Makefile
Andrej Zverev a02df25c27 - Remove deprecated USE_REINPLACE
- Remove no longer exist core.inec.ru from MASTER_SITES list - R.I.P
2006-02-22 08:35:50 +00:00

48 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.7.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= az@FreeBSD.org
COMMENT= Codespace-frugal STL implementation
USE_BZIP2= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
HAS_CONFIGURE= yes
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
INCDIR="${PREFIX}/include" \
LIBDIR="${PREFIX}/lib"
ALL_TARGET= # empty
PLIST_FILES= lib/libustl.a
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
post-patch:
@${REINPLACE_CMD} -e "s,/bin/bash,/bin/sh," ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|SIZE_MAX|UINT_MAX|" ${WRKSRC}/memblock.h
@${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" ${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.post.mk>