From 9a6bd32c1f33f97bd47d022fa760795e079f2f0f Mon Sep 17 00:00:00 2001 From: Michael Gmelin Date: Mon, 2 Jun 2014 17:28:16 +0000 Subject: [PATCH] Stagify Reviewed by: flo (mentor) Approved by: flo (mentor) --- emulators/o2em/Makefile | 26 ++++++++++----------- emulators/o2em/files/patch-Makefile.debug | 2 +- emulators/o2em/files/patch-Makefile.freebsd | 2 +- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/emulators/o2em/Makefile b/emulators/o2em/Makefile index 2426d7dc0742..0e39affcb31d 100644 --- a/emulators/o2em/Makefile +++ b/emulators/o2em/Makefile @@ -20,28 +20,26 @@ MAKEFILE= Makefile.freebsd USES= gmake zip LDFLAGS+= ${PTHREAD_LIBS} -NO_STAGE= yes post-extract: @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|h|txt)" -print0 | \ ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/o2em ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/src/dis48 ${PREFIX}/bin - @${MKDIR} ${PREFIX}/${PORTNAME} - @${MKDIR} ${PREFIX}/${PORTNAME}/bios - ${INSTALL_DATA} ${WRKSRC}/O2ROM.BIN ${PREFIX}/${PORTNAME}/bios/o2rom.bin - @${MKDIR} ${PREFIX}/${PORTNAME}/voice - ${INSTALL_DATA} ${WRKDIR}/*.WAV ${PREFIX}/${PORTNAME}/voice/ + ${INSTALL_PROGRAM} ${WRKSRC}/src/o2em ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/dis48 ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} + @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/bios + ${INSTALL_DATA} ${WRKSRC}/O2ROM.BIN ${STAGEDIR}${PREFIX}/${PORTNAME}/bios/o2rom.bin + @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/voice + ${INSTALL_DATA} ${WRKDIR}/*.WAV ${STAGEDIR}${PREFIX}/${PORTNAME}/voice/ .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/O2EM.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/changelog.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/license.txt ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/O2EM.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/changelog.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/license.txt ${STAGEDIR}${DOCSDIR} .endif post-install: - ${MKDIR} ${PREFIX}/o2em/roms - @${CAT} ${PKGMESSAGE} + ${MKDIR} ${STAGEDIR}${PREFIX}/o2em/roms .include diff --git a/emulators/o2em/files/patch-Makefile.debug b/emulators/o2em/files/patch-Makefile.debug index 807fcf029e9e..4c3467d71822 100644 --- a/emulators/o2em/files/patch-Makefile.debug +++ b/emulators/o2em/files/patch-Makefile.debug @@ -2,7 +2,7 @@ diff -urN ../o2em117src.old/Makefile.debug ./Makefile.debug --- ../o2em117src.old/Makefile.debug Wed Dec 31 18:00:00 1969 +++ ./Makefile.debug Fri Jun 24 16:05:27 2005 @@ -0,0 +1,64 @@ -+CC = gcc ++ + +CFLAGS = -g -Wall -I${PREFIX}/include -DFREEBSD -DPREFIX=\"${PREFIX}\" +LFLAGS = diff --git a/emulators/o2em/files/patch-Makefile.freebsd b/emulators/o2em/files/patch-Makefile.freebsd index d6f0913a5c2d..0460ed4d75cc 100644 --- a/emulators/o2em/files/patch-Makefile.freebsd +++ b/emulators/o2em/files/patch-Makefile.freebsd @@ -2,7 +2,7 @@ diff -urN ../o2em117src.old/Makefile.freebsd ./Makefile.freebsd --- ../o2em117src.old/Makefile.freebsd Wed Dec 31 18:00:00 1969 +++ ./Makefile.freebsd Fri Jun 24 16:05:40 2005 @@ -0,0 +1,65 @@ -+CC = gcc ++ + +CFLAGS = -O3 -Wall -fomit-frame-pointer -I${PREFIX}/include -DFREEBSD -DPREFIX=\"${PREFIX}\" +LFLAGS = -s ${LDFLAGS}