e93d85f4d6
While I am here, use GOOGLE_CODE instead of ${MASTER_SITE_GOOGLE_CODE} Approved by: bapt (mentor)
40 lines
962 B
Makefile
40 lines
962 B
Makefile
# ports collection makefile for: Constant DataBase
|
|
# Date created: 18th July 1998
|
|
# Whom: Gary Palmer <gpalmer@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cdb
|
|
PORTVERSION= 0.75
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://cr.yp.to/cdb/
|
|
|
|
MAINTAINER= jlaffaye@FreeBSD.org
|
|
COMMENT= A fast lookup database library & utilities
|
|
|
|
ALL_TARGET= it
|
|
|
|
do-configure:
|
|
@${MV} ${WRKSRC}/conf-home ${WRKSRC}/conf-home.orig
|
|
${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
|
|
@${MV} ${WRKSRC}/conf-cc ${WRKSRC}/conf-cc.orig
|
|
${ECHO_CMD} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
|
|
@${MV} ${WRKSRC}/conf-ld ${WRKSRC}/conf-ld.orig
|
|
${ECHO_CMD} ${CC} -s > ${WRKSRC}/conf-ld
|
|
|
|
do-install:
|
|
.for file in cdbdump cdbget cdbmake cdbstats cdbtest
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
|
.endfor
|
|
.for file in cdbmake-12 cdbmake-sv
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
|
|
.endfor
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == amd64
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|