aboutsummaryrefslogtreecommitdiffstats
path: root/net/cap/Makefile
blob: e632698f692e8c3bf65060c35f1de73c6700394b (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# New ports collection makefile for:    cap
# Date created:         09 Nov 1996
# Whom:             Masafumi NAKANE <max@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cap
PORTVERSION=    6.0.198
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   ftp://munnari.OZ.AU/mac/:source \
        ftp://munnari.OZ.AU/mac/cap.patches/:patches \
        ftp://ftp.kuis.kyoto-u.ac.jp/net/cap/:source \
        ftp://ftp.kuis.kyoto-u.ac.jp/net/cap/cap60.patches/:patches
DISTFILES=  cap60.pl100.tar.Z:source \
        patches.101-126.tar.Z:patches patches.127-143.tar.Z:patches \
        patches.144-154.tar.Z:patches patches.155-162.tar.Z:patches \
        patches.163-182.tar.Z:patches patches.183-192.tar.Z:patches

PATCH_SITES=    ftp://munnari.OZ.AU/mac/cap.patches/
PATCHFILES= cap60.patch193 cap60.patch194 cap60.patch195 cap60.patch196 \
        cap60.patch197 cap60.patch198

MAINTAINER= ports@FreeBSD.org
COMMENT=    Columbia AppleTalk Package for UNIX

NO_CDROM=   "Don't sell for profit"
WRKSRC=     ${WRKDIR}/cap60
DIST_SUBDIR=    cap60
ALL_TARGET= libsmade dummy-libinstall programs
INSTALL_TARGET= include libinstall install

CFLAGS+=    -traditional-cpp -DUSESTRINGDOTH

USE_REINPLACE=  YES

MAN1=       AUFS.1 ash.1 atlook.1 atprint.1 cvt2apple.1 getzones.1 \
        instappl.1 snitch.1
MAN3=       CAP.3
MAN5=       atalk.local.5 etalk.local.5
MAN8=       AUFS.8 CAP.8 UAB.8 aarpd.8 atis.8 lwsrv.8 papif.8
.if !defined(NOMANCOMPRESS)
GZ= .gz
.endif
ETC_SAMPLES=    etc/start-cap-servers extras/lib.cap.macusers \
        etc/list-cap-servers etc/kill-cap-servers \
        applications/papif/cap.printers
LIB_SAMPLES=    extras/afpfile applications/lwsrv/DBfile \
        applications/lwsrv/LWFonts applications/lwsrv/LWIIfgFonts \
        applications/lwsrv/LWPlusFonts applications/lwsrv/query.ps \
        applications/aufs/afpvols
DOCDIR=     ${PREFIX}/share/doc/cap
DOCS1=      abmisc.doc asp.notes atp.notes cap.auth.doc cap.notes \
        glossary install.ms iptalk.cookbook nbp.ext pap.notes \
        print.cookbook sched.notes uab.desc.ms uar.cookbook
DOCS2=      CAP.faq CAP60.README NOTICE README
READMES=    applications/papif applications/lwsrv applications/aufs \
        doc applications support/uab support/ethertalk

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BROKEN=     "Does not compile: needs stdarg.h instead of varargs.h"
.endif

pre-patch:
    @(cd ${WRKSRC}; \
      for f in ../cap60.patch* ; do ${PATCH} -s -p < $$f ; done)
post-patch:
    ${FIND} ${WRKSRC} -name Makefile.m4 -exec ${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS+=/' \{\} \;

pre-install:
    @${RM} -f ${WRKSRC}/libinstall

post-install:
    @${MKDIR} ${PREFIX}/etc/cap
.for f in ${ETC_SAMPLES}
    @${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/etc/cap/`${BASENAME} $f`.sample
.endfor
    @${MKDIR} ${PREFIX}/lib/cap
.for f in ${LIB_SAMPLES}
    @${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/lib/cap/`${BASENAME} $f`.sample
.endfor
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "===>  Installing relevant documentation into ${DOCDIR}."
    @${MKDIR} ${DOCDIR}
.for f in ${DOCS1}
    @${INSTALL_DATA} ${WRKSRC}/doc/$f ${DOCDIR}
.endfor
.for f in ${DOCS2}
    @${INSTALL_DATA} ${WRKSRC}/$f ${DOCDIR}
.endfor
.for f in ${READMES}
    @${INSTALL_DATA} ${WRKSRC}/$f/README ${DOCDIR}/`${BASENAME} $f`.README
.endfor
.endif
    @${ECHO_MSG} "===>  Installing manual pages."
.for sect in 1 3 5 8
.for man in ${MAN${sect}}
    @${INSTALL_MAN} ${WRKSRC}/man/${man} ${PREFIX}/man/man${sect}
.endfor
.endfor
    @${LN} -fs ${PREFIX}/man/man1/cvt2apple.1${GZ} ${PREFIX}/man/man1/cvt2cap.1${GZ}
.for f in atpinger atlooklws
    @${LN} -fs ${PREFIX}/man/man1/atlook.1${GZ} ${PREFIX}/man/man1/${f}.1${GZ}
.endfor
.for f in tlw lwpr isrv iwpr
    @${LN} -fs ${PREFIX}/man/man1/atprint.1${GZ} ${PREFIX}/man/man1/${f}.1${GZ}
.endfor
.for f in libcap libafpc libafp
    @${LN} -fs ${PREFIX}/man/man3/CAP.3${GZ} ${PREFIX}/man/man3/${f}.3${GZ}
.endfor
    @${LN} -fs ${PREFIX}/man/man8/papif.8${GZ} ${PREFIX}/man/man8/papof.8${GZ}
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include "bsd.port.post.mk"