aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gauche-gdbm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/gauche-gdbm/Makefile')
-rw-r--r--databases/gauche-gdbm/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/databases/gauche-gdbm/Makefile b/databases/gauche-gdbm/Makefile
index 9bf04654c350..31d9234d47f0 100644
--- a/databases/gauche-gdbm/Makefile
+++ b/databases/gauche-gdbm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gdbm
-PORTVERSION= 0.6.8 # Keep this in sync with lang/gauche
+PORTVERSION= 0.7 # Keep this in sync with lang/gauche
CATEGORIES= databases
MASTER_SITES= # none
PKGNAMEPREFIX= gauche-
@@ -16,27 +16,28 @@ MAINTAINER= erik@smluc.org
COMMENT= GDBM interface for Gauche
BUILD_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT} \
- ${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:configure
+ ${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:build
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
RUN_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT}
GAUCHE_PORT= lang/gauche
WRKSRC= ${WRKDIR}/dbm
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS= GOSH=gosh \
OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include"
PLIST_SUB= VERSION="${PORTVERSION}" \
TARGET="${CONFIGURE_TARGET}"
+USE_REINPLACE= yes
do-extract:
${MKDIR} ${WRKDIR}
- ${LN} -sf `cd ${PORTSDIR}/${GAUCHE_PORT}; ${MAKE} -V WRKSRC`/ext/dbm ${WRKDIR}/
+ ${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
+ cd ${WRKSRC} && make clean && ${REINPLACE_CMD} -e 's/^LIBFILES.*/LIBFILES = gdbm.la/' -e 's/^SCMFILES.*/SCMFILES = gdbm.scm/' Makefile
do-install:
- ${INSTALL_DATA} ${WRKSRC}/gdbm.scm `gauche-config --syslibdir`/dbm/
- ${INSTALL_DATA} ${WRKSRC}/gdbm.so `gauche-config --sysarchdir`/
+ cd ${WRKSRC} && make install-std
.include <bsd.port.mk>