summaryrefslogtreecommitdiff
path: root/converters/uulib/Makefile
blob: 2a7252bb31d5540dcdfe92651e1ba5c52262118c (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
# $NetBSD: Makefile,v 1.42 2008/06/01 21:46:37 dholland Exp $
#

DISTNAME=	uudeview-0.5.20
PKGNAME=	uulib-0.5.20
PKGREVISION=	4
CATEGORIES=	converters
MASTER_SITES=	http://www.fpx.de/fp/Software/UUDeview/download/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.fpx.de/fp/Software/UUDeview/
COMMENT=	Library for uu/xx/Base64/BinHex de-/encoding

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	yes
CONFIGURE_DIRS=	uulib
BUILD_DIRS=	uulib
USE_LIBTOOL=	yes

BUILD_TARGET=	libuu.la

DOCFILES=	HISTORY doc/Makefile doc/README doc/binhex.fig \
		doc/library.ltx doc/structure.fig doc/td-v1.c doc/td-v2.c \
		doc/td-v3.c doc/test.txt

.include "../../mk/bsd.prefs.mk"

INSTALLATION_DIRS=	include lib ${PKGMANDIR}/man3

do-install:
	${LIBTOOL} ${INSTALL_LIB} ${WRKSRC}/uulib/libuu.la \
		${DESTDIR:Q}${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${DESTDIR:Q}${PREFIX}/include
	${SED} -e 's|FUNKYTOKENHERE|${PREFIX}|g' \
		< ${FILESDIR}/uulib.3 > ${WRKSRC}/uulib.3
	${INSTALL_MAN} ${WRKSRC}/uulib.3 ${DESTDIR:Q}${PREFIX}/${PKGMANDIR}/man3
	@${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX}/share/doc/uulib
.for docfile in ${DOCFILES}
	@${INSTALL_MAN} ${WRKSRC}/${docfile} \
		${DESTDIR:Q}${PREFIX}/share/doc/uulib
.endfor

.include "../../mk/bsd.pkg.mk"