aboutsummaryrefslogtreecommitdiff
path: root/archivers/unadf/Makefile
blob: 466d8e580c56fc342241fae2a42349fd25b76aba (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
62
63
64
65
66
67
68
69
70
# Created by: Per Wigren
# $FreeBSD$

PORTNAME=	unadf
PORTVERSION=	0.7.12
CATEGORIES=	archivers
MASTER_SITES=	http://lclevy.free.fr/adflib/
DISTNAME=	adflib-${DISTVERSION}

MAINTAINER=	uffe@uffe.org
COMMENT=	Extracts files from .adf-files used by Amiga emulators

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USE_BZIP2=	yes

MAKE_JOBS_UNSAFE=	yes

NO_STAGE=	yes
USE_AUTOTOOLS=	libtoolize aclocal autoconf autoheader automake

#
# args below adapted from adflib: autogen.sh
#
LIBTOOLIZE_ARGS=--copy --force
AUTOMAKE_ARGS=	--add-missing

#
# ports/aclocal workaround:
#
# aclocal only scans version-specific dir: ${LOCALBASE}/share/aclocal-<version>/
# hence aclocal does not find 3rd party m4 files (libtool.m4 etc)
# http://www.freebsd.org/cgi/query-pr.cgi?ports/98435
ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal

PLIST_FILES=	bin/unadf

DOCS=		API.txt api_device.html api_dir.html api_env.html api_file.html \
		api_index.html api_native.html api_salv.html api_volume.html version0.7.9d_gary.txt

FAQS=		FAQ/adf_info.html FAQ/adf_info.txt FAQ/adf_info_V0_9.txt

FAQSIMGS=	FAQ/image/adf_dir.gif FAQ/image/adf_file.gif

PORTDOCS=	*

# XXX: work around an issue with automake-1.13 erroring out on a
#      non-existent m4 directory before libtoolize creates it
pre-configure::
	@${MKDIR} ${WRKSRC}/m4

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/examples/unadf ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
	${MKDIR} ${DOCSDIR}/FAQ
.for i in ${FAQS}
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/FAQ
.endfor
	${MKDIR} ${DOCSDIR}/FAQ/image
.for i in ${FAQSIMGS}
	${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}/FAQ/image
.endfor
.endif

.include <bsd.port.mk>