svn commit: r319247 - in head/graphics/icoutils: . files

Martin Wilke miwi at FreeBSD.org
Mon May 27 14:23:04 UTC 2013


Author: miwi
Date: Mon May 27 14:23:04 2013
New Revision: 319247
URL: http://svnweb.freebsd.org/changeset/ports/319247

Log:
  - Support shebangfix
  
  PR:		178870
  Submitted by:	Ports Fury

Deleted:
  head/graphics/icoutils/files/
Modified:
  head/graphics/icoutils/Makefile

Modified: head/graphics/icoutils/Makefile
==============================================================================
--- head/graphics/icoutils/Makefile	Mon May 27 14:21:14 2013	(r319246)
+++ head/graphics/icoutils/Makefile	Mon May 27 14:23:04 2013	(r319247)
@@ -13,20 +13,22 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 
+OPTIONS_DEFINE=	RESSCRIPTS
+RESSCRIPTS_DESC=	PERL resource scripts
+
 USE_BZIP2=	yes
+USES=		shebangfix
+SHEBANG_FILES=	extresso/*.in
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-nls
 MAKE_JOBS_SAFE=	yes
 
-MAN1=		icotool.1 wrestool.1
-PLIST_FILES=	bin/icotool \
-		bin/wrestool
-
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-OPTIONS_DEFINE=	RESSCRIPTS
-RESSCRIPTS_DESC=	PERL resource scripts
+MAN1=		icotool.1 wrestool.1
+PLIST_FILES=	bin/icotool \
+		bin/wrestool
 
 .include <bsd.port.options.mk>
 
@@ -36,10 +38,6 @@ USE_PERL5_RUN=	yes
 MAN1+=		extresso.1 genresscript.1
 PLIST_FILES+=	bin/extresso \
 		bin/genresscript
-.else
-post-patch:
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-Makefile.in \
-		${FILESDIR}/extra-patch-configure.ac
 .endif
 
 .include <bsd.port.pre.mk>
@@ -48,4 +46,14 @@ EXTRA_PATCHES+=	${FILESDIR}/extra-patch-
 BROKEN=		Does not link on sparc64
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/^SUBDIRS/s|extresso||' ${WRKSRC}/Makefile.in
+
+post-install:
+.if ${PORT_OPTIONS:MRESSCRIPTS}
+	@(cd ${WRKSRC}/extresso && ${SETENV} ${MAKE_ENV} ${MAKE} \
+		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endif
+
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list