blob: 5e5d71a6e0cb2db3de8e7de47dcce65577ed4b97 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.24 2009/02/09 23:30:07 joerg Exp $
DISTNAME= arj-3.10.22
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=arj/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://arj.sourceforge.net/
COMMENT= Open-source ARJ archiver
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= autoconf gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LD=${LD:Q}
CONFIGURE_SCRIPT= ${WRKSRC}/gnu/configure
MAKE_FILE= makefile.gnu
MAKE_FLAGS+= INSTALL_DIR=${INSTALL_PROGRAM_DIR:Q}
INSTALL_UNSTRIPPED= yes # $LOCALBASE/bin/arj must have symbol table
ARJ_DOCSDIR= ${PREFIX}/share/doc/arj
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-4.*)
CFLAGS+= -fno-unit-at-a-time
.endif
pre-configure:
${CP} -f ${WRKSRC}/environ.c ${WRKSRC}/environ.c.1
${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/environ.c.1 \
> ${WRKSRC}/environ.c
${RM} -f ${WRKSRC}/environ.c.1
cd ${WRKSRC}/gnu && autoconf
INSTALLATION_DIRS+= ${ARJ_DOCSDIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/COPYING ${WRKSRC}/doc/debug.txt \
${DESTDIR}${ARJ_DOCSDIR}
.for i in arjl.txt arjs.txt history.txt readme.txt unix.txt
${INSTALL_DATA} ${WRKSRC}/resource/en/${i:Q} ${DESTDIR}${ARJ_DOCSDIR}
.endfor
.include "../../mk/bsd.pkg.mk"
|