mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
1b0619590b
- Change default DVD device from cd0 to acd0 since this seems to be more commonly used and the error I was getting earlier with acd0 was due to wrong device permissions - Remove pkg-message.in due to the above - Bump PORTREVISION
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# New ports collection makefile for: dvdbackup
|
|
# Date created: 2004-09-24
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dvdbackup
|
|
PORTVERSION= 0.4.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Backup content from DVD to hard disk
|
|
|
|
LIB_DEPENDS= dvdread.4:${PORTSDIR}/multimedia/libdvdread
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
MAN1= dvdbackup.1
|
|
PORTDOCS= NEWS README
|
|
|
|
DEFAULT_DVD_DEVICE?= /dev/acd0
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} "s|/dev/dvd|${DEFAULT_DVD_DEVICE}|g" \
|
|
${WRKSRC}/src/main.c ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot \
|
|
${WRKSRC}/README ${WRKSRC}/man/dvdbackup.1
|
|
|
|
pre-configure:
|
|
.if defined(NOPORTDOCS)
|
|
@${REINPLACE_CMD} 's|^install-data-am: .*|install-data-am: |' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|