freebsd-ports/multimedia/dvdstyler/Makefile

88 lines
2.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dvdstyler
# Date created: 2004-07-30
# Whom: Michael Johnson <ahze@ahze.net>
#
# $FreeBSD$
#
PORTNAME= dvdstyler
2006-05-29 15:43:01 +02:00
DISTVERSION= 1.5b5
PORTREVISION= 1
2005-05-20 14:32:51 +02:00
PORTEPOCH= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dvdstyler
2006-01-08 22:50:14 +01:00
DISTNAME= DVDStyler-${DISTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= WXGTK2 front end to dvd recoding and authoring programs
BUILD_DEPENDS= dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
mpgcat:${PORTSDIR}/multimedia/mpgtx \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm \
lavfile-1.8.0:${PORTSDIR}/multimedia/mjpegtools \
2006-01-08 22:50:14 +01:00
wxsvg.0:${PORTSDIR}/graphics/wxsvg
RUN_DEPENDS= dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
mpgcat:${PORTSDIR}/multimedia/mpgtx \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
2005-05-20 14:32:51 +02:00
#RUN_DEPENDS+= xine:${PORTSDIR}/multimedia/xine
2005-04-26 10:21:30 +02:00
DVDSTYLER_ICON= ${DATADIR}/rc/dvdstyler.png
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
2006-05-29 15:43:01 +02:00
USE_GETTEXT= yes
2005-05-20 14:32:51 +02:00
CONFIGURE_ARGS= --with-wx-config=wxgtk2-2.6-config
2006-01-27 00:35:15 +01:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
.include <bsd.port.pre.mk>
2005-05-21 22:06:40 +02:00
.if ${OSVERSION} < 500000
BROKEN= Does not build.
.endif
.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
.if ${OSVERSION} < 500000
DEFAULT_DVD_DEVICE=/dev/acd0c
.else
DEFAULT_DVD_DEVICE=/dev/acd0
.endif
.endif
pre-everything::
.if !defined(WITH_DVD_DEVICE)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> Define WITH_OPTIMIZED_CFLAGS to enable optimized cflags"
.endif
post-patch:
2005-04-26 10:21:30 +02:00
@${SED} -e 's|%%COMMENT%%|${COMMENT}|; \
s|%%DVDSTYLER_ICON%%|${DVDSTYLER_ICON}|' \
< ${FILESDIR}/dvdstyler.desktop.in > ${WRKDIR}/dvdstyler.desktop
@${REINPLACE_CMD} -e 's|$$prefix/dvdstyler|${DATADIR}|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@datadir@/docs/@PACKAGE@|${DOCSDIR}|' \
${WRKSRC}/Makefile.in
2006-05-29 15:43:01 +02:00
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|g' \
${WRKSRC}/src/Config.h
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|-O3||' \
${WRKSRC}/configure
.endif
2005-04-26 10:21:30 +02:00
post-install:
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKDIR}/dvdstyler.desktop ${PREFIX}/share/applications
.include <bsd.port.post.mk>