Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 11:47:43 +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: r420336 - head/graphics/comical
Message-ID:  <201608171147.u7HBlhRJ006003@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Aug 17 11:47:43 2016
New Revision: 420336
URL: https://svnweb.freebsd.org/changeset/ports/420336

Log:
  - Pet portlint
  - Drop unneeded WX_UNICODE
  - Silence patching and stripping
  - Remove always-true (since wx 2.6 removal) condition

Modified:
  head/graphics/comical/Makefile

Modified: head/graphics/comical/Makefile
==============================================================================
--- head/graphics/comical/Makefile	Wed Aug 17 11:46:12 2016	(r420335)
+++ head/graphics/comical/Makefile	Wed Aug 17 11:47:43 2016	(r420336)
@@ -10,30 +10,27 @@ MASTER_SITES=	SF
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Sequential image viewer
 
-LIB_DEPENDS=	libunrar.so:archivers/libunrar
-
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+LIB_DEPENDS=	libunrar.so:archivers/libunrar
+
 MAKE_JOBS_UNSAFE=	yes
 
 USES=		gmake
-USE_WX=		2.6+
-WX_PREMK=	yes
-WX_UNICODE=	yes
-PLIST_FILES=	bin/comical
+USE_WX=		2.8+
 
-.include <bsd.port.pre.mk>
+PLIST_FILES=	bin/comical
 
 post-patch:
-	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
+	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
 		s|\`wx-config --cxx\`|${CXX}|; \
 		s|wx-config|${WX_CONFIG}|; \
 		s|unrar/libunrar.a u|u|; \
 		s|-lunrar|-L${LOCALBASE}/lib -lunrar|;' \
 		${WRKSRC}/Makefile
 
-	${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|; \
+	@${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|; \
 		s|-D_UNIX|-D_UNIX -DwxUSE_UNICODE|; \
 		s|CFLAGS =|CFLAGS=${CFLAGS} |; \
 		s|CPPFLAGS =|CPPFLAGS=${CXXFLAGS} |; \
@@ -41,16 +38,14 @@ post-patch:
 		s|-I../unrar|-I${LOCALBASE}/include/libunrar3|;' \
 		${WRKSRC}/src/Makefile
 
-	${REINPLACE_CMD} -e 's|gcc|${CC}|; \
+	@${REINPLACE_CMD} -e 's|gcc|${CC}|; \
 		s|CFLAGS=|CFLAGS+=|;' \
 		${WRKSRC}/unzip/Makefile
 
-.if ${WX_VERSION} == "2.8"
-	${REINPLACE_CMD} -e 's|frame->SetIcon|//frame->SetIcon|' \
+	@${REINPLACE_CMD} -e 's|frame->SetIcon|//frame->SetIcon|' \
 		${WRKSRC}/src/ComicalApp.cpp
-.endif
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
-.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?201608171147.u7HBlhRJ006003>