1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net/libunp/Makefile

35 lines
973 B
Makefile

# Created by: james@targetnet.com
# $FreeBSD$
PORTNAME= libunp
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.kohala.com/start/unpv12e/
DISTNAME= unpv12e
MAINTAINER= ports@FreeBSD.org
COMMENT= The networking library used in UNIX Network Programming Volume 1 2e
USES= gmake
GNU_CONFIGURE= yes
post-extract:
@${CP} ${WRKSRC}/lib/wrapsock.c ${WRKSRC}/lib/wrapsock_r.c
post-configure:
@${MKDIR} ${WRKSRC}/unp
@${LN} -s ${WRKSRC}/config.h ${WRKSRC}/unp/config.h
@${LN} -s ${WRKSRC}/lib/addrinfo.h ${WRKSRC}/unp/addrinfo.h
do-install:
${INSTALL_DATA} ${WRKSRC}/libunp.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libunp_r.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/include/unp
${INSTALL_DATA} ${WRKSRC}/lib/unp.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/addrinfo.h \
${STAGEDIR}${PREFIX}/include/unp
${INSTALL_DATA} ${WRKSRC}/config.h ${STAGEDIR}${PREFIX}/include/unp
.include <bsd.port.mk>