diff options
author | wiz <wiz@pkgsrc.org> | 2003-08-02 19:52:12 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-08-02 19:52:12 +0000 |
commit | 079667a86b824e1478408b875a6bee6dfc01afe0 (patch) | |
tree | c955fb6ef44f177d5b28b2ff87803cbf92b0c361 | |
parent | 35cdf1cc65b53dd0a97c526be6eb584d446c2b3b (diff) | |
download | pkgsrc-079667a86b824e1478408b875a6bee6dfc01afe0.tar.gz |
Split out some code into Makefile.common to be used by darcnes-svgalib
in pkgsrc-wip. From Ben Collver.
-rw-r--r-- | emulators/darcnes/Makefile | 24 | ||||
-rw-r--r-- | emulators/darcnes/Makefile.common | 29 |
2 files changed, 32 insertions, 21 deletions
diff --git a/emulators/darcnes/Makefile b/emulators/darcnes/Makefile index be8c4c7ee86..c83b5b6efa5 100644 --- a/emulators/darcnes/Makefile +++ b/emulators/darcnes/Makefile @@ -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 diff --git a/emulators/darcnes/Makefile.common b/emulators/darcnes/Makefile.common new file mode 100644 index 00000000000..466a5a59ddd --- /dev/null +++ b/emulators/darcnes/Makefile.common @@ -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 |