aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ogle-gui/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ogle-gui/Makefile')
-rw-r--r--multimedia/ogle-gui/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/multimedia/ogle-gui/Makefile b/multimedia/ogle-gui/Makefile
index d8139a6985e1..a604ed7101b6 100644
--- a/multimedia/ogle-gui/Makefile
+++ b/multimedia/ogle-gui/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ogle
-PORTVERSION= 0.8.4
+PORTVERSION= 0.8.5
CATEGORIES= graphics gnome
MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
PKGNAMESUFFIX= -gui
@@ -14,7 +14,7 @@ DISTNAME= ${PORTNAME}_gui-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.7:${PORTSDIR}/graphics/ogle
+BUILD_DEPENDS= ${LOCALBASE}/lib/ogle/libdvdcontrol.so.8:${PORTSDIR}/graphics/ogle
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \
glade.4:${PORTSDIR}/devel/libglade \
xml2.5:${PORTSDIR}/textproc/libxml2
@@ -23,6 +23,7 @@ RUN_DEPENDS= ogle:${PORTSDIR}/graphics/ogle
USE_X_PREFIX= yes
USE_GTK= yes
USE_XPM= yes
+USE_REINPLACE= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
@@ -47,12 +48,19 @@ SHARE_DATADIR= share
PLIST_SUB= SHARE_DATADIR="${SHARE_DATADIR}"
post-patch:
- @${PERL} -pi -e "s|(libglade\.so)\.0|\1.4|; \
- s|(PACKAGE_PIXMAPS_DIR=\"$${prefix}/)share(/ogle_gui/\")|\1${SHARE_DATADIR}\2|; \
- s!(CONFIG_FILE(\s|=)\")[^/]+?/!\1${LOCALBASE}/!; \
- s|(CONFIG_FILE_DTD=\")[^/]+?/|\1${LOCALBASE}/|g; \
- s|(PACKAGE_PIXMAPS_DIR=\").+\"|\1${PREFIX}/${SHARE_DATADIR}/ogle_gui/\"|; \
+# fix library version
+ @${REINPLACE_CMD} -E -e "s|(libglade\.so)\.0|\1.4|; \
s|%%LOCALBASE%%|${LOCALBASE}|" \
${CONFIGURE_WRKSRC}/configure
+# correct path for program data files
+ @${REINPLACE_CMD} -E -e \
+ 's!(LOCALEDIR[[:space:]]*=[^"]+\")[^/]+/!\1${PREFIX}/share/!; \
+ s!(CONFIG_FILE[[:space:]]*=[^"]+\")[^/]+/!\1${LOCALBASE}/share/!; \
+ s!(CONFIG_FILE_DTD[[:space:]]*=[^"]+\")[^/]+/!\1${LOCALBASE}/share/!' \
+ ${WRKSRC}/src/Makefile.in
+# install locale correctly
+ @${REINPLACE_CMD} -E -e \
+ 's!(datadir[[:space:]]*=).*$$!\1${PREFIX}/share!' \
+ ${WRKSRC}/po/Makefile.in.in
.include <bsd.port.post.mk>