blob: 3bea8a23e7ba560f8ca609124f8dcbc524c43039 (
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
|
# New ports collection makefile for: PTL
# Date created: 8 April 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= ptl
PORTVERSION= 2.1.8
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.media.osaka-cu.ac.jp/pub/%SUBDIR%/ \
ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME:U}/${PORTNAME:U}2
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= autoconf213:${PORTSDIR}/devel/autoconf213
PATCH_SITES= ${MASTER_SITES}
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
PATCHFILES= ${DISTNAME}_readdir-patch
PATCH_DIST_STRIP= -p1
USE_PERL5= yes
USE_REINPLACE= yes
MAKE_ARGS= prefix="${PREFIX}"
INSTALLS_SHLIB= yes
DOCS= COPYING ChangeLog FAQ NEWS \
PROBLEMS README README.PDB README.jp \
WISHLIST doc/manual.ps.gz
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
BROKEN= "FreeBSD 5.x is not supported yet."
.endif
post-patch:
${REINPLACE_CMD} -e 's|-O[2-6]|${CFLAGS}|g' \
${WRKSRC}/Util/Makefile.in \
${WRKSRC}/Util/configure \
${WRKSRC}/libaltsys/utils/configure
post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${PORTNAME:U}
cd ${PREFIX} && ( \
${FIND} ${PORTNAME:U} -type f -o -type l | sort; \
${FIND} ${PORTNAME:U} -type d | sort -r | ${SED} 's/^/@dirrm /'; \
) >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/doc/PTL.info* ${PREFIX}/info/
.for f in ${DOCS}
${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}/
.endfor
.endif
.include <bsd.port.post.mk>
|