summaryrefslogtreecommitdiff
path: root/archivers/libarc/Makefile
blob: 15a8d35d7a965e7b78bbd6395561aa6dcc23cc63 (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libarc
PORTVERSION=	2.0.2
PORTREVISION=	1
CATEGORIES=	archivers devel
MASTER_SITES=	http://www.onicos.com/staff/iz/release/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tiny C decompression library for several popular compression formats

SOLIB=		libarc.so
SOVERSION=	1
NO_STAGE=	yes

MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -I." LN="${LN} -sf" \
		SOLIB="${SOLIB}" SOVERSION="${SOVERSION}"


USE_LDCONFIG=	yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/arccat ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/${SOLIB}.${SOVERSION} ${PREFIX}/lib
	${LN} -sf ${PREFIX}/lib/${SOLIB}.${SOVERSION} ${PREFIX}/lib/${SOLIB}
	@${MKDIR} ${PREFIX}/include/libarc
	${INSTALL_DATA} ${WRKSRC}/libarc/* ${PREFIX}/include/libarc
	(cd ${WRKSRC} && ${INSTALL_DATA} unlzh.h zip.h ${PREFIX}/include/libarc)

.include <bsd.port.mk>