2002-09-09 21:25:33 +02:00
|
|
|
# New ports collection makefile for: gauche-gdbm
|
|
|
|
# Date created: 9 September 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gdbm
|
2003-12-17 12:36:37 +01:00
|
|
|
PORTVERSION= 0.7.3 # Keep this in sync with lang/gauche
|
2003-08-21 07:36:55 +02:00
|
|
|
CATEGORIES= databases scheme
|
2002-09-09 21:25:33 +02:00
|
|
|
MASTER_SITES= # none
|
|
|
|
PKGNAMEPREFIX= gauche-
|
|
|
|
DISTFILES= # none
|
|
|
|
|
2002-12-18 14:04:36 +01:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 12:15:57 +01:00
|
|
|
COMMENT= GDBM interface for Gauche
|
2002-09-09 21:25:33 +02:00
|
|
|
|
|
|
|
BUILD_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT} \
|
2003-06-17 17:10:00 +02:00
|
|
|
${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:build
|
2003-01-03 09:26:35 +01:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
2002-09-09 21:25:33 +02:00
|
|
|
RUN_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT}
|
|
|
|
|
|
|
|
GAUCHE_PORT= lang/gauche
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/dbm
|
|
|
|
MAKE_ARGS= GOSH=gosh \
|
2002-11-28 12:57:42 +01:00
|
|
|
OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2002-09-09 21:25:33 +02:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}" \
|
|
|
|
TARGET="${CONFIGURE_TARGET}"
|
2003-06-17 17:10:00 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-09-09 21:25:33 +02:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
2003-06-17 17:10:00 +02:00
|
|
|
${LN} -sf `cd ${PORTSDIR}/${GAUCHE_PORT} && ${MAKE} -V WRKSRC`/ext/dbm ${WRKDIR}/
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd `cd ${PORTSDIR}/${GAUCHE_PORT} && ${MAKE} -V WRKSRC` && ./configure --with-local=${LOCALBASE} --prefix=${LOCALBASE} --target=${CONFIGURE_TARGET} --host=${CONFIGURE_HOST} --build=${CONFIGURE_BUILD} && cd ext && ${REINPLACE_CMD} -e "s/archdir/&|sed 's,unknown-freebsd,portbld-freebsd,'/" Makefile.ext
|
2003-08-21 11:28:55 +02:00
|
|
|
cd ${WRKSRC} && make clean && ${REINPLACE_CMD} -e 's/^LIBFILES.*/LIBFILES = gdbm.so/' -e 's/^SCMFILES.*/SCMFILES = gdbm.scm/' Makefile
|
2002-09-09 21:25:33 +02:00
|
|
|
|
|
|
|
do-install:
|
2003-06-17 17:10:00 +02:00
|
|
|
cd ${WRKSRC} && make install-std
|
2002-09-09 21:25:33 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|