2002-09-09 19:25:33 +00:00
|
|
|
# New ports collection makefile for: gauche-gdbm
|
|
|
|
# Date created: 9 September 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdbm
|
2008-02-15 17:02:10 +00:00
|
|
|
PORTVERSION= 0.8.13 # Keep this in sync with lang/gauche
|
2003-08-21 05:36:55 +00:00
|
|
|
CATEGORIES= databases scheme
|
2002-09-09 19:25:33 +00:00
|
|
|
MASTER_SITES= # none
|
|
|
|
PKGNAMEPREFIX= gauche-
|
|
|
|
DISTFILES= # none
|
|
|
|
|
2004-05-16 07:30:10 +00:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 11:15:57 +00:00
|
|
|
COMMENT= GDBM interface for Gauche
|
2002-09-09 19:25:33 +00:00
|
|
|
|
2005-10-05 14:56:34 +00:00
|
|
|
BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche \
|
|
|
|
${NONEXISTENT}:${PORTSDIR}/lang/gauche:patch
|
2003-01-03 08:26:35 +00:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
2005-10-05 14:56:34 +00:00
|
|
|
RUN_DEPENDS= gosh:${PORTSDIR}/lang/gauche
|
2002-09-09 19:25:33 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/dbm
|
|
|
|
MAKE_ARGS= GOSH=gosh \
|
2002-11-28 11:57:42 +00:00
|
|
|
OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2002-09-09 19:25:33 +00:00
|
|
|
|
2005-10-05 14:56:34 +00:00
|
|
|
PLIST_FILES= lib/gauche/${PORTVERSION}/${CONFIGURE_TARGET}/gdbm.so \
|
|
|
|
share/gauche/${PORTVERSION}/lib/dbm/gdbm.scm
|
|
|
|
|
|
|
|
GUACHE_BUILDDIR=`cd ${PORTSDIR}/lang/gauche && ${MAKE} -V WRKSRC`
|
2005-07-26 08:05:10 +00:00
|
|
|
|
2002-09-09 19:25:33 +00:00
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
2005-07-26 08:05:10 +00:00
|
|
|
${LN} -sf ${GUACHE_BUILDDIR}/ext/dbm ${WRKDIR}/
|
2003-06-17 15:10:00 +00:00
|
|
|
|
2005-10-05 14:56:34 +00:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/gauche-config --fixup-extension gdbm
|
|
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/gosh genstub gdbm.stub
|
2006-06-05 13:10:29 +00:00
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -c gdbm_head.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -c gdbm_tail.c
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -c -I${LOCALBASE}/include \
|
2005-10-05 14:56:34 +00:00
|
|
|
-I'${LOCALBASE}/lib/gauche/${PORTVERSION}/include' gdbm.c
|
2006-06-05 13:10:29 +00:00
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -fPIC -shared -Wl,-x -o gdbm.so \
|
2005-10-05 14:56:34 +00:00
|
|
|
-Wl,-soname,gdbm.so gdbm.o gdbm_head.o gdbm_tail.o \
|
|
|
|
-L${LOCALBASE}/lib -lgdbm
|
2002-09-09 19:25:33 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-10-05 14:56:34 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gdbm.so \
|
|
|
|
${LOCALBASE}/lib/gauche/${PORTVERSION}/${CONFIGURE_TARGET}/gdbm.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gdbm.scm \
|
|
|
|
${LOCALBASE}/share/gauche/${PORTVERSION}/lib/dbm/gdbm.scm
|
2002-09-09 19:25:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|