Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2017 09:04:23 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r452759 - head/games/powermanga
Message-ID:  <201710240904.v9O94Nh4056927@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Oct 24 09:04:23 2017
New Revision: 452759
URL: https://svnweb.freebsd.org/changeset/ports/452759

Log:
  - Update WWW
  - Fix LICENSE
  - Switch to USES=localbase
  - Switch to options helpers

Modified:
  head/games/powermanga/Makefile

Modified: head/games/powermanga/Makefile
==============================================================================
--- head/games/powermanga/Makefile	Tue Oct 24 08:58:09 2017	(r452758)
+++ head/games/powermanga/Makefile	Tue Oct 24 09:04:23 2017	(r452759)
@@ -5,18 +5,17 @@ PORTNAME=	powermanga
 PORTVERSION=	0.93.1
 CATEGORIES=	games
 MASTER_SITES=	http://linux.tlk.fr/games/Powermanga/download/ \
-		http://mirror.amdmi3.ru/distfiles/
-EXTRACT_SUFX=	.tgz
+		https://mirror.amdmi3.ru/distfiles/
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Arcade 2D shoot-em-up
 
-LICENSE=	GPLv3
+LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libpng.so:graphics/png
 
-USES=		autoreconf
+USES=		autoreconf localbase tar:tgz
 USE_XORG=	xext xxf86dga
 USE_SDL=	sdl mixer
 GNU_CONFIGURE=	yes
@@ -24,10 +23,10 @@ GNU_CONFIGURE=	yes
 PORTDOCS=	*
 PORTDATA=	*
 
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 LIBS+=		-lm
 
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${REINPLACE_CMD} -e '/CFLAGS/ { s|-O3||; s|-Werror||; }' ${WRKSRC}/configure.ac
 	@${REINPLACE_CMD} -e \
@@ -42,13 +41,15 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|Lang=fr|Lang=en|' ${WRKSRC}/texts/config.ini
 
 post-install:
-	${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_DATA} ${WRKSRC}/powermanga.desktop ${STAGEDIR}${PREFIX}/share/applications/
 	${INSTALL_DATA} ${WRKSRC}/powermanga.xpm ${STAGEDIR}${PREFIX}/share/pixmaps/
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
 .for f in powermanga.hi powermanga.hi-easy powermanga.hi-hard
 	${MV} ${STAGEDIR}/var/games/${PORTNAME}/${f} ${STAGEDIR}/var/games/${PORTNAME}/${f}.sample
 .endfor
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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