[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.31.4.1, Fri Apr 1 05:43:51 2005 UTC (15 years ago) by snj
Branch: pkgsrc-2005Q1
Changes since 1.31: +2 -2 lines

Pullup ticket 411 - requested by Min Sik Kim
portability fix for zip1

Revision pulled up:
- pkgsrc/archivers/zip1/Makefile	1.32


    Module Name:  pkgsrc
    Committed By: minskim
    Date:         Fri Mar 25 15:27:45 UTC 2005

    Modified Files:
          pkgsrc/archivers/zip1: Makefile

    Log Message:
    Avoid using libcompat on Darwin.

# $NetBSD: Makefile,v 1.31.4.1 2005/04/01 05:43:51 snj Exp $
#

DISTNAME=	zip1-1.1
PKGREVISION=	1
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=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.info-zip.org/pub/infozip/
COMMENT=	Create/update ZIP files compatible with pkzip version 1

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

PKG_INSTALLATION_TYPES=	overwrite pkgviews

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

USE_BUILDLINK3=	yes

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

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

INSTALLATION_DIRS=	bin man/man1

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

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