aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/mtoolsfm/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-04-19 22:07:47 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-04-19 22:07:47 +0000
commita916470054cda4885da42f4b94ee7bae27d58cc8 (patch)
tree70def1af9b9d3c5fc0024eed1a5b2a69156b128f /x11-fm/mtoolsfm/Makefile
parente26b55e269ff222193c6dbb3fc330a686ad601fe (diff)
downloadports-a916470054cda4885da42f4b94ee7bae27d58cc8.tar.gz
ports-a916470054cda4885da42f4b94ee7bae27d58cc8.zip
- Update to 1.9.5
PR: 122504 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=211621
Diffstat (limited to 'x11-fm/mtoolsfm/Makefile')
-rw-r--r--x11-fm/mtoolsfm/Makefile31
1 files changed, 13 insertions, 18 deletions
diff --git a/x11-fm/mtoolsfm/Makefile b/x11-fm/mtoolsfm/Makefile
index 38f9c7992622..46db1990793e 100644
--- a/x11-fm/mtoolsfm/Makefile
+++ b/x11-fm/mtoolsfm/Makefile
@@ -6,39 +6,34 @@
#
PORTNAME= mtoolsfm
-PORTVERSION= 1.9.3
-PORTREVISION= 4
+PORTVERSION= 1.9.5
CATEGORIES= x11-fm
-MASTER_SITES= http://www.core-coutainville.org/MToolsFM/archive/SOURCES/
-DISTNAME= MToolsFM-${PORTVERSION:R}-${PORTVERSION:E}
+MASTER_SITES= SF
+DISTNAME= MToolsFM-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A graphical frontend to mtools
RUN_DEPENDS= mtools:${PORTSDIR}/emulators/mtools
-USE_GNOME= gtk12
+USE_GNOME= gnomehack gnometarget gtk12
+USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
+ LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-conffile="${PREFIX}/etc/mtoolsfm.conf"
MAN1= mtoolsfm.1
post-patch:
- @${REINPLACE_CMD} -e 's|MToolsFM|mtoolsfm|g ; \
- s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
- s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/MToolsFM.1
+ @${REINPLACE_CMD} -e 's|MToolsFM|mtoolsfm|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
's|MToolsFM|mtoolsfm|g'
-.for file in src/mtoolsfm.h po/de.po po/fr.po
- @${MV} -f ${WRKSRC}/${file} ${WRKSRC}/${file}.preedit
- @${CAT} ${WRKSRC}/${file}.preedit | \
- ${TR} '\264' '\047' > ${WRKSRC}/${file}
-.endfor
-
-pre-build:
- @${LN} -sf ${WRKSRC}/MToolsFM.1 ${WRKSRC}/mtoolsfm.1
+ @cd ${WRKSRC} && ${SED} -e \
+ 's|MToolsFM|mtoolsfm|g ; \
+ s| /etc| ${PREFIX}/etc|g ; \
+ s|/usr/X11R6/bin|${PREFIX}/bin|g ; \
+ s|/usr/bin|${LOCALBASE}/bin|g ; \
+ s|^/etc|${PREFIX}/etc|g' < MToolsFM.1 > mtoolsfm.1
.include <bsd.port.mk>