2009-02-18 08:19:06 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2009/02/18 07:19:06 adam Exp $
|
2005-05-17 09:22:37 +02:00
|
|
|
|
2009-02-18 08:19:06 +01:00
|
|
|
DISTNAME= p7zip_4.65_src_all
|
|
|
|
PKGNAME= p7zip-4.65
|
2005-05-17 09:22:37 +02:00
|
|
|
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
|
2004-06-25 15:56:12 +02:00
|
|
|
|
2004-07-05 16:44:22 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-03-02 04:48:36 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-07-05 16:44:22 +02:00
|
|
|
|
2004-06-27 22:28:53 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= makefile
|
2007-06-01 02:54:47 +02:00
|
|
|
MAKE_JOBS_SAFE= no # missing header when compiling sfx
|
2004-06-25 15:56:12 +02:00
|
|
|
NO_CONFIGURE= yes
|
2004-06-27 22:28:53 +02:00
|
|
|
PTHREAD_OPTS+= require
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS= dll
|
2004-06-27 22:28:53 +02:00
|
|
|
|
2004-11-23 15:57:52 +01:00
|
|
|
# compiles, but does not recognize any archives as supported
|
|
|
|
DYNAMIC_7Z= NO
|
|
|
|
.if !empty(DYNAMIC_7Z:MYES)
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= all2
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.dll= yes
|
2004-11-23 15:57:52 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-08 10:27:42 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:S/-/_/}
|
2004-11-23 15:57:52 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
GCC_REQD+= 3.0
|
2004-06-25 15:56:12 +02:00
|
|
|
|
2008-04-07 19:48:14 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2007-01-27 22:50:11 +01:00
|
|
|
.if !empty(DYNAMIC_7Z:MYES)
|
|
|
|
INSTALLATION_DIRS+= lib/7z
|
|
|
|
INSTALLATION_DIRS+= lib/7z/Codecs
|
|
|
|
INSTALLATION_DIRS+= lib/7z/Formats
|
|
|
|
.endif
|
|
|
|
INSTALLATION_DIRS+= share/doc/p7zip
|
|
|
|
INSTALLATION_DIRS+= share/doc/p7zip/commands
|
|
|
|
INSTALLATION_DIRS+= share/doc/p7zip/switches
|
2004-07-05 16:44:22 +02:00
|
|
|
|
2004-11-23 15:57:52 +01:00
|
|
|
.include "../../mk/endian.mk"
|
|
|
|
|
|
|
|
.if !empty(MACHINE_ENDIAN:Mbig)
|
|
|
|
CFLAGS+= -DBIG_ENDIAN
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DLITTLE_ENDIAN
|
|
|
|
.endif
|
|
|
|
|
2004-06-25 15:56:12 +02:00
|
|
|
do-install:
|
2008-03-02 04:48:36 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${DESTDIR}${PREFIX}/bin
|
2004-11-23 15:57:52 +01:00
|
|
|
.if !empty(DYNAMIC_7Z:MYES)
|
2008-03-02 04:48:36 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${DESTDIR}${PREFIX}/lib/7z
|
|
|
|
ln -s ${PREFIX}/lib/7z/7z ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/bin/Codecs/* \
|
|
|
|
${DESTDIR}${PREFIX}/lib/7z/Codecs
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/bin/Formats/* \
|
|
|
|
${DESTDIR}${PREFIX}/lib/7z/Formats
|
2004-11-23 15:57:52 +01:00
|
|
|
.else
|
2008-04-05 02:34:07 +02:00
|
|
|
ln -s 7za ${DESTDIR}${PREFIX}/bin/7z
|
2004-11-23 15:57:52 +01:00
|
|
|
.endif
|
2008-03-02 04:48:36 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/p7zip
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/*.* \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/p7zip
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/commands/*.* \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/p7zip/commands
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/DOCS/MANUAL/switches/*.* \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/p7zip/switches
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man1/7z.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man1/7za.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man1/7zr.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2004-06-25 15:56:12 +02:00
|
|
|
|
2004-06-27 22:28:53 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-06-25 15:56:12 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|