blob: 573133d88089946975a8c9e5abd33f6832e9c66c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# ex:ts=8
# Ports collection makefile for: vcp
# Date created: Tue Feb 11, 2003
# Whom: Michael L. Hostbaek (mich@freebsdcluster.org)
#
# $FreeBSD$
#
PORTNAME= vcp
PORTVERSION= 1.7.0
CATEGORIES= sysutils
MASTER_SITES= http://members.optusnet.com.au/~dbbryan/vcp/
MAINTAINER= mich@FreeBSD.org
COMMENT= Copy files in curses interface
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-1.7
MAN1= ${PORTNAME}.1
LDFLAGS+= -lncurses
pre-build:
@${REINPLACE_CMD} -e 's|/etc/vcp.conf|${PREFIX}/etc/vcp.conf|' ${WRKSRC}/misc.c
@${REINPLACE_CMD} -e 's|/etc/vcp.conf|${PREFIX}/etc/vcp.conf|g' ${WRKSRC}/vcp.1
do-build:
cd ${WRKSRC} && \
${CC} ${CFLAGS} -c main.c && \
${CC} ${CFLAGS} -c copyall.c && \
${CC} ${CFLAGS} -c copy.c && \
${CC} ${CFLAGS} -c screen.c && \
${CC} ${CFLAGS} -c log.c && \
${CC} ${CFLAGS} -c path.c && \
${CC} ${CFLAGS} -c misc.c && \
${CC} ${CFLAGS} -c color.c && \
${CC} ${CFLAGS} -o ${PORTNAME} main.o copyall.o copy.o screen.o log.o path.o misc.o color.o ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/vcp.conf.sample ${PREFIX}/etc/vcp.conf.sample
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
.endif
.include <bsd.port.mk>
|