aboutsummaryrefslogtreecommitdiffstats
path: root/databases/cdb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/cdb/Makefile')
-rw-r--r--databases/cdb/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/databases/cdb/Makefile b/databases/cdb/Makefile
index b3696c1965e1..90b2ea564695 100644
--- a/databases/cdb/Makefile
+++ b/databases/cdb/Makefile
@@ -15,10 +15,6 @@ COMMENT= A fast lookup database library & utilities
ALL_TARGET= it
-.if ${ARCH} == "amd64"
-CFLAGS+= -fPIC
-.endif
-
do-configure:
@${MV} ${WRKSRC}/conf-home ${WRKSRC}/conf-home.orig
${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
@@ -35,4 +31,10 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64
+CFLAGS+= -fPIC
+.endif
+
+.include <bsd.port.post.mk>