diff options
-rw-r--r-- | multimedia/libdvdread/Makefile | 4 | ||||
-rw-r--r-- | multimedia/libdvdread/buildlink3.mk | 6 | ||||
-rw-r--r-- | multimedia/libdvdread/options.mk | 10 |
3 files changed, 18 insertions, 2 deletions
diff --git a/multimedia/libdvdread/Makefile b/multimedia/libdvdread/Makefile index 72776903312..24f68f49b3d 100644 --- a/multimedia/libdvdread/Makefile +++ b/multimedia/libdvdread/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2012/10/08 09:21:06 asau Exp $ +# $NetBSD: Makefile,v 1.23 2013/05/10 07:13:59 adam Exp $ DISTNAME= libdvdread-4.2.0 CATEGORIES= multimedia @@ -21,4 +21,6 @@ MESSAGE_SUBST+= PKGBASE=${PKGBASE} pre-configure: cd ${WRKSRC} && autoreconf -vi +.include "options.mk" + .include "../../mk/bsd.pkg.mk" diff --git a/multimedia/libdvdread/buildlink3.mk b/multimedia/libdvdread/buildlink3.mk index 4095849f5c5..12eedf03bcc 100644 --- a/multimedia/libdvdread/buildlink3.mk +++ b/multimedia/libdvdread/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.11 2011/08/09 20:53:15 adam Exp $ +# $NetBSD: buildlink3.mk,v 1.12 2013/05/10 07:13:59 adam Exp $ BUILDLINK_TREE+= libdvdread @@ -8,6 +8,10 @@ LIBDVDREAD_BUILDLINK3_MK:= BUILDLINK_API_DEPENDS.libdvdread+= libdvdread>=4.1.3nb1 BUILDLINK_ABI_DEPENDS.libdvdread+= libdvdread>=4.1.3nb1 BUILDLINK_PKGSRCDIR.libdvdread?= ../../multimedia/libdvdread + +.if !empty(PKG_BUILD_OPTIONS.libdvdread:Mdvdcss) +.include "../../multimedia/libdvdcss/buildlink3.mk" +.endif .endif # LIBDVDREAD_BUILDLINK3_MK BUILDLINK_TREE+= -libdvdread diff --git a/multimedia/libdvdread/options.mk b/multimedia/libdvdread/options.mk new file mode 100644 index 00000000000..18a17547cba --- /dev/null +++ b/multimedia/libdvdread/options.mk @@ -0,0 +1,10 @@ +# $NetBSD: options.mk,v 1.1 2013/05/10 07:13:59 adam Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libdvdread +PKG_SUPPORTED_OPTIONS= dvdcss + +.if !empty(PKG_OPTIONS:Mdvdcss) +CPPFLAGS+= -DHAVE_DVDCSS_DVDCSS_H=1 +LIBS+= -ldvdcss +.include "../../multimedia/libdvdcss/buildlink3.mk" +.endif |