aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/arj/Makefile
blob: f6ccd9dd93a03a804b6878e09496410f7bd957e1 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    ARJ archiver
# Date created:         9 April 2002
# Whom:             Konstantin Reznichenko <kot@premierbank.dp.ua>
#
# $FreeBSD$
#

PORTNAME=   arj
PORTVERSION=    3.10.22
PORTREVISION=   3
CATEGORIES= archivers
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022

MAINTAINER= garga@FreeBSD.org
COMMENT=    Open-source ARJ

USE_AUTOTOOLS=  autoconf:262
USE_GMAKE=  yes
MAKE_JOBS_UNSAFE=   yes
CONFIGURE_WRKSRC=   ${WRKSRC}/gnu
CFLAGS+=    -fPIC
MAKEFILE=   GNUmakefile
STRIP=
LANGUAGE?=  en
MAKE_ENV+=  "LOCALE=${LANGUAGE}"
PORTDOCS=   *

PLIST_FILES=    bin/arj \
        bin/arj-register \
        bin/arjdisp \
        bin/rearj \
        lib/arj/arjcrypt.so
PLIST_DIRS= lib/arj

MAN1=       arj-register.1 arj.1 arjdisp.1 rearj.1

PORTSCOUT=  skipv:3.10g

post-patch:
    @${REINPLACE_CMD} -e 's!/etc!${LOCALBASE}/etc!' \
         ${WRKSRC}/arj.c ${WRKSRC}/file_reg.c ${WRKSRC}/rearj.c
    @${REINPLACE_CMD} -e 's!-O2!!' ${WRKSRC}/gnu/configure.in
    @${REINPLACE_CMD} -e 's!^static !!' ${WRKSRC}/integr.c
    @${REINPLACE_CMD} -e 's!strnlen!_strnlen!g' ${WRKSRC}/fardata.c

pre-build:
    @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} prepare)

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/doc && ${INSTALL_DATA} COPYING debug.txt ${DOCSDIR}
    cd ${WRKSRC}/resource/en && \
        ${INSTALL_DATA} arjl.txt arjs.txt history.txt readme.txt unix.txt ${DOCSDIR}
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "powerpc"
BROKEN=     Does not install on powerpc
.endif

.include <bsd.port.post.mk>