svn commit: r337709 - head/databases/cdb

Baptiste Daroussin bapt at FreeBSD.org
Fri Dec 27 11:21:01 UTC 2013


Author: bapt
Date: Fri Dec 27 11:12:02 2013
New Revision: 337709
URL: http://svnweb.freebsd.org/changeset/ports/337709

Log:
  Use CFLAGS_amd64
  While here support stage

Modified:
  head/databases/cdb/Makefile

Modified: head/databases/cdb/Makefile
==============================================================================
--- head/databases/cdb/Makefile	Fri Dec 27 11:09:35 2013	(r337708)
+++ head/databases/cdb/Makefile	Fri Dec 27 11:12:02 2013	(r337709)
@@ -7,11 +7,12 @@ CATEGORIES=	databases
 MASTER_SITES=	http://cr.yp.to/cdb/
 
 MAINTAINER=	jlaffaye at FreeBSD.org
-COMMENT=	A fast lookup database library & utilities
+COMMENT=	Fast lookup database library & utilities
 
 ALL_TARGET=	it
 
-NO_STAGE=	yes
+CFLAGS_amd64=	-fPIC
+
 do-configure:
 	@${MV} ${WRKSRC}/conf-home ${WRKSRC}/conf-home.orig
 	${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
@@ -22,16 +23,10 @@ do-configure:
 
 do-install:
 .for file in cdbdump cdbget cdbmake cdbstats cdbtest
-	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
 .endfor
 .for file in cdbmake-12 cdbmake-sv
-	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
 .endfor
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == amd64
-CFLAGS+=	-fPIC
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-head mailing list