Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2014 23:17:20 +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: r349093 - in head/archivers/dact: . files
Message-ID:  <201403242317.s2ONHKid050916@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Mar 24 23:17:20 2014
New Revision: 349093
URL: http://svnweb.freebsd.org/changeset/ports/349093
QAT: https://qat.redports.org/buildarchive/r349093/

Log:
  Support stage

Added:
  head/archivers/dact/files/
  head/archivers/dact/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/archivers/dact/Makefile
  head/archivers/dact/pkg-plist

Modified: head/archivers/dact/Makefile
==============================================================================
--- head/archivers/dact/Makefile	Mon Mar 24 23:00:42 2014	(r349092)
+++ head/archivers/dact/Makefile	Mon Mar 24 23:17:20 2014	(r349093)
@@ -12,37 +12,22 @@ COMMENT=	Dynamic Adaptive Compression To
 LIB_DEPENDS=	libmcrypt.so:${PORTSDIR}/security/libmcrypt \
 		liblzo2.so:${PORTSDIR}/archivers/lzo2
 
-NO_STAGE=	yes
-USES=		gmake
+USES=		gmake desthack
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--libdir=${PREFIX}/lib
 CPPFLAGS+=	${CXXFLAGS} -I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 MAKE_ARGS=	TOBUILD="dact libdact.so dact.conf"
 
-MAN1=		dact.1
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-.include <bsd.port.options.mk>
-post-patch:
-	@${REINPLACE_CMD} -e "s|prefix = @prefix@|prefix = ${PREFIX}|" \
-	-e "s|libdir = @libdir@|libdir = ${PREFIX}/lib|" \
-		${WRKSRC}/Makefile.in
-
-pre-install:
-	@${RM} -f ${WRKSRC}/libdact.a
-
 post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	${CP} -n ${WRKSRC}/dact.conf ${EXAMPLESDIR} || ${TRUE}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/dact.conf ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/archivers/dact/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/dact/files/patch-Makefile.in	Mon Mar 24 23:17:20 2014	(r349093)
@@ -0,0 +1,13 @@
+--- ./Makefile.in.orig	2006-03-25 14:15:04.000000000 +0100
++++ ./Makefile.in	2014-03-25 00:16:17.000000000 +0100
+@@ -24,8 +24,8 @@
+ 
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+-libdir = @libdir@
+-bindir = @bindir@
++libdir = @prefix@/lib
++bindir = @prefix@/bin
+ sysconfdir = @sysconfdir@
+ mandir = @mandir@
+ datadir = @datadir@

Modified: head/archivers/dact/pkg-plist
==============================================================================
--- head/archivers/dact/pkg-plist	Mon Mar 24 23:00:42 2014	(r349092)
+++ head/archivers/dact/pkg-plist	Mon Mar 24 23:17:20 2014	(r349093)
@@ -1,6 +1,7 @@
 bin/dact
 etc/dact.conf
 lib/libdact.so
+man/man1/dact.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/dact.txt
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dact.conf



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