pkgsrc/multimedia/libdvdcss/Makefile
jakllsch ac1c0a1484 Convert PKG_FAIL_REASON to INTERACTIVE_STAGE=fetch and FETCH_MESSAGE.
This is to prevent make fetch-list from trying to fetch a bogus URL when
the package-specific MASTER_SITE variable is undefined.
2018-06-22 12:45:46 +00:00

40 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2018/06/22 12:45:46 jakllsch Exp $
#
# In order to ensure compliance with U.S. and international law, please
# do not modify this file to provide pointers to the source or homepage
# for this software or submit any PRs telling us the contents of the
# HOMEPAGE or MASTER_SITES definitions in this Makefile.
DISTNAME= libdvdcss-1.4.2
CATEGORIES= multimedia
MASTER_SITES= ${LIBDVDCSS_MASTER_SITES}/${DISTNAME:S/libdvdcss-//}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ${LIBDVDCSS_HOMEPAGE}
COMMENT= Simple library designed for accessing DVDs
LICENSE= gnu-gpl-v2
RESTRICTED= Legal problems due to CSS code
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-doc
CONFIGURE_ENV+= ac_cv_path_DOXYGEN=
PKGCONFIG_OVERRIDE= src/libdvdcss.pc.in
.include "../../mk/bsd.prefs.mk"
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(LIBDVDCSS_MASTER_SITES)
INTERACTIVE_STAGE= fetch
FETCH_MESSAGE+= "Please define LIBDVDCSS_MASTER_SITES in mk.conf."
FETCH_MESSAGE+= "Alternatively you may download '${DISTNAME}${EXTRACT_SUFX}' manually"
FETCH_MESSAGE+= "to ${DISTDIR}."
.endif
.include "../../mk/bsd.pkg.mk"