Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 00:13:24 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340758 - head/devel/cobf
Message-ID:  <201401230013.s0N0DOBC038079@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan 23 00:13:24 2014
New Revision: 340758
URL: http://svnweb.freebsd.org/changeset/ports/340758
QAT: https://qat.redports.org/buildarchive/r340758/

Log:
  Support stage
  Use bsdtar to extract
  Use BUILD_WRKSRC instead of custom do-build

Modified:
  head/devel/cobf/Makefile

Modified: head/devel/cobf/Makefile
==============================================================================
--- head/devel/cobf/Makefile	Thu Jan 23 00:09:17 2014	(r340757)
+++ head/devel/cobf/Makefile	Thu Jan 23 00:13:24 2014	(r340758)
@@ -6,26 +6,24 @@ PORTVERSION=	1.06
 CATEGORIES=	devel
 MASTER_SITES=	http://home.arcor.de/bernhard.baier/${PORTNAME}/
 DISTNAME=	${PORTNAME}_${PORTVERSION}
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	ed@FreeBSD.org
 COMMENT=	C and C++ code obfuscator
 
-USE_ZIP=	yes
+OPTIONS_DEFINE=	DOCS
+
 WRKSRC=		${WRKDIR}
 PORTDOCS=	COPYING README cobf.pdf
 PLIST_FILES=	bin/cobf
-
-NO_STAGE=	yes
-do-build:
-	@${MAKE} -C ${WRKSRC}/src/cpp
+MAKEFILE=	makefile
+BUILD_WRKSRC=	${WRKSRC}/src/cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/cpp/cobf ${PREFIX}/bin/cobf
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/copyright.txt ${DOCSDIR}/COPYING
-	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/README
-	${INSTALL_DATA} ${WRKSRC}/doc/cobf.pdf ${DOCSDIR}/cobf.pdf
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/src/cpp/cobf ${STAGEDIR}${PREFIX}/bin/cobf
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/copyright.txt ${STAGEDIR}${DOCSDIR}/COPYING
+	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/README
+	${INSTALL_DATA} ${WRKSRC}/doc/cobf.pdf ${STAGEDIR}${DOCSDIR}/cobf.pdf
 
 .include <bsd.port.mk>



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