summaryrefslogtreecommitdiff
path: root/archivers/libunrar4/Makefile
blob: 50914b1a12d7b624615f8cec28f693f62bed561f (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
# Created by: Joris Vandalon
# $FreeBSD$

PORTNAME=	libunrar4
PORTVERSION=	4.2.4
CATEGORIES=	archivers
MASTER_SITES=	http://www.rarlab.com/rar/
DISTNAME=	unrarsrc-${PORTVERSION}

MAINTAINER=	joris@vandalon.nl
COMMENT=	Library to work with RAR archives

WRKSRC=		${WRKDIR}/unrar

USES=		gmake
MAKE_ARGS=	CC="${CC}" CXX="${CXX}"
MAKEFILE=	makefile.unix
ALL_TARGET=	lib
USE_LDCONFIG=	yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/libunrar.so ${PREFIX}/lib/libunrar.so.4
	cd ${PREFIX}/lib && ${LN} -sf libunrar.so.4 libunrar.so
	${MKDIR} ${PREFIX}/include/libunrar4
	${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar4/dll.hpp

.include <bsd.port.mk>