# New ports collection makefile for: typhoon
# Version required:	1.10.3
# Date created:		Wed Dec 11 15:16:19 CST 1996
# Whom:			erich@FreeBSD.org
#
# $FreeBSD$
#

DISTNAME=	typhoon-1.10.3
CATEGORIES=	databases
MASTER_SITES=	${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=	libs/db
EXTRACT_SUFX=	.tgz

MAINTAINER=	erich@FreeBSD.org

HAS_CONFIGURE=     yes
MAN3=d_close.3 d_crget.3 d_crread.3 d_crset.3 d_dbdpath.3 d_dbfpath.3 \
     d_dbget.3 d_dbset.3 d_delete.3 d_fillnew.3 d_getsequence.3 d_keyfind.3 \
     d_keyfrst.3 d_keylast.3 d_keynext.3 d_keyprev.3 d_keyread.3 d_open.3 \
     d_recfrst.3 d_reclast.3 d_recnext.3 d_recprev.3 d_recread.3 \
     d_recwrite.3 d_setfiles.3
MAN1=ddlp.1

.include <bsd.port.pre.mk>

post-install:
	@${MKDIR} ${PREFIX}/share/typhoon
	@${INSTALL_DATA} ${WRKSRC}/man/manual.asc ${PREFIX}/share/typhoon
	@${INSTALL_DATA} ${WRKSRC}/include/environ.h ${WRKSRC}/include/typhoon.h ${PREFIX}/include
.if ${PORTOBJFORMAT} == "aout"
	${LN} -sf libtyphoon.so.1.10 ${PREFIX}/lib/libtyphoon.so
.endif
	@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.post.mk>