aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2012-08-01 20:17:42 +0800
committermartymac <martymac@FreeBSD.org>2012-08-01 20:17:42 +0800
commita2260d9d594ddf7a811ae62ccc2523608f89f361 (patch)
treedd1b75526a3e16322219c40561353f03cc536e64 /multimedia
parentfe9467065e1a2088266fa6fd152e19d4b81f093f (diff)
downloadfreebsd-ports-gnome-a2260d9d594ddf7a811ae62ccc2523608f89f361.tar.gz
freebsd-ports-gnome-a2260d9d594ddf7a811ae62ccc2523608f89f361.tar.zst
freebsd-ports-gnome-a2260d9d594ddf7a811ae62ccc2523608f89f361.zip
Add DEBUG option
PR: ports/169844 Submitted by: Fabian Keil <fk@fabiankeil.de>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libdvdread/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/multimedia/libdvdread/Makefile b/multimedia/libdvdread/Makefile
index bcb651482f12..bfd4c4e03589 100644
--- a/multimedia/libdvdread/Makefile
+++ b/multimedia/libdvdread/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libdvdread
PORTVERSION= 4.2.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia
# Svn repository URL : svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread
MASTER_SITES= http://dvdnav.mplayerhq.hu/releases/ \
@@ -28,12 +28,11 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" \
--shlibdir="${PREFIX}/lib" \
--incdir="${PREFIX}/include/dvdread" \
--disable-opts \
- --disable-debug \
--cc="${CC}"
USE_GMAKE= yes
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DVDCSS
+OPTIONS_DEFINE= DVDCSS DEBUG
.if !defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT= DVDCSS
.endif
@@ -47,6 +46,12 @@ DVDCSS_LIBVERSION= 3
LIB_DEPENDS+= dvdcss:${PORTSDIR}/multimedia/libdvdcss
.endif
+.if ${PORT_OPTIONS:MDEBUG}
+CONFIGURE_ARGS+= --enable-debug --disable-strip
+.else
+CONFIGURE_ARGS+= --disable-debug
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-ldl ||g' \
${WRKSRC}/Makefile