aboutsummaryrefslogtreecommitdiff
path: root/archivers/unrar/Makefile
blob: 14fa0a49e10e9d3f418d7ff39ece4ad74b4f39a2 (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
# New ports collection makefile for:    unrar
# Date created:         28 Dec 1994
# Whom:                 ache
#
# $FreeBSD$
#

PORTNAME=	unrar
PORTVERSION=    3.11
PORTEPOCH=      1
CATEGORIES=	archivers
MASTER_SITES=	http://files2.rarlab.com/rar/
DISTNAME=       unrarsrc-3.1.4

MAINTAINER=	ache@FreeBSD.org

WRKSRC=         ${WRKDIR}/unrar

USE_GMAKE=      yes

post-patch:
	@${SED} -e 's|c++|${CXX}|g' -e 's|-O2|${CXXFLAGS}|g' \
		${WRKSRC}/makefile.unix > ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/unrar ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>