pkgsrc/emulators/handy_sdl/Makefile
marino 0fc5d5d712 emulators/handy_sdl: Really fix normal user building
The post-extract target on this package was supposed to allow normal users
to build this package, but it didn't work for me.  It may have been the
attempt at changing $WRKSRC instead of $WRKSRC/src (recursively).
The updated command touches only directories rather than all files and
now handy_sdl builds for me with a non-root user.
2012-05-27 17:47:29 +00:00

35 lines
901 B
Makefile

# $NetBSD: Makefile,v 1.6 2012/05/27 17:47:29 marino Exp $
#
DISTNAME= handy_sdl-0.5-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.xs4all.nl/~shalafi/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sdlemu.ngemu.com/handysdl.php
COMMENT= Atari Lynx emulator
PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
MAKE_FILE= Makefile-0.95
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin share/doc/handy_sdl
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
post-extract:
${FIND} ${WRKSRC}/src -type d -exec ${CHMOD} a+X {} \;
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/handy_sdl ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/handy_sdl
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"