Date: Wed, 9 Apr 2014 12:09:26 +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: r350680 - head/emulators/advancemenu Message-ID: <201404091209.s39C9QhB011603@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Wed Apr 9 12:09:26 2014 New Revision: 350680 URL: http://svnweb.freebsd.org/changeset/ports/350680 QAT: https://qat.redports.org/buildarchive/r350680/ Log: - Add staging support - Convert to new LIB_DEPENDS format - Use options helpers Modified: head/emulators/advancemenu/Makefile Modified: head/emulators/advancemenu/Makefile ============================================================================== --- head/emulators/advancemenu/Makefile Wed Apr 9 11:33:23 2014 (r350679) +++ head/emulators/advancemenu/Makefile Wed Apr 9 12:09:26 2014 (r350680) @@ -11,13 +11,10 @@ COMMENT= Frontend for AdvanceMAME, MAME, LICENSE= GPLv2 -LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 - -OPTIONS_DEFINE= FREETYPE DOCS -OPTIONS_DEFAULT=FREETYPE +LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 USE_SDL= sdl -USE_GMAKE= yes +USES= gmake GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-asm --disable-svgalib --disable-fb \ --disable-alsa --enable-oss --disable-slang \ @@ -26,18 +23,14 @@ CONFIGURE_ARGS= --disable-asm --disable- CFLAGS+= -idirafter ${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAN1= advmenu.1 PORTDOCS= * -PLIST_FILES= bin/advmenu +PLIST_FILES= bin/advmenu man/man1/advmenu.1.gz -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= FREETYPE DOCS +OPTIONS_DEFAULT=FREETYPE -.if ${PORT_OPTIONS:MFREETYPE} -LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2 -.else -CONFIGURE_ARGS+=--disable-freetype -.endif +FREETYPE_CONFIGURE_ENABLE= freetype +FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 post-patch: @${REINPLACE_CMD} -e \ @@ -50,14 +43,12 @@ post-patch: /WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu ${PREFIX}/bin) - (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 ${MANPREFIX}/man/man1) -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} -.for i in HISTORY README RELEASE - (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) -.endfor - (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${DOCSDIR}) -.endif + (cd ${WRKSRC} && ${INSTALL_PROGRAM} advmenu ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC}/doc && ${INSTALL_MAN} advmenu.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \ + ${STAGEDIR}${DOCSDIR}) + (cd ${WRKSRC}/doc && ${INSTALL_DATA} advmenu.[ht]* ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404091209.s39C9QhB011603>