Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 2015 23:15:20 +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: r399073 - head/graphics/libbpg
Message-ID:  <201510102315.t9ANFKkA083105@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Oct 10 23:15:20 2015
New Revision: 399073
URL: https://svnweb.freebsd.org/changeset/ports/399073

Log:
  - Convert to new options target helper
  
  Approved by:	portmgr (blanket)

Modified:
  head/graphics/libbpg/Makefile

Modified: head/graphics/libbpg/Makefile
==============================================================================
--- head/graphics/libbpg/Makefile	Sat Oct 10 23:15:16 2015	(r399072)
+++ head/graphics/libbpg/Makefile	Sat Oct 10 23:15:20 2015	(r399073)
@@ -29,28 +29,22 @@ USES=		compiler:c++11-lib gmake jpeg
 CFLAGS+=	-fPIC -I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-.include <bsd.port.options.mk>
+do-configure-JCTVC-off:
+	${REINPLACE_CMD} -e 's/^USE_JCTVC=y$$/#USE_JCTVC=/' ${WRKSRC}/Makefile
 
-do-configure:
-.if ! ${PORT_OPTIONS:MSDL}
+do-configure-SDL-off:
 	${REINPLACE_CMD} -e 's/^USE_BPGVIEW=y$$/#USE_BPGVIEW=/' ${WRKSRC}/Makefile
-.endif
-.if ! ${PORT_OPTIONS:MJCTVC}
-	${REINPLACE_CMD} -e 's/^USE_JCTVC=y$$/#USE_JCTVC=/' ${WRKSRC}/Makefile
-.endif
-.if ${PORT_OPTIONS:MX265}
+
+do-configure-X265-on:
 	${REINPLACE_CMD} -e 's/^#USE_JCTVC_HIGH_BIT_DEPTH=y$$/USE_JCTVC_HIGH_BIT_DEPTH=y/' ${WRKSRC}/Makefile
-.endif
-.if ${PORT_OPTIONS:MX265}
 	${REINPLACE_CMD} -e 's/^#USE_X265=y$$/USE_X265=y/' ${WRKSRC}/Makefile
-.endif
 
 post-install:
-.if ${PORT_OPTIONS:MSDL}
-	${INSTALL_PROGRAM} ${WRKSRC}/bpgview ${STAGEDIR}${PREFIX}/bin
-.endif
 	${INSTALL_DATA} ${WRKSRC}/libbpg.h ${STAGEDIR}${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/libbpg.a ${STAGEDIR}${PREFIX}/lib
 	${INSTALL_LIB} ${WRKSRC}/libbpg.so ${STAGEDIR}${PREFIX}/lib
 
+post-install-SDL-on:
+	${INSTALL_PROGRAM} ${WRKSRC}/bpgview ${STAGEDIR}${PREFIX}/bin
+
 .include <bsd.port.mk>



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