blob: 96c196535d2892256ef597909d080b395ffcaa29 (
plain)
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
|
# $NetBSD: Makefile,v 1.21 2000/06/21 08:57:04 tron Exp $
DISTNAME= PTL-2.1.3
PKGNAME= ptl-2.1.3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.media.osaka-cu.ac.jp/pub/PTL/PTL2/
PATCH_SITES= ${MASTER_SITES}
MAINTAINER= msaitoh@netbsd.org
HOMEPAGE= http://www.media.osaka-cu.ac.jp/~k-abe/PTL/
BUILD_DEPENDS= ${LOCALBASE}/bin/perl:../../lang/perl5
MAKE_ENV= INSTALL_PROGRAM="${INSTALL_SCRIPT}"
PLIST_SRC= ${WRKDIR}/PLIST
NOT_FOR_PLATFORM= *-*-alpha
post-install:
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/PTL/include
@${FIND} ${PREFIX}/PTL/include -type f -name "*.orig" | xargs ${RM}
@${FIND} ${PREFIX}/PTL/include -type d -print | xargs ${CHMOD} 755
@${FIND} ${PREFIX}/PTL/include -type f -print | xargs ${CHMOD} 444
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
@cd ${PREFIX}; \
${FIND} PTL -type f >>${PLIST_SRC}; \
for LINK in `${FIND} PTL -type l`; do \
set - X `${FILE} $$LINK`; \
echo "@exec ln -s $$6 %D/$$LINK" >>${PLIST_SRC}; \
echo "@unexec rm -f %D/$$LINK" >>${PLIST_SRC}; \
done; \
for DIR in `${FIND} PTL -type d | sort -r`; do \
if [ -z "`ls $$DIR`" ]; then \
${ECHO} "@exec ${MKDIR} %D/$$DIR" >>${PLIST_SRC}; \
fi; \
${ECHO} "@dirrm $$DIR" >>${PLIST_SRC}; \
done
.include "../../mk/bsd.pkg.mk"
|