svn commit: r452630 - head/multimedia/libvdpau

Guido Falsi madpilot at FreeBSD.org
Sun Oct 22 10:17:27 UTC 2017


Author: madpilot
Date: Sun Oct 22 10:17:26 2017
New Revision: 452630
URL: https://svnweb.freebsd.org/changeset/ports/452630

Log:
  Correct port WITH_DEBUG support and simplify Makefile.

Modified:
  head/multimedia/libvdpau/Makefile

Modified: head/multimedia/libvdpau/Makefile
==============================================================================
--- head/multimedia/libvdpau/Makefile	Sun Oct 22 10:09:33 2017	(r452629)
+++ head/multimedia/libvdpau/Makefile	Sun Oct 22 10:17:26 2017	(r452630)
@@ -16,23 +16,14 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-documentation
 USE_XORG=	dri2proto xext
 USE_LDCONFIG=	yes
+INSTALL_TARGET=	install-strip
 
 OPTIONS_DEFINE=	DEBUG
 
-.include <bsd.port.options.mk>
+DEBUG_CFLAGS=		-D_DEBUG
+DEBUG_VARS=		WITH_DEBUG=yes
+DEBUG_CFLAGS_OFF=	-DNDEBUG
 
-.if ${PORT_OPTIONS:MDEBUG}
-CFLAGS+=	-D_DEBUG
-.else
-CFLAGS+=	-DNDEBUG
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if defined(STRIP) && ${STRIP} != ""
-INSTALL_TARGET=	install-strip
-.endif
-
 post-patch:	.SILENT
 	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
 		${WRKSRC}/Makefile.am
@@ -41,4 +32,4 @@ post-patch:	.SILENT
 	${REINPLACE_CMD} 's/vdpau_wrapper.cfg/&.sample/' \
 		${WRKSRC}/src/Makefile.am
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list