aboutsummaryrefslogtreecommitdiff
path: root/multimedia/goggles/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-02-08 00:34:36 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2003-02-08 00:34:36 +0000
commit5df9ffdd26c902c069c85b4d82db48c163ce7a22 (patch)
treeeb2c8b82b6ae928b11550ddaf383169563c5c993 /multimedia/goggles/Makefile
parent4ef21f56acc50ef6d8bedc4920df577cdf855c61 (diff)
downloadports-5df9ffdd26c902c069c85b4d82db48c163ce7a22.tar.gz
ports-5df9ffdd26c902c069c85b4d82db48c163ce7a22.zip
Notes
Diffstat (limited to 'multimedia/goggles/Makefile')
-rw-r--r--multimedia/goggles/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/multimedia/goggles/Makefile b/multimedia/goggles/Makefile
new file mode 100644
index 000000000000..bbad764168e4
--- /dev/null
+++ b/multimedia/goggles/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: Ogle FOX GUI
+# Date created: Tue Jul 9 20:24:02 UTC 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Goggles
+PORTVERSION= 0.2.4
+CATEGORIES= multimedia
+MASTER_SITES= http://www.fifthplanet.net/files/
+DISTNAME= ${PORTNAME:L}-${PORTVERSION}
+
+MAINTAINER= lioux@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.8:${PORTSDIR}/multimedia/ogle
+LIB_DEPENDS= FOX-1.1.22:${PORTSDIR}/x11-toolkits/fox
+RUN_DEPENDS= ogle:${PORTSDIR}/multimedia/ogle
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+CONFIGURE_ARGS= --with-dvdcontrol=${LOCALBASE}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+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
+
+.include <bsd.port.pre.mk>
+
+.ifdef(WITH_DVD_DEVICE)
+DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
+.else
+DEFAULT_DVD_DEVICE=/dev/acd0c
+.endif
+
+post-patch:
+# point to specific device
+ @${REINPLACE_CMD} -E -e \
+ 's|\"/dev/dvd\"|\"${DEFAULT_DVD_DEVICE}\"|' \
+ ${WRKSRC}/src/dvdwindow.cpp
+
+.include <bsd.port.post.mk>