diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-20 13:50:12 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-20 13:50:12 +0000 |
commit | 1814e103716ce1cc8d2c6903a4c070c9144155be (patch) | |
tree | 20c0125eb508cd038a31fafe8a21939aa9b17b41 /lang/sagittarius-scheme | |
parent | 1a3c3e5ae90da6e8253490b8ff2934fee6cac947 (diff) | |
download | freebsd-ports-1814e103716ce1cc8d2c6903a4c070c9144155be.zip |
- Remove unneeded CMAKE_ARGS
- Switch to options helpers
- Set MAKE_ENV to fix touching filesystem outdire WRKDIR during build:
====>> Error: Filesystem touched during build:
extra: root/.sagittarius
Approved by: portmgr blanket
Diffstat (limited to 'lang/sagittarius-scheme')
-rw-r--r-- | lang/sagittarius-scheme/Makefile | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lang/sagittarius-scheme/Makefile b/lang/sagittarius-scheme/Makefile index bf8d6bb81794..6a197dc24f74 100644 --- a/lang/sagittarius-scheme/Makefile +++ b/lang/sagittarius-scheme/Makefile @@ -25,21 +25,12 @@ MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= ODBC -CMAKE_ARGS+= -DINSTALL_PREFIX=${PREFIX} - PLIST_SUB= PORTNAME=sagittarius PORTVERSION=${PORTVERSION} ODBC_LIB_DEPENDS= libiodbc.so:${PORTSDIR}/databases/libiodbc ODBC_CMAKE_ON= -DODBC_INCLUDE_DIR:STRING=${LOCALBASE}/include/libiodbc OPTIONS_SUB= ODBC -.include <bsd.port.options.mk> - -.if !${PORT_OPTIONS:MODBC} -post-patch: - @${REINPLACE_CMD} -e '/odbc odbc/d' ${WRKSRC}/ext/CMakeLists.txt -.endif - .include <bsd.port.pre.mk> .if ${ARCH}=="i386" @@ -51,10 +42,13 @@ PLIST_ARCH= x86_64 PLIST_SUB+= PLIST_ARCH=${PLIST_ARCH} +post-patch-ODBC-off: + @${REINPLACE_CMD} -e '/odbc odbc/d' ${WRKSRC}/ext/CMakeLists.txt + post-install: @${LN} -sf ${PREFIX}/bin/sagittarius ${STAGEDIR}${PREFIX}/bin/sash post-build: - @${GMAKE} -C ${WRKSRC} doc + @${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} doc .include <bsd.port.post.mk> |