Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2017 22:25:25 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r443477 - head/lang/ohugs
Message-ID:  <201706122225.v5CMPPtG025897@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Jun 12 22:25:25 2017
New Revision: 443477
URL: https://svnweb.freebsd.org/changeset/ports/443477

Log:
  Convert to options helper
  
  - Use USES=readline:port
  
  Approved by:	portmgr (blanket)

Modified:
  head/lang/ohugs/Makefile

Modified: head/lang/ohugs/Makefile
==============================================================================
--- head/lang/ohugs/Makefile	Mon Jun 12 22:25:20 2017	(r443476)
+++ head/lang/ohugs/Makefile	Mon Jun 12 22:25:25 2017	(r443477)
@@ -13,27 +13,18 @@ COMMENT=	Interpreter for Haskell with object-oriented 
 
 OPTIONS_DEFINE=		X11
 
-.include <bsd.port.options.mk>
-
-LIB_DEPENDS=	libreadline.so.6:devel/readline
-.if empty(PORT_OPTIONS:MX11)
-LIB_DEPENDS=	libTix8.4.3.so:x11-toolkits/tix
-.endif
-
 WRKSRC=		${WRKDIR}/${DISTNAME:S/.src//}
 BUILD_WRKSRC=	${WRKSRC}/src
-USES=		bison ncurses readline
+USES=		bison ncurses readline:port
 LDFLAGS+=	-lm -lreadline -lncurses
 
-.if ${PORT_OPTIONS:MX11}
-USES+=		tk
-CFLAGS+=	-I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -ltk${TK_SHLIB_VER} -ltcl${TCL_SHLIB_VER} -lTix8.4.3
-.else
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-src_prelude.h
-.endif
-
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
 		INSTBIN=${PREFIX}/bin INSTLIB=${PREFIX}/lib/ohugs
+
+X11_CFLAGS=		-I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR} -I${LOCALBASE}/include
+X11_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-patch-src_prelude.h
+X11_LDFLAGS=		-L${LOCALBASE}/lib -ltk${TK_SHLIB_VER} -ltcl${TCL_SHLIB_VER} -lTix8.4.3
+X11_LIB_DEPENDS_OFF=	libTix8.4.3.so:x11-toolkits/tix
+X11_USES=		tk
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706122225.v5CMPPtG025897>