Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2013 23:32:00 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332296 - head/devel/libslang2
Message-ID:  <201310312332.r9VNW0U9010583@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Thu Oct 31 23:32:00 2013
New Revision: 332296
URL: http://svnweb.freebsd.org/changeset/ports/332296

Log:
  . Add LICENSE
  . Use space on WWW
  . Simplify Makefile

Modified:
  head/devel/libslang2/Makefile
  head/devel/libslang2/pkg-descr   (contents, props changed)

Modified: head/devel/libslang2/Makefile
==============================================================================
--- head/devel/libslang2/Makefile	Thu Oct 31 23:30:59 2013	(r332295)
+++ head/devel/libslang2/Makefile	Thu Oct 31 23:32:00 2013	(r332296)
@@ -12,6 +12,8 @@ DISTNAME=	slang-${PORTVERSION}
 MAINTAINER=	garga@FreeBSD.org
 COMMENT=	Routines for rapid alpha-numeric terminal applications development
 
+LICENSE=	GPLv2
+
 CONFLICTS=	libslang-1.*.j[0-9]
 
 USE_BZIP2=	yes
@@ -30,52 +32,26 @@ DATADIR=	${PREFIX}/share/slsh
 
 OPTIONS_DEFINE=	PCRE PNG ICONV ONIG DOCS
 OPTIONS_DEFAULT=PCRE PNG ICONV DOCS
+OPTIONS_SUB=	PCRE PNG ICONV ONIG
 
 ONIG_DESC=	Oniguruma support
 
 PORTDOCS=	*
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPCRE}
-LIB_DEPENDS+=	libpcre.so:${PORTSDIR}/devel/pcre
-PLIST_SUB+=	PCRE=""
-.else
-CONFIGURE_ARGS+=	--without-pcre
-PLIST_SUB+=	PCRE="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MPNG}
-LIB_DEPENDS+=	libpng15.so:${PORTSDIR}/graphics/png
-PLIST_SUB+=	PNG=""
-.else
-CONFIGURE_ARGS+=	--without-png
-PLIST_SUB+=	PNG="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MICONV}
-USES+=		iconv
-PLIST_SUB+=	ICONV=""
-.else
-CONFIGURE_ARGS+=	--without-iconv
-PLIST_SUB+=	ICONV="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MONIG}
-LIB_DEPENDS+=	libonig.so:${PORTSDIR}/devel/oniguruma4
-PLIST_SUB+=	ONIG=""
-.else
-CONFIGURE_ARGS+=	--without-onig
-PLIST_SUB+=	ONIG="@comment "
-.endif
+PCRE_CONFIGURE_WITH=	pcre
+PCRE_LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
+PNG_CONFIGURE_WITH=	png
+PNG_LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
+ICONV_CONFIGURE_WITH=	iconv
+ICONV_USES=		iconv
+ONIG_CONFIGURE_WITH=	onig
+ONI_LIB_DEPENDS=	libonig.so:${PORTSDIR}/devel/oniguruma4
 
 post-patch:
 	@${REINPLACE_CMD} -E 's,doc/slsh,doc/slang/v\@slang_major_version\@,' \
 		${WRKSRC}/slsh/Makefile.in
-.if empty(PORT_OPTIONS:MDOCS)
 	@${REINPLACE_CMD} -e 's, install[_-]docs,,g; /MKINSDIR.*DEST_SLSH_DOC_DIR/d' \
 		${WRKSRC}/src/Makefile.in \
 		${WRKSRC}/slsh/Makefile.in
-.endif
 
 .include <bsd.port.mk>

Modified: head/devel/libslang2/pkg-descr
==============================================================================
--- head/devel/libslang2/pkg-descr	Thu Oct 31 23:30:59 2013	(r332295)
+++ head/devel/libslang2/pkg-descr	Thu Oct 31 23:32:00 2013	(r332296)
@@ -9,4 +9,4 @@ The most exciting feature of the library
 interpreter that may be easily embedded into a program to
 make it extensible. 
 
-WWW:	http://www.jedsoft.org/slang/
+WWW: http://www.jedsoft.org/slang/



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