svn commit: r395155 - head/net-p2p/lopster

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Aug 24 00:08:42 UTC 2015


Author: amdmi3
Date: Mon Aug 24 00:08:41 2015
New Revision: 395155
URL: https://svnweb.freebsd.org/changeset/ports/395155

Log:
  - Add LICENSE
  - Switch to options helpers

Modified:
  head/net-p2p/lopster/Makefile

Modified: head/net-p2p/lopster/Makefile
==============================================================================
--- head/net-p2p/lopster/Makefile	Mon Aug 24 00:04:52 2015	(r395154)
+++ head/net-p2p/lopster/Makefile	Mon Aug 24 00:08:41 2015	(r395155)
@@ -11,6 +11,9 @@ MASTER_SITES=	SF \
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	GTK+ client for Napster and free alternatives
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 GNU_CONFIGURE=	yes
 USES=		gmake
 USE_GNOME=	gtk12
@@ -21,26 +24,11 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 OPTIONS_DEFINE=	FLAC OGG ZLIB
 OPTIONS_DEFAULT=	FLAC OGG ZLIB
 
-.include <bsd.port.options.mk>
-
-# --with-flac is on by default
-.if ${PORT_OPTIONS:MFLAC}
-LIB_DEPENDS+=		libFLAC.so:${PORTSDIR}/audio/flac
-.else
-CONFIGURE_ARGS+=	--without-flac
-.endif
-
-# --with-ogg is on by default
-.if ${PORT_OPTIONS:MOGG}
-LIB_DEPENDS+=		libogg.so:${PORTSDIR}/audio/libogg
-.else
-CONFIGURE_ARGS+=	--without-ogg
-.endif
-
-# --with-zlib is on by default
-.if ! ${PORT_OPTIONS:MZLIB}
-CONFIGURE_ARGS+=	--without-zlib
-.endif
+FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
+FLAC_CONFIGURE_WITH=	flac
+OGG_LIB_DEPENDS=	libogg.so:${PORTSDIR}/audio/libogg
+OGG_CONFIGURE_WITH=	ogg
+ZLIB_CONFIGURE_WITH=	zlib
 
 post-patch:
 	@${REINPLACE_CMD} -e "s/www.naplist.com/www.gotnap.com/" \


More information about the svn-ports-head mailing list