aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/libunrar4/Makefile
blob: 998f994957f18a7ba39bd39a8a0033d03bae5637 (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
# 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

NO_STAGE=   yes
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>