mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
976482aac1
2: use options helper to handle PORTSDOCS.
33 lines
936 B
Makefile
33 lines
936 B
Makefile
# Created by: Peter Bozarov (kingofgib@users.sourceforge.net)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libds
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-2.1
|
|
DISTNAME= libds-2.1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= ANSI Generic Data Structures Library
|
|
|
|
USE_LDCONFIG= yes
|
|
ALL_TARGET= gcc
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
HTML= avltree.html heap.html parray.html set.html hashtbl.html \
|
|
index.html queue.html stack.html
|
|
|
|
# Copy header file and libraries.
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/ds.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libds.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${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}${PREFIX}/man/man3
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${HTML}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|