summaryrefslogtreecommitdiff
path: root/german/manpages/Makefile
blob: 0b61afe5cdfa7354afddda049f2f17c7c5aae5ff (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
# New ports collection makefile for: German manpages
# Version required:     1.0
# Date created:         29 September 1997
# Whom:                 wosch
#
# $FreeBSD$
#

DISTNAME=       de-manpages-1.0
CATEGORIES=	german
MASTER_SITES=   http://www.freebsd.org/~wosch/src/ \
		ftp://ftp.Infodrom.North.DE/pub/Linux/Devel/manpages-de/
DISTFILES=	${manpages}.tgz

MAINTAINER=     wosch@FreeBSD.org

LANG=		de_DE.ISO_8859-1
NO_WRKSUBDIR=	YES
PLIST=		${WRKSRC}/PLIST

mandir=		${PREFIX}/man/${LANG}
manpages=	manpages-de

do-build:
	${LN} -s ${WRKSRC}/${manpages} ${WRKSRC}/de-man
	makewhatis ${WRKSRC}/de-man
.if !defined(NOMANCOMPRESS)
	${GZIP_CMD} -r ${WRKSRC}/${manpages}/man* || exit 0
.endif

do-install:
	cd ${WRKSRC}/${manpages}; \
	${TAR} cf - . | \
		(cd ${mandir}; ${TAR} xf - )
	find ${WRKSRC}/${manpages} -type f -print | \
		 ${SED} "s%${WRKSRC}/${manpages}%man/${LANG}%" > \
	   ${WRKSRC}/PLIST

.include <bsd.port.mk>