aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/libcabinet/Makefile
blob: 1a5bd261008e5f7b488ed802b8025efd4e3d7d9e (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libcabinet
PORTVERSION=    0.30
PORTREVISION=   2
CATEGORIES= archivers
MASTER_SITES=   http://www.bsd-geek.de/FreeBSD/distfiles/

MAINTAINER= tj@FreeBSD.org
COMMENT=    Portable library and utility to use Microsoft cabinet files (.cab)

USE_LDCONFIG=   yes

BROKEN_aarch64= Fails to link: linker command failed with exit code 1

USES=       uidfix
SRCFILE=    ${WRKSRC}/listcab.cpp
PROGFILE=   ${SRCFILE:S/.cpp$//}
MAKE_ENV=   WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null

post-build:
    ${CXX} ${CXXFLAGS} -o ${PROGFILE} ${SRCFILE} -L${WRKSRC} -lcabinet -lz

pre-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/cabinet

post-install:
    ${INSTALL_PROGRAM} ${PROGFILE} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>