2010-11-15 14:45:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2010/11/15 19:45:59 espie Exp $
|
2008-10-21 13:01:24 -04:00
|
|
|
|
|
|
|
COMMENT= clone of backtrace facility found in the GNU libc
|
|
|
|
|
|
|
|
DISTNAME= libexecinfo-1.1
|
2010-11-15 14:45:56 -05:00
|
|
|
REVISION = 2
|
2008-10-21 13:01:24 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
SHARED_LIBS= execinfo 0.0
|
|
|
|
|
2009-04-09 11:03:06 -04:00
|
|
|
# <sobomax@FreeBSD.org>
|
|
|
|
HOMEPAGE= http://www.freebsd.org/
|
|
|
|
|
2008-10-21 13:01:24 -04:00
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-11-11 10:48:47 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=itetcu/}
|
2008-10-21 13:01:24 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
WANTLIB= m
|
|
|
|
|
2010-02-08 12:42:51 -05:00
|
|
|
# Hack that allows this lib to build on mips64(el), although
|
2009-10-09 11:10:13 -04:00
|
|
|
# it essentially turns this lib into an empty shell...
|
|
|
|
# ...too many ports require it to mark it NOT_FOR_ARCHS
|
2010-02-09 07:23:59 -05:00
|
|
|
.if ${MACHINE_ARCH:Mmips64*}
|
2009-10-09 11:10:13 -04:00
|
|
|
EXTRA_CFLAGS= -D__BUILTIN_HACK
|
|
|
|
# See bsd.lib.mk:162
|
|
|
|
PKG_ARGS+= -Dno_mips64=0
|
|
|
|
.else
|
|
|
|
PKG_ARGS+= -Dno_mips64=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_FLAGS+= EXTRA_CFLAGS=${EXTRA_CFLAGS}
|
|
|
|
|
2008-10-21 13:01:24 -04:00
|
|
|
MAKE_ENV= LIBDIR=${PREFIX}/lib \
|
|
|
|
LIBexecinfo_MAJOR=${LIBexecinfo_VERSION:R} \
|
|
|
|
LIBexecinfo_MINOR=${LIBexecinfo_VERSION:E}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/*.h ${PREFIX}/include
|
2009-04-09 11:03:06 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libexecinfo
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/README \
|
|
|
|
${PREFIX}/share/doc/libexecinfo
|
2008-10-21 13:01:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|