blob: 3e4b3270e92f0d0d261cd05ae590f9ac2629b22c (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.13 2005/06/24 14:32:13 wiz Exp $
DISTNAME= p7zip_4.20_src
PKGNAME= p7zip-4.20
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=p7zip/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://p7zip.sourceforge.net/
COMMENT= File archiver with high compression
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
MAKEFILE= makefile
NO_CONFIGURE= yes
USE_TOOLS+= gmake
PTHREAD_OPTS+= require
# compiles, but does not recognize any archives as supported
DYNAMIC_7Z= NO
.if !empty(DYNAMIC_7Z:MYES)
BUILD_TARGET= all2
PLIST_SUBST+= DYNAMIC_7Z=""
.else
PLIST_SUBST+= DYNAMIC_7Z="@comment "
.endif
WRKSRC= ${WRKDIR}/${DISTNAME:S/_src//}
GCC_REQD= 3.0
INSTALLATION_DIRS= bin
.include "../../mk/endian.mk"
.if !empty(MACHINE_ENDIAN:Mbig)
CFLAGS+= -DBIG_ENDIAN
.else
CFLAGS+= -DLITTLE_ENDIAN
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${PREFIX}/bin
.if !empty(DYNAMIC_7Z:MYES)
${INSTALL_DATA_DIR} ${PREFIX}/lib/7z
${INSTALL_DATA_DIR} ${PREFIX}/lib/7z/Codecs
${INSTALL_DATA_DIR} ${PREFIX}/lib/7z/Formats
${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${PREFIX}/lib/7z
${INSTALL_LIB} ${WRKSRC}/bin/Codecs/* ${PREFIX}/lib/7z/Codecs
${INSTALL_LIB} ${WRKSRC}/bin/Formats/* ${PREFIX}/lib/7z/Formats
${LN} -s ${PREFIX}/lib/7z/7z ${PREFIX}/bin
.else
${LN} -s 7za ${PREFIX}/bin/7z
.endif
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/p7zip
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/p7zip/commands
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/p7zip/switches
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/p7zip
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/*.* ${PREFIX}/share/doc/p7zip
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/commands/*.* ${PREFIX}/share/doc/p7zip/commands
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/switches/*.* ${PREFIX}/share/doc/p7zip/switches
${INSTALL_MAN} ${WRKSRC}/man1/7z.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man1/7za.1 ${PREFIX}/man/man1
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|