[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / archivers / zip1

File: [cvs.NetBSD.org] / pkgsrc / archivers / zip1 / Attic / Makefile (download)

Revision 1.44, Tue May 19 08:59:01 2009 UTC (14 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.43: +2 -2 lines

Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.

# $NetBSD: Makefile,v 1.44 2009/05/19 08:59:01 wiz Exp $
#

DISTNAME=	zip1-1.1
PKGREVISION=	2
CATEGORIES=	archivers
MASTER_SITES=	ftp://ftp.info-zip.org/pub/infozip/src/ \
		http://ftp.uni-koeln.de/util/arc/
DISTFILES=	zip11.zip zcrypt10.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.info-zip.org/pub/infozip/
COMMENT=	Create/update ZIP files compatible with pkzip version 1
LICENSE=	generic-nonlicense

RESTRICTED=	Do not modify.  Do not sell for profit.
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}
MAKE_FILE=	makefile
BUILD_TARGET=	zip zipcloak

.include "../../mk/bsd.prefs.mk"

MAKE_FLAGS+=	CFLAGS=${CFLAGS:M*:Q}
.if ${OPSYS} == "Linux" || ${OPSYS} == "Interix" || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly"
CFLAGS+=	-DSYSV -DMODERN -DTERMIOS
.else
CFLAGS+=	-DDIRENT
MAKE_FLAGS+=	LFLAGS2=-lcompat
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	cd ${WRKSRC} && ${INSTALL_PROGRAM} zip \
		${DESTDIR}${PREFIX}/bin/zip1
	cd ${WRKSRC} && ${INSTALL_MAN} zip.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/zip1.1
	cd ${WRKSRC} && ${INSTALL_PROGRAM} zipcloak \
		${DESTDIR}${PREFIX}/bin/zipcloak1
	${LN} -fs zip1.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/zipcloak1.1

.include "../../mk/bsd.pkg.mk"