Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2014 07:31:54 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350784 - head/emulators/quasi88
Message-ID:  <201404100731.s3A7VsTb001011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Apr 10 07:31:54 2014
New Revision: 350784
URL: http://svnweb.freebsd.org/changeset/ports/350784
QAT: https://qat.redports.org/buildarchive/r350784/

Log:
  - Add staging support
  - Convert to new options framework, USES=gmake

Modified:
  head/emulators/quasi88/Makefile

Modified: head/emulators/quasi88/Makefile
==============================================================================
--- head/emulators/quasi88/Makefile	Thu Apr 10 07:27:35 2014	(r350783)
+++ head/emulators/quasi88/Makefile	Thu Apr 10 07:31:54 2014	(r350784)
@@ -12,25 +12,25 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	PC-8801 emulator for X
 
 USE_XORG=	x11 xext
-USE_GMAKE=	yes
+USES=		gmake
 MAKE_ENV=	DATADIR="${DATADIR}" _CC="${CC}" _CFLAGS="${CFLAGS}" \
 		_CXX="${CXX}" LD="${CXX}" PROGRAM="${PORTNAME}"
 MAKE_ARGS=	ARCH="freebsd"
 
 PORTDOCS=	FAQ.TXT FORMAT.TXT GET-IMAGE.TXT HISTORY.TXT MANUAL.TXT \
 		QUASI88.TXT
-PLIST_FILES=	bin/quasi88 %%EXAMPLESDIR%%/keyconf.rc \
-		%%EXAMPLESDIR%%/quasi88.rc
-PLIST_DIRS=	%%EXAMPLESDIR%%
+PORTEXAMPLES=	*
+PLIST_FILES=	bin/quasi88
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES SDL
+
+.include <bsd.port.options.mk>
 
 .if ${ARCH} == "i386"
 MAKE_ENV+=	LSB_FIRST=1
 .endif
 
-.if defined(WITH_SDL)
+.if ${PORT_OPTIONS:MSDL}
 USE_SDL=	sdl
 MAKE_ENV+=	SDL_VERSION=1 JOYSTICK="joy_sdl"
 .else
@@ -52,14 +52,11 @@ post-patch:
 		 s|^PROGRAM|# PROGRAM|g' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/quasi88 ${PREFIX}/bin
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/*.rc ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/document/${file} ${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/quasi88 ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/*.rc ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/document && ${INSTALL_DATA} ${PORTDOCS} \
+		${STAGEDIR}${DOCSDIR})
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404100731.s3A7VsTb001011>