pkgsrc/lang/p2c/Makefile
dholland e3427f5aae Improve the post-extract chmod so it doesn't choke on Solaris, where
a chmod -R that goes into work/.tools will fail for some Solaris reason.
2012-03-05 04:04:09 +00:00

28 lines
685 B
Makefile

# $NetBSD: Makefile,v 1.14 2012/03/05 04:04:09 dholland Exp $
DISTNAME= p2c-1.20
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://csvax.cs.caltech.edu/pub/
EXTRACT_SUFX= .tar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Pascal to C compiler (translates Pascal to C)
LICENSE= gnu-gpl-v1
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/src
CFLAGS+= -Dunix=1
INSTALL_MAKE_FLAGS= PREFIX=${DESTDIR}${PREFIX}
.include "../../mk/bsd.prefs.mk"
post-extract:
# The distfile contains a number of world-writable files, including
# an entry for '.' that causes pkgsrc to become upset. Fix it.
${CHMOD} 755 ${WRKDIR}
${CHMOD} -R o-w ${WRKDIR}/*
.include "../../mk/bsd.pkg.mk"