summaryrefslogtreecommitdiff
path: root/devel/ptl2/Makefile
blob: 9bff6fcb95a9dbb0760747aeb91c1d7fcb47aa16 (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
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.17 1999/09/30 13:15:09 msaitoh Exp $

DISTNAME=		PTL2-current-990622
PKGNAME=		ptl2-990622
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.media.osaka-cu.ac.jp/pub/PTL/PTL2/PTL2-current-990622/

PATCH_SITES=		${MASTER_SITES}
PATCHFILES=		PTL2-current-990622-patch-1 \
			PTL2-current-990622-patch-2.gz \
			PTL2-current-990622-patch-3 \
			PTL2-current-990622-patch-4 \
			PTL2-current-990622-patch-5
PATCH_DIST_STRIP=	-p1

MAINTAINER=		msaitoh@netbsd.org
HOMEPAGE=		http://www.media.osaka-cu.ac.jp/~k-abe/PTL/

BUILD_DEPENDS=		${LOCALBASE}/bin/perl:../../lang/perl5

CONFLICTS=		ptl-current-*

USE_GMAKE=

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"