freebsd-ports/multimedia/okle/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

59 lines
1.6 KiB
Makefile

# New ports collection makefile for: Ogle KDE GUI
# Date created: Tue Jul 9 20:24:02 UTC 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= okle
PORTVERSION= 0.4
PORTREVISION= 7
CATEGORIES= multimedia kde
MASTER_SITES= http://okle.sourceforge.net/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= A KDE frontend to the Ogle DVD player
BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.11:${PORTSDIR}/multimedia/ogle
RUN_DEPENDS= ogle:${PORTSDIR}/multimedia/ogle
USE_AUTOTOOLS= autoconf:262 libtool:22
USE_KDELIBS_VER=3
CONFIGURE_ARGS= --with-ogle-dir=${LOCALBASE}/bin \
--with-ogle-includes=${LOCALBASE}/include \
--program-transform-name="s|,|,|" \
--with-ogle-libs=${LOCALBASE}/lib/ogle
MAKE_JOBS_UNSAFE= yes
# location of okle ogle_gui
DVDP_UI=${PREFIX}/lib/okle/ogle_gui
OGLE=${LOCALBASE}/bin/ogle
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
pre-configure:
@cd ${WRKSRC} && ${AUTOCONF} && ${AUTOHEADER}
.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 "s|\"/dev/dvd\"|\"${DEFAULT_DVD_DEVICE}\"|" \
${WRKSRC}/src/okle_win.cpp
# do not use version names
@${REINPLACE_CMD} -E -e 's|^(PACKAGE[[:space:]]+=).+$$|\1${PORTNAME}|' \
${WRKSRC}/po/Makefile.in
.include <bsd.port.post.mk>