2a16cd7303
The function tries to read the title from the DVD but does it in a way that does not work on OpenBSD. OpenBSD returns EINVAL for reads that are not a multiple of the blocksize for rcd0c. ok jolan@
41 lines
959 B
Makefile
41 lines
959 B
Makefile
# $OpenBSD: Makefile,v 1.4 2006/10/12 11:30:41 claudio Exp $
|
|
|
|
COMMENT= "DVD ripper"
|
|
|
|
DISTNAME= dvdbackup-0.1.1
|
|
PKGNAME= ${DISTNAME}p1
|
|
CATEGORIES= multimedia
|
|
|
|
HOMEPAGE= http://dvd-create.sourceforge.net/
|
|
|
|
MAINTAINER= Jacob Meuser <jakemsr@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://dvd-create.sourceforge.net/
|
|
|
|
LIB_DEPENDS= dvdnav.>=5::multimedia/libdvdnav
|
|
WANTLIB= c pthread
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
WRKDIST= ${WRKDIR}/dvdbackup
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/src && ${CC} ${CFLAGS} -c dvdbackup.c
|
|
cd ${WRKSRC}/src && ${CC} ${LDFLAGS} -o dvdbackup \
|
|
dvdbackup.o -ldvdnav -pthread
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dvdbackup
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dvdbackup
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/src/dvdbackup ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|