freebsd-ports/devel/libds/Makefile
Ed Maste 73ca9e7230 Use BINARY_ALIAS to make LLD_UNSAFE more widely applicable
Some ports do not honour $LD or -fuse-ld=bfd in $CFLAGS, but do invoke
ld via $PATH.   Automatically set BINARY_ALIAS+=ld=${LD} when LLD_UNSAFE
is active to use ld.bfd for these ports.

Approved by:	portmgr (antoine)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D14876
2018-03-29 15:02:05 +00:00

38 lines
1 KiB
Makefile

# Created by: Peter Bozarov (kingofgib@users.sourceforge.net)
# $FreeBSD$
PORTNAME= libds
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-2.1
DISTNAME= libds-2.1
MAINTAINER= ports@FreeBSD.org
COMMENT= ANSI Generic Data Structures Library
LICENSE= BSD4CLAUSE
USE_LDCONFIG= yes
LLD_UNSAFE= yes # Needs linker to provide library search paths.
ALL_TARGET= gcc
HTML= avltree.html heap.html parray.html set.html \
hashtbl.html index.html queue.html stack.html
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_DATA} ${WRKSRC}/ds.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libds.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/libds.so ${STAGEDIR}${PREFIX}/lib/libds.so.1
${LN} -sf libds.so.1 ${STAGEDIR}${PREFIX}/lib/libds.so
${INSTALL_MAN} ${WRKSRC}/libds.3 ${STAGEDIR}${MANPREFIX}/man/man3
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${HTML}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>