Respect DEBUG/STRIP

PR:		ports/153704
Submitted by:	swell.k (maintainer)
Feature safe:	yes
This commit is contained in:
Max Brazhnikov 2011-01-13 10:20:52 +00:00
parent 33ffd68aec
commit 70e7247b6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267736

View file

@ -7,6 +7,7 @@
PORTNAME= libvdpau
PORTVERSION= 0.4.1
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://people.freedesktop.org/~aplattner/vdpau/
@ -22,8 +23,18 @@ USE_LDCONFIG= yes
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CFLAGS+= -DDEBUG
.endif
.if defined(STRIP) && ${STRIP} != ""
INSTALL_TARGET= install-strip
.endif
post-patch: .SILENT
${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>
.include <bsd.port.post.mk>