Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 03:11:19 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r413800 - head/devel/sdl_sge
Message-ID:  <201604230311.u3N3BJWr087365@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Apr 23 03:11:19 2016
New Revision: 413800
URL: https://svnweb.freebsd.org/changeset/ports/413800

Log:
  - Fix LICENSE
  - Switch to options helpers

Modified:
  head/devel/sdl_sge/Makefile

Modified: head/devel/sdl_sge/Makefile
==============================================================================
--- head/devel/sdl_sge/Makefile	Sat Apr 23 00:19:32 2016	(r413799)
+++ head/devel/sdl_sge/Makefile	Sat Apr 23 03:11:19 2016	(r413800)
@@ -11,8 +11,7 @@ DISTNAME=	sge030809
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Graphic library for the Simple DirectMedia Layer (SDL)
 
-LICENSE=	LGPL21 LGPL3
-LICENSE_COMB=	dual
+LICENSE=	LGPL20+ # LICENSE is LGPL21
 
 USES=		gmake
 USE_SDL=	sdl
@@ -23,23 +22,15 @@ PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	SDL FREETYPE DOCS EXAMPLES
 OPTIONS_DEFAULT=SDL FREETYPE
-SDL_DESC=	Enable support for SDL_image
 
-.include <bsd.port.options.mk>
+FREETYPE_LIB_DEPENDS=	libfreetype.so:print/freetype2
+FREETYPE_MAKE_ARGS=	USE_FT=y
+FREETYPE_MAKE_ARGS_OFF=	USE_FT=n
 
-.if ${PORT_OPTIONS:MFREETYPE}
-LIB_DEPENDS+=	libfreetype.so:print/freetype2
-MAKE_ARGS+=	USE_FT=y
-.else
-MAKE_ARGS+=	USE_FT=n
-.endif
-
-.if ${PORT_OPTIONS:MSDL}
-USE_SDL+=	image
-MAKE_ARGS+=	USE_IMG=y
-.else
-MAKE_ARGS+=	USE_IMG=n
-.endif
+SDL_DESC=	Enable support for SDL_image
+SDL_USE=	SDL=image
+SDL_MAKE_ARGS=	USE_IMG=y
+SDL_MAKE_ARGS_OFF=	USE_IMG=n
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -48,9 +39,13 @@ post-patch:
 		 s|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSGE.so
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSGE.so
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 



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