summaryrefslogtreecommitdiff
path: root/archivers/deco/Makefile
blob: 62e8fdb483cea5f20eab773bad242e05f5651d5d (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
51
52
53
54
55
56
# $FreeBSD$

PORTNAME=	deco
PORTVERSION=	1.6.3
CATEGORIES=	archivers
MASTER_SITES=	http://hartlich.com/deco/download/:site1 \
		http://hartlich.com/deco/archive/download/:site2
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz:site1 \
		${PORTNAME}-archive-1.6.tar.gz:site2

MAINTAINER=	kevlo@FreeBSD.org
COMMENT=	Program to extract various archive file formats

LICENSE=	GPLv3

RUN_DEPENDS=	arc:${PORTSDIR}/archivers/arc \
		arj:${PORTSDIR}/archivers/arj \
		cabextract:${PORTSDIR}/archivers/cabextract \
		dpkg:${PORTSDIR}/archivers/dpkg \
		lzop:${PORTSDIR}/archivers/lzop \
		7z:${PORTSDIR}/archivers/p7zip \
		rpm:${PORTSDIR}/archivers/rpm \
		rzip:${PORTSDIR}/archivers/rzip \
		unace:${PORTSDIR}/archivers/unace \
		unrar:${PORTSDIR}/archivers/unrar \
		unzip:${PORTSDIR}/archivers/unzip \
		zoo:${PORTSDIR}/archivers/zoo \
		flac:${PORTSDIR}/audio/flac

NO_LATEST_LINK=	yes
CONFLICTS=	deco-[0-9]*

post-patch:
	@${CP} ${FILESDIR}/extract ${WRKDIR}/${PORTNAME}-archive-1.6/x/"tar\.xz"

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
		${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
	cd ${WRKDIR}/${PORTNAME}-archive-1.6 && ${SETENV} ${MAKE_ENV} \
		${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/deco ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
.for i in CREDITS LICENSE Makefile NEWS README config.mk
	${RM} -rf ${WRKSRC}/../${PORTNAME}-archive-1.6/${i}
.endfor
	@cd ${WRKDIR}/${PORTNAME}-archive-1.6/x/ && ${CP} -PR * ${DATADIR}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
RUN_DEPENDS+=	lzma:${PORTSDIR}/archivers/xz
.endif

.include <bsd.port.post.mk>