Split out some code into Makefile.common to be used by darcnes-svgalib

in pkgsrc-wip. From Ben Collver.
This commit is contained in:
wiz 2003-08-02 19:52:12 +00:00
parent 35cdf1cc65
commit 079667a86b
2 changed files with 32 additions and 21 deletions

View file

@ -1,35 +1,17 @@
# $NetBSD: Makefile,v 1.18 2003/07/21 16:45:54 martti Exp $
# $NetBSD: Makefile,v 1.19 2003/08/02 19:52:12 wiz Exp $
DISTNAME= dn9b0401
PKGNAME= darcnes-20010401
WRKSRC= ${WRKDIR}/darcnes
CATEGORIES= emulators
MASTER_SITES= http://www.dridus.com/~nyef/darcnes/download/
EXTRACT_SUFX= .tgz
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.dridus.com/~nyef/darcnes/
COMMENT= Multi-system emulator (NES, SMS, GG, PCE, and others)
LICENSE= no-commercial-use
USE_X11= yes
USE_GMAKE= yes
MAKE_ENV+= TARGET=Linux_X
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/darcnes ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/darcnes
${INSTALL_MAN} ${WRKSRC}/readme ${PREFIX}/share/doc/darcnes
.include "Makefile.common"
.include "../../mk/bsd.pkg.mk"
.if ( ${OBJECT_FMT} == "a.out" )
MAKE_FLAGS+= ASM_FLAGS=-DASM_UNDERBARS
MAKE_FLAGS+= NO_MULTIPLE_COMMON_WARNING=-DNO_MULTIPLE_COMMON_WARNING
.endif
.if ( ${MACHINE_ARCH} == "i386" )
MAKE_FLAGS+= MACH_TYPES=-DMACH_TYPES=\\\"types-i386.h\\\"
.else
MAKE_FLAGS+= C_ONLY=-DC_ONLY
.endif

View file

@ -0,0 +1,29 @@
# $NetBSD: Makefile.common,v 1.1 2003/08/02 19:52:12 wiz Exp $
DISTNAME= dn9b0401
WRKSRC= ${WRKDIR}/darcnes
CATEGORIES= emulators
MASTER_SITES= http://www.dridus.com/~nyef/darcnes/download/
EXTRACT_SUFX= .tgz
HOMEPAGE= http://www.dridus.com/~nyef/darcnes/
LICENSE= no-commercial-use
USE_GMAKE= yes
USE_BUILDLINK2= yes
PATCHDIR= ${.CURDIR}/../../emulators/darcnes/patches
DISTINFO_FILE= ${.CURDIR}/../../emulators/darcnes/distinfo
.include "../../mk/bsd.prefs.mk"
.if ( ${OBJECT_FMT} == "a.out" )
MAKE_FLAGS+= ASM_FLAGS=-DASM_UNDERBARS
MAKE_FLAGS+= NO_MULTIPLE_COMMON_WARNING=-DNO_MULTIPLE_COMMON_WARNING
.endif
.if ( ${MACHINE_ARCH} == "i386" )
MAKE_FLAGS+= MACH_TYPES=-DMACH_TYPES=\\\"types-i386.h\\\"
.else
MAKE_FLAGS+= C_ONLY=-DC_ONLY
.endif