diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2019-02-10 10:17:45 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2019-02-10 10:17:45 +0000 |
commit | 8afa6f2d5bbd3ed4bf51c84f3c391f8713481d8e (patch) | |
tree | d104837c83cb34e759bc8872c73c4a2ba20ceee3 /lang/mit-scheme | |
parent | d9e80cf72c4233d209283d98947fc64ea30d58e8 (diff) | |
download | ports-8afa6f2d5bbd3ed4bf51c84f3c391f8713481d8e.tar.gz ports-8afa6f2d5bbd3ed4bf51c84f3c391f8713481d8e.zip |
Notes
Diffstat (limited to 'lang/mit-scheme')
-rw-r--r-- | lang/mit-scheme/Makefile | 78 | ||||
-rw-r--r-- | lang/mit-scheme/pkg-plist | 2 |
2 files changed, 25 insertions, 55 deletions
diff --git a/lang/mit-scheme/Makefile b/lang/mit-scheme/Makefile index a7cf32824fe5..3f36e1a88d40 100644 --- a/lang/mit-scheme/Makefile +++ b/lang/mit-scheme/Makefile @@ -3,7 +3,7 @@ PORTNAME= mit-scheme PORTVERSION= 9.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang scheme MASTER_SITES= GNU/mit-scheme/stable.pkg/${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}-${MIT_SCHEME_ARCH} @@ -19,66 +19,33 @@ USES= gmake WRKSRC= ${WRKDIR}/mit-scheme-${PORTVERSION}/src/ OPTIONS_DEFINE= GDBM MCRYPT MHASH OPENSSL PGSQL X11 +OPTIONS_SUB= yes MCRYPT_DESC= mcrypt library support MHASH_DESC= mhash library support -.include <bsd.port.pre.mk> - -# TODO implement db4 support -CONFIGURE_ARGS+=--without-db-4 - -.if ${PORT_OPTIONS:MGDBM} -PLIST_SUB+= GDBM="" -CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE} -LIB_DEPENDS+= libgdbm.so:databases/gdbm -.else -PLIST_SUB+= GDBM="@comment " -CONFIGURE_ARGS+=--without-gdbm -.endif +GDBM_CONFIGURE_ENABLE= gdbm +MCRYPT_CONFIGURE_ENABLE= mcrypt +MHASH_CONFIGURE_ENABLE= mhash +OPENSSL_CONFIGURE_ENABLE= openssl +PGSQL_CONFIGURE_ENABLE= pgsql +X11_CONFIGURE_ENABLE= x11 -.if ${PORT_OPTIONS:MMHASH} -PLIST_SUB+= MHASH="" -CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} -LIB_DEPENDS+= libmhash.so:security/mhash -.else -PLIST_SUB+= MHASH="@comment " -CONFIGURE_ARGS+=--without-mhash -.endif - -.if ${PORT_OPTIONS:MMCRYPT} -PLIST_SUB+= MCRYPT="" -CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE} -LIB_DEPENDS+= libmcrypt.so:security/libmcrypt -.else -PLIST_SUB+= MCRYPT="@comment " -CONFIGURE_ARGS+=--without-mcrypt -.endif +GDBM_CONFIGURE_WITH= gdbm=${LOCALBASE} +MCRYPT_CONFIGURE_WITH= mcrypt=${LOCALBASE} +MHASH_CONFIGURE_WITH= mhash=${LOCALBASE} +OPENSSL_CONFIGURE_WITH= openssl +PGSQL_CONFIGURE_WITH= libpq=${LOCALBASE} +X11_CONFIGURE_WITH= x -.if ${PORT_OPTIONS:MOPENSSL} -PLIST_SUB+= OPENSSL="" -CONFIGURE_ARGS+=--with-openssl -.else -PLIST_SUB+= OPENSSL="@comment " -CONFIGURE_ARGS+=--without-openssl -.endif +OPENSSL_USES= ssl +PGSQL_USES= pgsql +X11_USE= xorg=x11 -.if ${PORT_OPTIONS:MPGSQL} -PLIST_SUB+= POSTGRESQL="" -CONFIGURE_ARGS+=--with-libpq=${LOCALBASE} -USES+= pgsql -.else -PLIST_SUB+= POSTGRESQL="@comment " -CONFIGURE_ARGS+=--without-libpq -.endif +GDBM_LIB_DEPENDS+= libgdbm.so:databases/gdbm +MHASH_LIB_DEPENDS+= libmhash.so:security/mhash +MCRYPT_LIB_DEPENDS+= libmcrypt.so:security/libmcrypt -.if ${PORT_OPTIONS:MX11} -PLIST_SUB+= X11="" -CONFIGURE_ARGS+=--with-x -USE_XORG= x11 -.else -PLIST_SUB+= X11="@comment " -CONFIGURE_ARGS+=--without-x -.endif +.include <bsd.port.pre.mk> .if ${ARCH} == amd64 MIT_SCHEME_ARCH=x86-64 @@ -101,4 +68,7 @@ do-install: @cd ${WRKDIR}/mit-scheme-${PORTVERSION}/src && ${MAKE_CMD} install DESTDIR=${STAGEDIR} ${INSTALL_MAN} ${WRKDIR}/mit-scheme-${PORTVERSION}/doc/scheme.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ + [ $$(${LS} ${STAGEDIR}${PREFIX}/lib/mit-scheme-${MIT_SCHEME_ARCH}/lib/ | wc -l) = 0 ] || \ + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mit-scheme-${MIT_SCHEME_ARCH}/lib/*.so + .include <bsd.port.post.mk> diff --git a/lang/mit-scheme/pkg-plist b/lang/mit-scheme/pkg-plist index a0e3269a962e..c3d28ac603e1 100644 --- a/lang/mit-scheme/pkg-plist +++ b/lang/mit-scheme/pkg-plist @@ -781,7 +781,7 @@ lib/mit-scheme-%%MIT_SCHEME_ARCH%%/xml/xml-w32.pkd %%MCRYPT%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prmcrypt.so %%MHASH%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prmhash.so %%OPENSSL%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prmd5.so -%%POSTGRESQL%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prpgsql.so +%%PGSQL%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prpgsql.so %%X11%%lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib/prx11.so man/man1/scheme.1.gz @dir lib/mit-scheme-%%MIT_SCHEME_ARCH%%/lib |