diff options
author | mnag <mnag@FreeBSD.org> | 2005-10-05 22:56:34 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-10-05 22:56:34 +0800 |
commit | bbabe5ab093dfab64363ff1512dfed57977e918d (patch) | |
tree | 5910dc811166bfbc0d6b09b6a7c32d613ff7912a /databases/gauche-gdbm | |
parent | f295c2e0ce76d70db66e4c959490c5745159b1db (diff) | |
download | freebsd-ports-gnome-bbabe5ab093dfab64363ff1512dfed57977e918d.tar.gz freebsd-ports-gnome-bbabe5ab093dfab64363ff1512dfed57977e918d.tar.zst freebsd-ports-gnome-bbabe5ab093dfab64363ff1512dfed57977e918d.zip |
Build improvements
Link fixes [1]
PR: 86921, 86293 [1]
Submitted by: Erik Greenwald <erik@smluc.org> (maintainer)
Approved by: pav (mentor)
Diffstat (limited to 'databases/gauche-gdbm')
-rw-r--r-- | databases/gauche-gdbm/Makefile | 34 | ||||
-rw-r--r-- | databases/gauche-gdbm/pkg-plist | 2 |
2 files changed, 23 insertions, 13 deletions
diff --git a/databases/gauche-gdbm/Makefile b/databases/gauche-gdbm/Makefile index 5b6f0a49c521..3e71787de069 100644 --- a/databases/gauche-gdbm/Makefile +++ b/databases/gauche-gdbm/Makefile @@ -7,6 +7,7 @@ PORTNAME= gdbm PORTVERSION= 0.8.5 # Keep this in sync with lang/gauche +PORTREVISION= 1 CATEGORIES= databases scheme MASTER_SITES= # none PKGNAMEPREFIX= gauche- @@ -15,30 +16,41 @@ DISTFILES= # none MAINTAINER= erik@smluc.org COMMENT= GDBM interface for Gauche -BUILD_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT} \ - ${NONEXISTENT}:${PORTSDIR}/${GAUCHE_PORT}:build +BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche \ + ${NONEXISTENT}:${PORTSDIR}/lang/gauche:patch LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm -RUN_DEPENDS= gosh:${PORTSDIR}/${GAUCHE_PORT} +RUN_DEPENDS= gosh:${PORTSDIR}/lang/gauche -GAUCHE_PORT= lang/gauche +USE_REINPLACE= yes WRKSRC= ${WRKDIR}/dbm MAKE_ARGS= GOSH=gosh \ OPTFLAGS="${CFLAGS} -I${LOCALBASE}/include" -PLIST_SUB= VERSION="${PORTVERSION}" \ - TARGET="${CONFIGURE_TARGET}" -USE_REINPLACE= yes -GUACHE_BUILDDIR=`cd ${PORTSDIR}/${GAUCHE_PORT} && ${MAKE} -V WRKSRC` +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` do-extract: ${MKDIR} ${WRKDIR} ${LN} -sf ${GUACHE_BUILDDIR}/ext/dbm ${WRKDIR}/ -do-configure: - cd ${WRKSRC} && make clean && ${REINPLACE_CMD} -e 's/^LIBFILES.*/LIBFILES = gdbm.so/' -e 's/^SCMFILES.*/SCMFILES = gdbm.scm/' Makefile +do-build: + cd ${WRKSRC} && ${LOCALBASE}/bin/gauche-config --fixup-extension gdbm + cd ${WRKSRC} && ${LOCALBASE}/bin/gosh genstub gdbm.stub + cd ${WRKSRC} && ${CC} ${CFLAGS} -c gdbm_head.c + cd ${WRKSRC} && ${CC} ${CFLAGS} -c gdbm_tail.c + cd ${WRKSRC} && ${CC} ${CFLAGS} -c -I${LOCALBASE}/include \ + -I'${LOCALBASE}/lib/gauche/${PORTVERSION}/include' gdbm.c + cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -shared -Wl,-x -o gdbm.so \ + -Wl,-soname,gdbm.so gdbm.o gdbm_head.o gdbm_tail.o \ + -L${LOCALBASE}/lib -lgdbm do-install: - cd ${WRKSRC} && make install-std + ${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 .include <bsd.port.mk> diff --git a/databases/gauche-gdbm/pkg-plist b/databases/gauche-gdbm/pkg-plist deleted file mode 100644 index ac04a04d8a17..000000000000 --- a/databases/gauche-gdbm/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -lib/gauche/%%VERSION%%/%%TARGET%%/gdbm.so -share/gauche/%%VERSION%%/lib/dbm/gdbm.scm |