View | Details | Raw Unified | Return to bug 86921
Collapse All | Expand All

(-)databases/gauche-gdbm/Makefile (-6 / +18 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	gdbm
8
PORTNAME=	gdbm
9
PORTVERSION=	0.8.5	# Keep this in sync with lang/gauche
9
PORTVERSION=	0.8.5	# Keep this in sync with lang/gauche
10
PORTREVISION=	1
10
CATEGORIES=	databases scheme
11
CATEGORIES=	databases scheme
11
MASTER_SITES=	# none
12
MASTER_SITES=	# none
12
PKGNAMEPREFIX=	gauche-
13
PKGNAMEPREFIX=	gauche-
Lines 16-22 Link Here
16
COMMENT=	GDBM interface for Gauche
17
COMMENT=	GDBM interface for Gauche
17
18
18
BUILD_DEPENDS=	gosh:${PORTSDIR}/${GAUCHE_PORT} \
19
BUILD_DEPENDS=	gosh:${PORTSDIR}/${GAUCHE_PORT} \
19
		${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:build
20
		${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:patch
20
LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm
21
LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm
21
RUN_DEPENDS=	gosh:${PORTSDIR}/${GAUCHE_PORT}
22
RUN_DEPENDS=	gosh:${PORTSDIR}/${GAUCHE_PORT}
22
23
Lines 25-33 Link Here
25
WRKSRC=		${WRKDIR}/dbm
26
WRKSRC=		${WRKDIR}/dbm
26
MAKE_ARGS=	GOSH=gosh \
27
MAKE_ARGS=	GOSH=gosh \
27
		OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include"
28
		OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include"
28
PLIST_SUB=	VERSION="${PORTVERSION}" \
29
		TARGET="${CONFIGURE_TARGET}"
30
USE_REINPLACE=	yes
29
USE_REINPLACE=	yes
30
PLIST_FILES=	lib/gauche/$(PORTVERSION)/${CONFIGURE_TARGET}/gdbm.so \
31
		share/gauche/$(PORTVERSION)/lib/dbm/gdbm.scm
31
32
32
GUACHE_BUILDDIR=`cd ${PORTSDIR}/${GAUCHE_PORT} && ${MAKE} -V WRKSRC`
33
GUACHE_BUILDDIR=`cd ${PORTSDIR}/${GAUCHE_PORT} && ${MAKE} -V WRKSRC`
33
34
Lines 35-44 Link Here
35
	${MKDIR} ${WRKDIR}
36
	${MKDIR} ${WRKDIR}
36
	${LN} -sf ${GUACHE_BUILDDIR}/ext/dbm ${WRKDIR}/
37
	${LN} -sf ${GUACHE_BUILDDIR}/ext/dbm ${WRKDIR}/
37
38
38
do-configure:
39
do-build:
39
	cd ${WRKSRC} && make clean && ${REINPLACE_CMD} -e 's/^LIBFILES.*/LIBFILES = gdbm.so/' -e 's/^SCMFILES.*/SCMFILES = gdbm.scm/' Makefile
40
	cd ${WRKSRC} && ${LOCALBASE}/bin/gauche-config --fixup-extension gdbm
41
	cd ${WRKSRC} && ${LOCALBASE}/bin/gosh genstub gdbm.stub
42
	cd ${WRKSRC} && $(CC) $(CFLAGS) -c gdbm_head.c
43
	cd ${WRKSRC} && $(CC) $(CFLAGS) -c gdbm_tail.c
44
	cd ${WRKSRC} && $(CC) $(CFLAGS) -c -I${LOCALBASE}/include \
45
		-I'${LOCALBASE}/lib/gauche/${PORTVERSION}/include' gdbm.c
46
	cd ${WRKSRC} && $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-x -o gdbm.so \
47
		-Wl,-soname,gdbm.so gdbm.o gdbm_head.o gdbm_tail.o \
48
		-L${LOCALBASE}/lib -lgdbm
40
49
41
do-install:
50
do-install:
42
	cd ${WRKSRC} && make install-std
51
	${INSTALL_PROGRAM} ${WRKSRC}/gdbm.so \
52
		${LOCALBASE}/lib/gauche/$(PORTVERSION)/${CONFIGURE_TARGET}/gdbm.so
53
	${INSTALL_DATA} ${WRKSRC}/gdbm.scm \
54
		${LOCALBASE}/share/gauche/$(PORTVERSION)/lib/dbm/gdbm.scm
43
55
44
.include <bsd.port.mk>
56
.include <bsd.port.mk>
(-)databases/gauche-gdbm/pkg-plist (-2 lines)
Removed Link Here
1
lib/gauche/%%VERSION%%/%%TARGET%%/gdbm.so
2
share/gauche/%%VERSION%%/lib/dbm/gdbm.scm

Return to bug 86921