5393242c73
Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2018/07/04 13:40:17 jperkin Exp $
|
|
|
|
DISTNAME= dosbox-0.74
|
|
PKGREVISION= 10
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dosbox/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://dosbox.sourceforge.net/
|
|
COMMENT= Multi-platform DOS emulator using SDL
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LANGUAGES= c c++
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS.Darwin+= --disable-dynrec
|
|
CPPFLAGS.SunOS+= -DDISABLE_JOYSTICK
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(CC_VERSION:Mclang*)
|
|
CPPFLAGS+= -fPIC
|
|
.endif
|
|
LDFLAGS.SunOS+= -lsocket
|
|
INSTALLATION_DIRS= share/doc/dosbox
|
|
|
|
SUBST_CLASSES+= fixme
|
|
SUBST_STAGE.fixme= pre-configure
|
|
SUBST_FILES.fixme= docs/dosbox.1
|
|
SUBST_SED.fixme= -e s,/usr/share/,${PREFIX}/share/,g
|
|
|
|
NOT_PAX_MPROTECT_SAFE+= bin/dosbox
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dosbox
|
|
|
|
.include "../../audio/SDL_sound/buildlink3.mk"
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../net/SDL_net/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|