2003-12-26 07:39:00 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: uSTL
|
|
|
|
# Date created: Dec 26, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ustl
|
2005-08-10 12:59:26 +00:00
|
|
|
PORTVERSION= 0.7.1
|
2003-12-26 07:39:00 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
|
|
|
|
|
2005-10-03 12:55:25 +00:00
|
|
|
MAINTAINER= az@FreeBSD.org
|
2003-12-26 07:39:00 +00:00
|
|
|
COMMENT= Codespace-frugal STL implementation
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2005-08-10 12:59:26 +00:00
|
|
|
USE_GMAKE= yes
|
2003-12-26 07:39:00 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
|
|
|
|
HAS_CONFIGURE= yes
|
2005-08-10 12:59:26 +00:00
|
|
|
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
INCDIR="${PREFIX}/include" \
|
|
|
|
LIBDIR="${PREFIX}/lib"
|
2003-12-26 07:39:00 +00:00
|
|
|
ALL_TARGET= # empty
|
|
|
|
|
2005-01-25 01:55:58 +00:00
|
|
|
PLIST_FILES= lib/libustl.a
|
|
|
|
|
2005-08-31 03:13:57 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
BROKEN= "Does not compile on !i386"
|
|
|
|
.endif
|
|
|
|
|
2004-01-25 16:27:47 +00:00
|
|
|
post-patch:
|
2005-08-10 12:59:26 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,/bin/bash,/bin/sh," ${WRKSRC}/configure
|
2004-01-25 16:27:47 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|SIZE_MAX|UINT_MAX|" ${WRKSRC}/memblock.h
|
2005-08-10 12:59:26 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" ${WRKSRC}/Common.mk.in
|
2005-01-25 01:55:58 +00:00
|
|
|
|
|
|
|
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}
|
2004-01-25 16:27:47 +00:00
|
|
|
|
2005-08-31 03:13:57 +00:00
|
|
|
.include <bsd.port.post.mk>
|