aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ogle/Makefile
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-10-26 23:37:59 +0800
committerlioux <lioux@FreeBSD.org>2001-10-26 23:37:59 +0800
commit7f67229f3b30a9ae0ff7d751b7d9d9bd0d53a7a0 (patch)
tree9395c6f9a43432944f4d275d9a5384b61d9b186b /multimedia/ogle/Makefile
parentd8429a27e7f11075970dafe627668583800dfed2 (diff)
downloadfreebsd-ports-gnome-7f67229f3b30a9ae0ff7d751b7d9d9bd0d53a7a0.tar.gz
freebsd-ports-gnome-7f67229f3b30a9ae0ff7d751b7d9d9bd0d53a7a0.tar.zst
freebsd-ports-gnome-7f67229f3b30a9ae0ff7d751b7d9d9bd0d53a7a0.zip
New port ogle version 0.8.1: Open DVD player that supports DVD
menus Reviewed by: Björn Englund <d4bjorn@dtek.chalmers.se>, Håkan Hjort <d95hjort@dtek.chalmers.se> (both ogle developers) Beta Tested by: chris@choll.freeserve.co.uk, Brooks Davis <brooks@one-eyed-alien.net>, Jason Andresen <jandrese@mitre.org>, MANTANI Nobutaka <nobutaka@nobutaka.com>, Oliver Brandmueller <ob@e-Gitt.NET>, Scott Long <scott_long@btc.adaptec.com>, Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
Diffstat (limited to 'multimedia/ogle/Makefile')
-rw-r--r--multimedia/ogle/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/multimedia/ogle/Makefile b/multimedia/ogle/Makefile
new file mode 100644
index 000000000000..93e0c72cca4a
--- /dev/null
+++ b/multimedia/ogle/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: ogle
+# Date created: Tue Oct 16 18:35:39 BRST 2001
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ogle
+PORTVERSION= 0.8.1
+CATEGORIES= graphics
+MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
+
+MAINTAINER= lioux@FreeBSD.org
+
+LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \
+ dvdcss.0:${PORTSDIR}/graphics/libdvdcss \
+ dvdread.2:${PORTSDIR}/graphics/libdvdread \
+ jpeg.9:${PORTSDIR}/graphics/jpeg \
+ xml2.5:${PORTSDIR}/textproc/libxml2
+
+USE_XLIB= yes
+USE_AUTOCONF= yes
+USE_AUTOMAKE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
+CONFIGURE_ARGS= --with-libjpeg=${LOCALBASE} \
+ --with-dvdread=${LOCALBASE} \
+ --with-liba52=${LOCALBASE}
+MAKE_ENV= SDL_CONFIG=${SDL_CONFIG}
+INSTALLS_SHLIB= yes
+
+MAN1= ogle.1
+MAN5= oglerc.5
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+pre-everything::
+.ifndef(WITH_DVD_DEVICE)
+ @${ECHO_MSG} '===> The default DVD device is /dev/acd0c'
+ @${ECHO_MSG} "===> You can choose any DVD device at Ogle's command line"
+ @${ECHO_MSG} '===> Define WITH_DVD_DEVICE if you want to change the default'
+ @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
+.endif
+
+post-patch:
+.ifdef(WITH_DVD_DEVICE)
+ @${PERL} -pi.orig -e \
+ "s|(DEFAULT_DVD_DEVICE=\")/dev/acd0c(\")|\1${WITH_DVD_DEVICE}\2|" \
+ ${WRKSRC}/configure.in
+.endif
+ @${PERL} -pi -e "s|%%X11BASE%%|${X11BASE}|" ${WRKSRC}/scripts/ogle.in
+
+post-configure:
+ @${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>