2003-11-10 09:29:22 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: libcwd
|
|
|
|
# Date created: Nov 10, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libcwd
|
2005-09-16 17:36:38 +02:00
|
|
|
PORTVERSION= 0.99.40
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 1
|
2003-11-10 09:29:22 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= The C++ Debugging Support Library
|
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2003-11-10 09:29:22 +01:00
|
|
|
CONFIGURE_ARGS= --disable-threading
|
|
|
|
USE_GMAKE= yes
|
2005-01-11 22:52:48 +01:00
|
|
|
USE_GNOME= pkgconfig
|
2003-11-10 09:29:22 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-10-31 02:40:08 +02:00
|
|
|
USE_GETOPT_LONG=yes
|
2003-11-10 09:29:22 +01:00
|
|
|
|
2004-03-14 03:57:57 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-10-31 02:40:08 +02:00
|
|
|
.if ${OSVERSION} < 500035
|
|
|
|
USE_GCC= 3.4
|
2004-03-14 03:57:57 +01:00
|
|
|
.endif
|
|
|
|
|
2004-10-31 02:40:08 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,test x"\$$libcwd_config_alloc" = x"yes",false,g' \
|
|
|
|
-E -e 's,^(DEFS=)(.*),\1"\2 -D__GNU_LIBRARY__=yes",g' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
@${REINPLACE_CMD} -e 's,localtime(,localtime((const time_t *),g' \
|
|
|
|
${WRKSRC}/debugmalloc.cc
|
|
|
|
@${REINPLACE_CMD} -E -e 's,\$$\(libdir\)/(pkgconfig),${PREFIX}/libdata/\1,g' \
|
|
|
|
${WRKSRC}/${MAKEFILE}.in
|
|
|
|
@${REINPLACE_CMD} -e 's,Elf32_Off,uint32_t,g' ${WRKSRC}/bfd.cc
|
2005-09-16 17:36:38 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|--tag=CXX||g' ${WRKSRC}/${MAKEFILE}.in \
|
|
|
|
${WRKSRC}/utils/${MAKEFILE}.in
|
2004-01-25 16:50:37 +01:00
|
|
|
|
2005-10-06 18:38:36 +02:00
|
|
|
pre-configure:
|
|
|
|
@${CP} ${LTMAIN} ${WRKSRC}
|
|
|
|
|
2004-03-14 03:57:57 +01:00
|
|
|
.include <bsd.port.post.mk>
|